Sub topic 10
Estimating the ceiling: human level and irreducible error
This chapter assumes you can train and score a scikit-learn model and know the difference between a metric on training data and on held-out data. A baseline gives you a floor. A ceiling gives you the other bound: the best score any model could plausibly reach on this task. The gap between the two shows how much improvement is left to find.
Why a ceiling matters
Suppose a model scores 0.82 and the baseline scores 0.70. Whether 0.82 is good depends on what is achievable. If the best possible score is 0.84, further work is nearly pointless. If it is 0.95, there is a lot of room.
Two sources set the ceiling:
- Irreducible error is the error that remains even for a perfect model, because the labels contain noise or the features do not hold enough information to predict them.
- Human-level performance is how well people do the same task. It is a practical stand-in for the ceiling when people can do the task.
Estimating irreducible error
You rarely know the true noise level, but you can bound it.
- Measure label agreement. Have two people label the same sample of items. Their agreement rate, or Cohen's kappa (agreement corrected for chance), caps what a model can reach, because the model is judged against labels that people themselves dispute.
- Check duplicate inputs. Find rows with identical features but different labels. The share of such conflicts is a direct lower bound on error.
- Use a known noise model. If you simulate data or know the measurement error of a sensor, you can compute the floor exactly.
The third case is useful for building intuition. With Gaussian noise of standard deviation σ, even a perfect predictor has an expected mean absolute error of σ·√(2/π).
import numpy as np
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_absolute_error
from sklearn.model_selection import train_test_split
rng = np.random.default_rng(0)
n = 5000
noise_sd = 1.0
X = rng.normal(size=(n, 3))
signal = 3.0 * X[:, 0] - 2.0 * X[:, 1]
y = signal + rng.normal(scale=noise_sd, size=n)
X_train, X_test, y_train, y_test, _, signal_test = train_test_split(
X, y, signal, random_state=0
)
model = LinearRegression().fit(X_train, y_train)
model_mae = mean_absolute_error(y_test, model.predict(X_test))
oracle_mae = mean_absolute_error(y_test, signal_test)
theory_floor = noise_sd * np.sqrt(2 / np.pi)
print("model MAE: ", round(model_mae, 3))
print("oracle MAE:", round(oracle_mae, 3))
print("theory: ", round(theory_floor, 3))The oracle predicts the noiseless signal, so its error is the floor. All three numbers land near 0.80. The linear model has almost no gap left, so a larger model would gain nothing here.
Using human level
For tasks such as image labeling, translation, or document review, measure people on the same test set and the same metric as the model. Some cautions apply:
- Use the same labeling guidelines you gave the annotators who produced the ground truth.
- Report the average person and, if you can, an expert group. Their scores can differ a lot.
- Treat human level as a guide, not a hard limit. Models can pass individuals, and combined judgments from several people usually beat a single person.
Reading the gap
Compare three numbers: baseline, model, and ceiling estimate. Then compute how much of the available room the model has already used.
| Quantity | Example value |
|---|---|
| Baseline error | 1.60 |
| Model error | 0.95 |
| Ceiling estimate | 0.80 |
| Share of room closed | (1.60 − 0.95) / (1.60 − 0.80) ≈ 81% |
A model that has closed most of the room gains little from more tuning. The remaining effort is better spent on label quality, new features, or error analysis, which a later chapter covers.
Common errors
- Treating 100% accuracy as the ceiling. Noisy labels make it unreachable.
- Estimating human level on a different sample or metric than the model's.
- Using a model score above the ceiling estimate as proof of success. It often signals leakage or overfitting to the test set.
Exercise
A model has MAE 0.95 on a task where a duplicate-input check and an annotator study suggest the best achievable MAE is about 0.90. The trivial baseline has MAE 2.00. How much of the available room has the model closed, and what should the team do next?
Show answer
Room is 2.00 − 0.90 = 1.10. The model closed 2.00 − 0.95 = 1.05, which is about 95%. Little improvement remains, so the team should stop tuning the model and instead check whether the ceiling estimate is trustworthy, then move to cost and good-enough criteria.