Bayes Error Sets the Floor for Any Classifier
Bayes error is the lowest test error any classifier can reach, and it is usually above zero, because the classes overlap in the data you have. James, Witten, Hastie, and Tibshirani define it in Section 2.2.3. The Bayes classifier assigns each observation to the class with the highest conditional probability, and it "produces the lowest possible test error rate, called the Bayes error rate." At one point x₀ that error is 1 − max_j Pr(Y = j | X = x₀), and the overall rate is 1 − E(max_j Pr(Y = j | X)), where the expectation averages over all values of X (their Equation 2.11).
The rate is above zero for a simple reason. The authors say it is "greater than zero, because the classes overlap in the true population so max_j Pr(Y = j | X = x₀) < 1 for some values of x₀." For their simulated data it is 0.133. They also say the Bayes error rate is analogous to the irreducible error. In practice you cannot compute it, because the true conditional distribution is unknown, so it works as a benchmark for what could be achieved and not as something you can measure.
Try it by hand. Suppose the input X takes three values, a, b, and c, with shares 0.5, 0.3, and 0.2 of the population. The chance of class 1 given each value is 0.9, 0.5, and 0.2. The best guess for a is class 1, wrong 10 percent of the time. For b the chances are even, so the best guess is wrong 50 percent of the time. For c the best guess is class 2, wrong 20 percent of the time. Averaging with the shares gives 0.5 × 0.1 + 0.3 × 0.5 + 0.2 × 0.2 = 0.05 + 0.15 + 0.04 = 0.24. Even a perfect model that knows these probabilities gets 24 percent of cases wrong.
Now suppose a better measurement splits group b into two halves, b₁ and b₂ (shares 0.15 each), where the chance of class 1 is 0.9 in b₁ and 0.1 in b₂. The average over the two halves is still 0.5, so nothing has changed about b overall. But now each half has a confident answer: error 0.1 each. The floor becomes 0.5 × 0.1 + 0.15 × 0.1 + 0.15 × 0.1 + 0.2 × 0.2 = 0.05 + 0.015 + 0.015 + 0.04 = 0.12. The bound depends on what information you give the classifier. The numbers are invented for the example.
The trap: treating every remaining error as a failure of training or model size. If you are at the Bayes error for your inputs, the remaining mistakes come from overlap in what you measured, and a bigger model will not remove them. Better inputs can.
Prof Rod's rule: before you tune, ask whether the classes can be told apart with the inputs you have.