Assessment readings of an EP curve#
This study validates the held-out readings of curve.diagnostics on an EP curve of the CATE:
the out-of-fold calibration slope of calibration(), the sign of the doubly robust risk
difference of risk_comparison() against the training-fold constant, and the split
sensitivity of stability(). The curve is effect.estimate("ep", ...) at the
ep-cate schedule, \(k = 4\) cosines per modifier at n = 2,000. None of these
readings has an interval. Conditional effects
defines each one.
No canonical implementation is compared. No maintained package computes these readings of an EP curve. A zero-row equivalence artifact records the absence of a comparator.
What was tested#
setting |
declaration |
|---|---|
laws |
|
fit |
|
readings |
the calibration slope of the difference-scale pseudo-outcome on the out-of-fold curve; the same slope of the curve stretched by 1.5 about its mean on the same folds; the reported EP-minus-constant DR risk difference, beside its exact value \(\overline{(\hat\theta - \tau_0)^2} - \overline{(c - \tau_0)^2}\) at the true CATE; |
primary rows |
the projection TMLE of conditional-projection’s |
budgets |
300 replicates of |
seeds |
|
policy |
|
The laws, readings, thresholds and seeds were fixed before the run in the P1 plan (section 5.4
and amendments rev 2.4 and 2.5) and tests/studies/ep_assessment.py. Every claim’s pass
probability was computed from a pilot on its own stream (tests/studies/ep_assessment_pilot.csv),
and tests/unit/test_ep_assessment_design.py pins those design numbers.
Accuracy against known truth#
The primary rows are the projection TMLE of the shared observational law, as in ep-cate.
law |
estimand |
what was tested |
implementation |
bias (99% interval) |
coverage |
SE ratio |
result |
|---|---|---|---|---|---|---|---|
conditional-projection’s observational law with a CATE that is not linear in W3, spline GLM learners, n = 4,000, on this study’s own seed |
|
the intercept of the least-squares projection of the CATE on (1, W1, W3) |
|
-0.000955 to 0.000679 |
0.9554 |
0.9996 |
pass |
conditional-projection’s observational law with a CATE that is not linear in W3, spline GLM learners, n = 4,000, on this study’s own seed |
|
the W1 slope of the least-squares projection of the CATE on (1, W1, W3) |
|
-0.0015 to 0.0013 |
0.9454 |
0.9978 |
pass |
conditional-projection’s observational law with a CATE that is not linear in W3, spline GLM learners, n = 4,000, on this study’s own seed |
|
the W3 slope of the least-squares projection of the CATE on (1, W1, W3) |
|
-0.000907 to 0.0020 |
0.9479 |
0.9807 |
pass |
Theory properties#
family |
what it asks |
how it fails |
|---|---|---|
|
at the strong law, is the two-sided 99% interval of the mean out-of-fold calibration slope inside 0.85 to 1.15 |
the stretched curve’s slope is exactly \(1/1.5\) of the curve’s on every replicate, so its 99% upper bound must fall below 0.85. It is a deterministic resolution check of the reading, not an independent failure |
|
at the strong law, does the share of replicates whose reported risk difference has the sign of its exact value have a 99% Clopper-Pearson lower bound of at least 0.80 |
none; at the weak law the true difference is of the order of its estimation SD, so the share is reported only |
|
the mean |
reported with no verdict |
Stability is reported, not gated (plan amendment rev 2.4). Every refit under another split seed reuses the same draw, so the reading measures sensitivity to the cross-fitting split and not sampling noise. A curve of noise at a constant effect then reads low, and a claim that the weak law warns would fail at any number of replicates.
property |
cell |
role |
what was tested |
what must hold |
measured |
result |
|---|---|---|---|---|---|---|
|
|
positive |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the mean out-of-fold calibration slope of the EP curve at the schedule size 4 |
two-sided 99% interval inside 0.85 to 1.15 |
reading 0.9857, 99% interval 0.9849 to 0.9865 |
pass |
|
|
control |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the same slope of the curve stretched by 1.5 about its mean, on the same folds |
one-sided 99% upper bound below 0.85: the control must fail |
reading 0.6571, 99% interval 0.6566 to 0.6577, threshold 0.8500 |
pass |
|
|
diagnostic |
the same law with the constant CATE 0.1, n = 2,000: the mean out-of-fold calibration slope of the EP curve at the schedule size 4 |
reported with no verdict |
reading -0.1572, 99% interval -0.2839 to -0.0306 |
reported |
|
|
diagnostic |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the mean exact EP-minus-constant risk difference at the true CATE |
reported with no verdict |
reading -1.9672, 99% interval -1.9768 to -1.9576 |
reported |
|
|
diagnostic |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the mean reported EP-minus-constant DR risk difference |
reported with no verdict |
reading -1.9671, 99% interval -1.9897 to -1.9445 |
reported |
|
|
positive |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the share of replicates whose reported EP-minus-constant DR risk difference has the sign of the exact difference at the true CATE |
one-sided 99% Clopper-Pearson lower bound at least 0.80 |
reading 1, 99% lower 0.9848, threshold 0.8000 |
pass |
|
|
diagnostic |
the same law with the constant CATE 0.1, n = 2,000: the mean exact EP-minus-constant risk difference at the true CATE |
reported with no verdict |
reading 0.0256, 99% interval 0.0231 to 0.0281 |
reported |
|
|
diagnostic |
the same law with the constant CATE 0.1, n = 2,000: the mean reported EP-minus-constant DR risk difference |
reported with no verdict |
reading 0.0224, 99% interval 0.0186 to 0.0263 |
reported |
|
|
diagnostic |
the same law with the constant CATE 0.1, n = 2,000: the share of replicates whose reported EP-minus-constant DR risk difference has the sign of the exact difference at the true CATE |
reported with no verdict |
reading 0.9600, 99% lower 0.8883 |
reported |
|
|
diagnostic |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the mean relative SD of the curve over five split seeds on the same draw |
reported with no verdict |
reading 0.0095, 99% interval 0.0091 to 0.0098 |
reported |
|
|
diagnostic |
ep-cate’s complex d = 3 law at moderate overlap, n = 2,000: the share of replicates whose relative SD exceeds 0.5 and warns |
reported with no verdict |
reading 0, 99% lower 0 |
reported |
|
|
diagnostic |
the same law with the constant CATE 0.1, n = 2,000: the mean relative SD of the curve over five split seeds on the same draw |
reported with no verdict |
reading 0.0773, 99% interval 0.0720 to 0.0827 |
reported |
|
|
diagnostic |
the same law with the constant CATE 0.1, n = 2,000: the share of replicates whose relative SD exceeds 0.5 and warns |
reported with no verdict |
reading 0, 99% lower 0 |
reported |
Result#
Every primary test and every gated property cell passed, and no fit failed. The calibration slope reads 0.986 with a 99% interval of 0.985 to 0.987, and the stretched control reads 0.657. The reported risk difference has the sign of its exact value in all 300 strong-law replicates, and its mean, \(-1.967\), matches the exact mean.
reading |
value |
source |
|---|---|---|
primary tests passed |
3 of 3 |
|
gated property cells passed |
3 of 3 |
|
failed fits |
0 |
|
At the weak law the reported risk difference is positive, 0.022 against an exact 0.026: the
curve’s wiggle costs risk against the constant, and the reading says so in 96 of 100
replicates. Its calibration slope reads \(-0.16\), which carries no information at a constant
effect. relative_sd reads 0.009 at the strong law and 0.077 at the weak law, and no replicate
of either warns. The low weak-law value is the reason the warning cannot certify a curve: read
heterogeneity_test() and the projection’s intervals for that.
Measured values#
Names beginning margin: are thresholds declared before the run. Everything else is measured
from the committed results and checked at the precision printed.
quantity |
value |
source |
|---|---|---|
|
2400 |
primary replications |
|
4000 |
observations per replication |
|
3 |
parameter tests against the truth |
|
3 |
of those, passing |
|
0 |
external comparisons declared |
|
0 |
external comparisons passing |
|
3 |
gated repeated-sampling property cells |
|
3 |
cells whose own and family verdicts pass |
|
0 |
failed primary fits |
|
0.0197 |
largest absolute primary bias in error SDs |
|
0.9454 |
lowest measured primary coverage |
|
0.9324 |
lowest exact 99% primary coverage endpoint, against 0.90 |
|
0.9450 |
lowest bootstrap primary SE-ratio endpoint |
|
1.0369 |
highest bootstrap primary SE-ratio endpoint |
|
0.9857 |
mean calibration slope |
|
0.9849 |
its 99% lower end |
|
0.9865 |
its 99% upper end |
|
0.6577 |
stretched control’s 99% upper end |
|
0.9848 |
sign share’s 99% lower end |
|
0.9600 |
weak-law sign share, reported |
|
0.0095 |
strong-law |
|
0.0773 |
weak-law |
|
0.9900 |
confidence level of every Monte Carlo interval |
|
0.2500 |
bias equivalence margin, in error SDs |
|
0.9000 |
validity floor the primary coverage lower endpoint must clear |
|
0.9300 |
calibration-cell SE-ratio band, lower limit |
|
1.0700 |
calibration-cell SE-ratio band, upper limit |
|
0.9200 |
calibration-cell coverage band, lower limit |
|
0.9800 |
calibration-cell coverage band, upper limit |
|
0.1000 |
largest size a one-sided type-I bound may establish |
|
0.8000 |
rejection lower bound a power control must clear |
|
0.0100 |
the failed-fit bound of the committed run |
|
0.0500 |
nominal size of the reported intervals |
|
10000 |
resamples behind every bootstrap interval |
|
0.0500 |
largest external-comparison calibration excess bound |
|
-0.0250 |
smallest external-comparison coverage difference bound |
|
-0.2500 |
slower rate a root-n interval must exclude |
|
0.9500 |
nominal coverage those intervals claim |
|
0.9900 |
above this, coverage is conservative rather than invalid |
|
0.1500 |
paired similarity margin, in pooled empirical SDs |
|
1.1000 |
largest external-comparison RMSE ratio bound |
|
-0.5000 |
contraction rate root-n asymptotics predict |
|
-0.6250 |
accepted root-n slope band, lower limit |
|
-0.3750 |
accepted root-n slope band, upper limit |
|
0.8000 |
SE-ratio screen, lower limit |
|
1.2000 |
SE-ratio screen, upper limit |
|
24 |
failed primary fits that bound allows |
Limitations#
limitation |
what it means for use |
|---|---|
No interval |
The readings are point readings. The intervals on this axis come from the projection TMLE and |
One law, one size, one learner |
Each claim is measured on one law at n = 2,000 with the ensemble and the schedule size. Another law, size or learner rests on the readings’ construction alone |
Stability is not a claim |
|
The stretched control is mechanical |
Its slope is \(1/1.5\) of the curve’s by construction, so it fails whenever the calibration claim passes. It checks that the reading resolves a miscalibrated curve, not an independent failure |
The sign claim is coarse |
The strong law’s exact risk difference is about \(-2\), far from 0, so the sign claim shows that the reading points the right way when the gap is large. At the weak law, with a gap near the estimation SD, it is reported only |
Reproduction#
The declared run is python -m tests.canonical.ep_assessment.regenerate, whose docstring gives
the run form. The
manifest
records the seeds, the margins, the estimator configuration, the source hashes and the result
hashes. The run log
records the commit, the clean tree, the runtime and the wall time. The
replications
and the property results
carry every published row.