05 — Measured
the inconvenient
results are the point
Six worked examples ship with the
deterministic datasets that produced them. These are measured values, not illustrations. The
ones that flatter nobody are the ones worth keeping.
LightGBM has the best test RMSE. It is not selected, because linear
regression had the better validation RMSE. Reporting LightGBM's 43,433 as a held-out estimate
would be reporting a number the test set had already been used to choose.
The unadjusted contrast has the wrong sign: low earners were far
likelier to enrol. Every adjusted estimator recovers a positive effect — and the one furthest
from the truth, IPW at 3,416, is also the one whose post-adjustment balance breaches the 0.1
convention. The diagnostic flags it before anyone looks at the effect size. The report's own
verdict is printed verbatim: “Adjusted estimators disagree materially. Treat the effect as
poorly identified rather than picking the most convenient one.”
Isolation Forest — the default choice in most tutorials — is beaten on PR-AUC by
a plain Mahalanobis distance. One of the four injected fault modes breaks the temperature /
vibration correlation while leaving both margins individually normal: invisible to a
per-feature z-score by construction, visible to a covariance-aware method. That is what the two
statistical baselines exist to force.