The Data

freMTPL2 — French motor third-party liability claim counts, the standard actuarial benchmark. Prepared once, then frozen byte-for-byte to study 04 so both studies' anchors stay comparable (prepared SHA-256 db82e802…1cf948, verified by hash identity against the reference cell, not by re-running prep).

PropertyValue
Rows × columns678,013 × 12
TargetClaimNb (mean 0.038946 claims/row; 96.321% zero-claim)
Exposure-weighted frequency26,406 / 358,360.11 = 0.073686 claims per exposure-year
Modelled responseClaimNb / Exposure, with Exposure as the Poisson sample weight
Features9 — 5 numeric (VehPower, VehAge, DrivAge, BonusMalus, Density) + 4 categorical (Area, VehBrand, VehGas, Region)
Splitrandom 60/20/20 at seed 42 → train 406,807 / development 135,603 / sealed test 135,603
Null (intercept-only) dev deviance0.473037 — the split-identity anchor re-asserted on every run

The value-pattern gotchas (checked against raw tokens, never dtypes)

Klein's standing war story is that dtype == "object" checks lie under pandas string dtypes, so the audit reads raw CSV tokens with dtype=str, na_filter=False. All 12 columns, by value:

The dominant caveat: feature-profile twins straddle the split

The 9 modelled features repeat heavily — 528,765 distinct profiles over 678,013 rows. Under the seed-42 split, 31,798 profile groups span train and development, so:

26.54% of development rows (35,985 / 135,603) and 26.37% of sealed-test rows have a feature-identical twin in the train fold.

These are not full-row duplicates — IDpol is unique and Exposure varies, so the mechanized duplicate-row check correctly passes. They are policies with identical rating characteristics. The decision was to record, not fix: deduplicating or switching to a group split would break the 0.454861 / 0.444689 anchors and destroy cross-study comparability.

This is exactly why the study's standing directive is report the GAP, never the levels. Both tracks consume identical contamination, so the GLM↔GBDT difference — the actual estimand — is unbiased by it; what is optimistic is every absolute deviance versus a fresh portfolio. The upside is also bounded: twin rows are claim-poor (1.97% claim-bearing among the dev twins vs 3.68% overall).

The other reason levels lie: the folds are not identically frequent

Exposure-weighted frequency by partition:

train  0.073900          development  0.072375          sealed test  0.074350

A model calibrated on train therefore must over-predict development by 0.073900 / 0.072375 = 1.021 and under-predict the sealed test by 0.073900 / 0.074350 = 0.994 — before any question of model quality. Hold that thought; section 5 shows it explaining an apparent calibration finding almost exactly.

The clean-room leakage audit — and the leak that was already removed

Performed in a fresh context reading only study.yaml, prepare.py, pipeline.py, the prepared artifact and the profile — program.md and every other study's files stayed closed. Rows 3–4 are mechanized: 9/9 checks passed: clean.

The most instructive row is target leakage. prepare.py's RAW_KEEP is an allowlist, not a denylist: it admits exactly 12 canonical raw columns and drops 46 hub columns — including the hub's derived Frequency column, which is the target in disguise. Verified by value rather than by trusting the code, and quantified as a contrast:

ColumnCorrelation with ClaimNbReading
the dropped Frequency (if it had survived)+0.3055 (and +1.0000 with the modelled rate)the leak signature
BonusMalus — the strongest surviving feature+0.0667two orders of magnitude away from a leak

BonusMalus is also legitimate ex ante: the coefficient is fixed from prior years' experience at renewal, so it cannot encode this period's claims. The eval harness was sanity-checked too — the constant predictor scores 0.2554 and the label-shuffled predictor 1.5327 (glm) / 1.5296 (gbdt), both no-information baselines, with the metric direction matching the contract on both tracks.

Go / no-go

Decision: GO-WITH-CAUTIONS. No BLOCKER open. Three WARNs carried forward as standing directives: (1) report the gap, never the levels; (2) derive interaction pairs from a train-fold surrogate only — the pairs are a caller-supplied argument, which is the one live lookahead surface no static check can catch; (3) never filter the 365× rate tail — exposure weighting already down-weights a one-day policy to 1/365 of a full-year policy.

One structural limitation the card flags for the findings: the prepared artifact has no time column, so a temporal split is impossible and the frozen random split is the only realizable design. Every conclusion here is an in-period statement about this portfolio, not a forward-in-time generalization.