No Free Lunch Theorem

What is the 80/20 rule in machine learning?

There is no official 80/20 rule in machine learning. The phrase usually means a rough pattern, a common data split, or time spent on data prep.

On this page
  1. Where the 80/20 idea comes from
  2. The 80/20 idea in data work
  3. The 80/20 train-test split
  4. Why the ratio is not a rule

There is no official 80/20 rule in machine learning. The phrase is used loosely, and people usually mean one of three things: the Pareto pattern, where a small share of causes drives most results; a rough sense that much of project time goes to data preparation; or the common habit of splitting data 80/20 into training and test sets. Only the last is a concrete convention, and even it is a default rather than a rule.

Where the 80/20 idea comes from

The 80/20 pattern is named after the Pareto principle. Vilfredo Pareto, an economist, noticed in the late 1800s that a small share of people owned most of the land. Later writers generalized this into a rule of thumb: a small share of causes often produces a large share of results. The pattern is a common shape in many situations, not a law, and the actual split is often far from exactly 80 and 20.

The 80/20 idea in data work

Many machine learning practitioners say that much of their time goes to finding, cleaning, and organizing data, and less to building models. Some practitioner surveys have reported that data preparation takes more than half of project time. The share varies widely from project to project, so 80 percent is best read as a rough impression rather than a measured figure. Why that work matters is the focus of a guide on the need of data preprocessing in machine learning.

The 80/20 train-test split

A common default is to hold out 20 percent of the examples as a test set and train on the other 80 percent. Other splits are also common, such as 70/30 or 90/10. Many projects use cross-validation instead, which rotates the held-out part so that every example is tested once. The right choice depends on how much data you have. With millions of examples, a 1 percent test set may be plenty. With only a few hundred, a larger held-out share can give a more reliable estimate.

The test set should stay untouched until the final check. If you keep tuning the model against it, the accuracy estimate becomes too optimistic.

Why the ratio is not a rule

No single ratio is best for every problem. The split is a practical choice, and the goal is an honest estimate of how the model will do on new data, not a particular percentage. That fits the no free lunch idea: no fixed setting, including a fixed split, works best everywhere. Check the choice against the problem in front of you.

The complete guide to no free lunch theorem

The No Free Lunch Rule in Machine Learning
Read the guide

Keep exploring

Guides from other topics

All topics →