Score assessment by TMLE#
This study validates IdentifiedEffect.assess_score(...), which assesses a conditional-effect
score fitted on other data. For one score it reports the risk difference against the best
constant and the calibration intercept and slope; with compare= it also reports the paired
risk difference \(R(s_1) - R(s_2)\) of two scores. Every estimate is the substitution estimate of
one pooled TMLE fluctuation of the cross-fitted ATE fit along the span of the scores’ features,
with a Wald interval from its influence curve. Both the difference scale and the log-ratio scale
are measured. External scores gives the estimands,
the estimator and its conditions.
No canonical implementation is compared. EconML 0.16.0 comes closest. Its RScorer
returns a point score per CATE model, an R-square analogue of the R-loss against a
constant-effect baseline, with no interval. Its DRTester.evaluate_blp regresses doubly robust
pseudo-outcomes on one model’s predictions by OLS and reports the slope with a standard error
and a p-value (the classical OLS error for a binary treatment, HC1 for each arm of a categorical
one): one score’s calibration slope on the difference scale, from a one-step regression rather
than a TMLE. Neither reports a risk difference against the best constant, a paired risk
difference of two scores or a log-ratio calibration, and no comparison was run. The absence
does not block the row, and a zero-row equivalence artifact records it.
What was tested#
setting |
declaration |
|---|---|
laws |
\(W \sim U(-1, 1)^3\). Binary laws of the |
scores |
fixed functions of \(W_1\) and \(W_3\). Binary paired groups: \(S = 0.2 + 0.3 W_1\) against \(S_B = S + 0.15 \sin \pi W_3\) on the difference scale, and \(S = 0.15 + 0.25 W_1\) against \(S + 0.2 \sin \pi W_3\) on the log-ratio scale. Law |
groups |
nine fit groups: |
fit |
|
learners |
a spline GLM per arm (cubic splines, five knots) for \(\mu\) and a logistic GLM for \(g\). The two |
truth |
Gauss-Legendre quadrature with 48 nodes per axis; exact on law |
primary budget |
2,000 replications of |
primary verdicts |
the framework defaults: the 99% Student bias interval inside 0.25 SD, the lower end of the 99% Clopper-Pearson coverage interval at or above 0.90, and the SE-ratio interval inside 0.80 to 1.20 |
property budget |
15,200 replications of each calibration group, 1,000 of |
seeds |
|
policy |
|
The laws, groups, learners, budgets, controls and seeds were fixed before the run, in
tests/studies/score_assessment.py. The calibration count of 15,200 is the pooled predictive
rule at the SE ratios of a 2,400-draw pilot on a disjoint stream
(tests/studies/score_assessment_pilot.csv). The log-ratio risk differences of a single score
form their own pool, sized against an oracle computation with the true nuisances
(tests/studies/score_assessment_oracle.csv, 40,000 draws). Each positive bias row is priced
at the larger of its second-order theory bias and its oracle bias, which sets 2,000.
tests/unit/test_score_assessment_design.py checks the truths, the cells and those design
numbers.
Declaration history. The study was first declared at commit 3c00484. Before any run it was
redeclared under the design review’s rev 2.2. Those changes added the reduced-span retry of the
log-ratio fluctuation, the pilot at 2,400 draws, the separate pool and the oracle reference.
The n rule moved both log-ratio calibration groups from 2,000 to 4,000 rows. The final
declaration is commit 804cfea, which raised the bias budget to 2,000, and the declared run
ran at that commit. tests/canonical/score_assessment/regenerate.py lists every change.
Why the log-ratio rows run at n = 4,000. At 2,000 rows the pilot’s pooled SE ratio on the
log-ratio risk differences was 1.047, within the 99% interval of the oracle’s 1.026. That 1.047
is the oracle’s best-constant term plus the unexplained excess below (R1). At that ratio the
sizing predicted that no replication count up to 50,000 meets the family-wise calibration rule
(0.920 at the cap). The pre-run n rule (score_assessment.n_rule) therefore moved both groups
to 4,000 rows, with a fresh pilot and oracle on new streams. No interval was measured at 2,000
rows; the move rests on that prediction.
Accuracy against known truth#
law |
estimand |
what was tested |
implementation |
bias (99% interval) |
coverage |
SE ratio |
result |
|---|---|---|---|---|---|---|---|
the observational binary law, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), difference scale, a spline GLM per arm and a logistic treatment model, n = 2,000 |
|
the paired risk difference: S’s mean squared error for the CATE minus SB’s |
|
-0.000197 to 0.000349 |
0.9490 |
0.9996 |
pass |
Theory properties#
family |
what it asks |
how it fails |
|---|---|---|
|
for each parameter of the six calibration groups (R = 15,200), does the SE-ratio interval lie inside 0.93 to 1.07 and the coverage interval inside 0.92 to 0.98 |
the paired row with the SE \(\sqrt{SE_1^2 + SE_2^2}\) of the two single risk differences, which ignores their covariance, must lie above the band on |
|
under the declared wrong outcome regression with an estimated \(g\) (R = 2,000), is each risk difference’s standardized-bias interval inside \(\pm 0.25\) |
the plug-in at that initial outcome regression, without targeting, must lie wholly outside \(\pm 0.25\) |
|
on |
paired with the power cell |
|
on |
an inert test fails it |
The best-constant term. The risk difference of a single score is \(R(s) - R(c_n)\) at the
estimated best constant \(c_n\). Because \(c_n\) minimizes the estimated risk among constants, the
row is biased upward by about \(\operatorname{Var}(R_n'(c_0))/(2R''(c_0))\), which is \(O(1/n)\),
and its influence curve evaluated at \(c_n\) overstates the SE slightly. Both are second order and
vanish as \(n\) grows. The paired row carries neither, because the constant cancels. The design
priced the term before the run: score_assessment.theory_bias predicts 0.118, 0.118 and 0.084
SD on the three log-ratio risk differences at n = 4,000 and 0.051 SD on the difference scale at
2,000. The run measured 0.111, 0.127 and 0.088 SD on the log-ratio rows and 0.051 on
paired_2k’s \(S\) row, with every calibration interval inside the band.
The pilot’s excess over the oracle (design re-review R1). On the three log-ratio risk differences the pilot’s SE ratio exceeded the oracle’s by about 0.024 at 2,000 rows and 0.021 at 4,000. The oracle’s own excess over 1 halves as \(n\) doubles, as the best-constant term predicts, and this gap does not, so the term does not explain it. No defect was found before the run. The sizing read the pilot’s ratios, so the calibration count of 15,200 prices the excess. In the run the three rows read SE ratios of 1.004, 1.017 and 1.006 against the oracle’s 1.015, 1.013 and 1.004, within about 0.01 of it, so the run does not reproduce the pilot’s 0.02 excess. Its source is not established.
property |
cell |
role |
what was tested |
what must hold |
measured |
result |
|---|---|---|---|---|---|---|
|
|
positive |
the wide-overlap binary law with a declared wrong outcome regression, log-ratio scale, S = 0.15 + 0.25 W1 against SB = 0.05 + 0.1 W1 + 0.4 W1^2, n = 4,000: the TMLE under the declared wrong outcome regression and a fitted mechanism, SB’s risk minus the risk of the best constant |
the 99% interval of the standardized bias inside +-0.25 |
bias 0.000042 to 0.000254, margin 0.000460 |
pass |
|
|
positive |
the wide-overlap binary law with a declared wrong outcome regression, log-ratio scale, S = 0.15 + 0.25 W1 against SB = 0.05 + 0.1 W1 + 0.4 W1^2, n = 4,000: the TMLE under the declared wrong outcome regression and a fitted mechanism, S’s risk minus the risk of the best constant |
the 99% interval of the standardized bias inside +-0.25 |
bias 0.000079 to 0.000282, margin 0.000439 |
pass |
|
|
positive |
the wide-overlap binary law with a declared wrong outcome regression, log-ratio scale, S = 0.15 + 0.25 W1 against SB = 0.05 + 0.1 W1 + 0.4 W1^2, n = 4,000: the TMLE under the declared wrong outcome regression and a fitted mechanism, S’s risk minus SB’s risk |
the 99% interval of the standardized bias inside +-0.25 |
bias -0.000066 to 0.000130, margin 0.000425 |
pass |
|
|
positive |
the wide-overlap binary law with a declared wrong outcome regression, difference scale, S = 0.2 + 0.3 W1 against SB = 0.1 + 0.1 W1 + 0.4 W1^2, n = 4,000: the TMLE under the declared wrong outcome regression and a fitted mechanism, SB’s risk minus the risk of the best constant |
the 99% interval of the standardized bias inside +-0.25 |
bias -0.000665 to 0.000583, margin 0.0027 |
pass |
|
|
positive |
the wide-overlap binary law with a declared wrong outcome regression, difference scale, S = 0.2 + 0.3 W1 against SB = 0.1 + 0.1 W1 + 0.4 W1^2, n = 4,000: the TMLE under the declared wrong outcome regression and a fitted mechanism, S’s risk minus the risk of the best constant |
the 99% interval of the standardized bias inside +-0.25 |
bias -0.000235 to 0.000908, margin 0.0025 |
pass |
|
|
positive |
the wide-overlap binary law with a declared wrong outcome regression, difference scale, S = 0.2 + 0.3 W1 against SB = 0.1 + 0.1 W1 + 0.4 W1^2, n = 4,000: the TMLE under the declared wrong outcome regression and a fitted mechanism, S’s risk minus SB’s risk |
the 99% interval of the standardized bias inside +-0.25 |
bias -0.000090 to 0.000845, margin 0.0020 |
pass |
|
|
control |
the wide-overlap binary law with a declared wrong outcome regression, log-ratio scale, S = 0.15 + 0.25 W1 against SB = 0.05 + 0.1 W1 + 0.4 W1^2, n = 4,000: the plug-in at the declared wrong outcome regression, with no targeting, SB’s risk minus the risk of the best constant |
the 99% interval of the standardized bias must lie wholly outside +-0.25 |
bias -0.0093 to -0.0092, margin 0.000071 |
pass |
|
|
control |
the wide-overlap binary law with a declared wrong outcome regression, log-ratio scale, S = 0.15 + 0.25 W1 against SB = 0.05 + 0.1 W1 + 0.4 W1^2, n = 4,000: the plug-in at the declared wrong outcome regression, with no targeting, S’s risk minus the risk of the best constant |
the 99% interval of the standardized bias must lie wholly outside +-0.25 |
bias -0.0100 to -0.0099, margin 0.000050 |
pass |
|
|
control |
the wide-overlap binary law with a declared wrong outcome regression, log-ratio scale, S = 0.15 + 0.25 W1 against SB = 0.05 + 0.1 W1 + 0.4 W1^2, n = 4,000: the plug-in at the declared wrong outcome regression, with no targeting, S’s risk minus SB’s risk |
the 99% interval of the standardized bias must lie wholly outside +-0.25 |
bias -0.000705 to -0.000685, margin 0.000043 |
pass |
|
|
control |
the wide-overlap binary law with a declared wrong outcome regression, difference scale, S = 0.2 + 0.3 W1 against SB = 0.1 + 0.1 W1 + 0.4 W1^2, n = 4,000: the plug-in at the declared wrong outcome regression, with no targeting, SB’s risk minus the risk of the best constant |
the 99% interval of the standardized bias must lie wholly outside +-0.25 |
bias -0.0353 to -0.0351, margin 0.000360 |
pass |
|
|
control |
the wide-overlap binary law with a declared wrong outcome regression, difference scale, S = 0.2 + 0.3 W1 against SB = 0.1 + 0.1 W1 + 0.4 W1^2, n = 4,000: the plug-in at the declared wrong outcome regression, with no targeting, S’s risk minus the risk of the best constant |
the 99% interval of the standardized bias must lie wholly outside +-0.25 |
bias -0.0433 to -0.0431, margin 0.000289 |
pass |
|
|
control |
the wide-overlap binary law with a declared wrong outcome regression, difference scale, S = 0.2 + 0.3 W1 against SB = 0.1 + 0.1 W1 + 0.4 W1^2, n = 4,000: the plug-in at the declared wrong outcome regression, with no targeting, S’s risk minus SB’s risk |
the 99% interval of the standardized bias must lie wholly outside +-0.25 |
bias -0.0080 to -0.0079, margin 0.000275 |
pass |
|
|
positive |
law H, S = 1 + 1.5 W1 against SB = 1 + W1 + 0.5 W3, whose risks are equal, n = 2,000: S’s risk minus SB’s risk: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9451 to 0.9543, SE ratio 0.9801 to 1.0089 |
pass |
|
|
control |
law H, S = 1 + 1.5 W1 against SB = 1 + W1 + 0.5 W3, whose risks are equal, n = 2,000: S’s risk minus SB’s risk: the same paired estimate with the SE of its influence curve’s plug-in part alone, without the residual term |
the SE-ratio interval must lie below the calibration band |
coverage 0.3834 to 0.4039, SE ratio 0.2590 to 0.2666 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: the intercept of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9442 to 0.9535, SE ratio 0.9858 to 1.0161 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: the slope of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9468 to 0.9559, SE ratio 0.9854 to 1.0153 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: SB’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9455 to 0.9547, SE ratio 0.9804 to 1.0096 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: the intercept of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9454 to 0.9546, SE ratio 0.9855 to 1.0158 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: the slope of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9451 to 0.9543, SE ratio 0.9849 to 1.0146 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: S’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9429 to 0.9522, SE ratio 0.9801 to 1.0098 |
pass |
|
|
positive |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: S’s risk minus SB’s risk: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9434 to 0.9527, SE ratio 0.9815 to 1.0114 |
pass |
|
|
control |
the observational binary law, difference scale, S = 0.2 + 0.3 W1 against SB = S + 0.15 sin(pi W3), n = 2,000: S’s risk minus SB’s risk: the same paired estimate with the SE sqrt(SE_S^2 + SE_SB^2) of the two single-score risk differences, which ignores their covariance |
the SE-ratio interval must lie above the calibration band |
coverage 0.9997 to 1, SE ratio 2.9807 to 3.0711 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: the intercept of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9442 to 0.9534, SE ratio 0.9776 to 1.0068 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: the slope of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9447 to 0.9539, SE ratio 0.9774 to 1.0068 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: SB’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9429 to 0.9523, SE ratio 0.9785 to 1.0077 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: the intercept of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9432 to 0.9526, SE ratio 0.9779 to 1.0068 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: the slope of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9436 to 0.9529, SE ratio 0.9771 to 1.0069 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: S’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9428 to 0.9522, SE ratio 0.9781 to 1.0080 |
pass |
|
|
positive |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: S’s risk minus SB’s risk: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9437 to 0.9530, SE ratio 0.9827 to 1.0125 |
pass |
|
|
control |
law H (continuous outcome, effect 1 + W1), S = 1 + 0.8 W1 against SB = S + 0.3 W3, n = 2,000: S’s risk minus SB’s risk: the same paired estimate with the SE sqrt(SE_S^2 + SE_SB^2) of the two single-score risk differences, which ignores their covariance |
the SE-ratio interval must lie above the calibration band |
coverage 0.9997 to 1, SE ratio 4.3156 to 4.4472 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: the intercept of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9429 to 0.9522, SE ratio 0.9793 to 1.0083 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: the slope of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9444 to 0.9536, SE ratio 0.9823 to 1.0121 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: SB’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9479 to 0.9569, SE ratio 0.9914 to 1.0213 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: the intercept of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9458 to 0.9549, SE ratio 0.9828 to 1.0126 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: the slope of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9468 to 0.9559, SE ratio 0.9875 to 1.0171 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: S’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9488 to 0.9577, SE ratio 1.0021 to 1.0324 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 against SB = S + 0.2 sin(pi W3), n = 4,000: S’s risk minus SB’s risk: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9434 to 0.9527, SE ratio 0.9818 to 1.0110 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: the intercept of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9451 to 0.9543, SE ratio 0.9901 to 1.0197 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: the slope of SB’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9453 to 0.9544, SE ratio 0.9858 to 1.0143 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: SB’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9445 to 0.9538, SE ratio 0.9866 to 1.0172 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: the intercept of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9452 to 0.9544, SE ratio 0.9901 to 1.0195 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: the slope of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9438 to 0.9531, SE ratio 0.9843 to 1.0138 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: S’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9447 to 0.9539, SE ratio 0.9845 to 1.0149 |
pass |
|
|
positive |
the randomized binary law with P(A = 1) = 0.5 declared known, difference scale, the scores of paired_2k, n = 2,000: S’s risk minus SB’s risk: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9435 to 0.9528, SE ratio 0.9917 to 1.0210 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 alone, n = 4,000: the intercept of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9464 to 0.9555, SE ratio 0.9808 to 1.0100 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 alone, n = 4,000: the slope of S’s calibration line: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9431 to 0.9525, SE ratio 0.9747 to 1.0037 |
pass |
|
|
positive |
the observational binary law, log-ratio scale, S = 0.15 + 0.25 W1 alone, n = 4,000: S’s risk minus the risk of the best constant: the influence-curve Wald interval, with a spline GLM per arm (a linear spline on law H) and a logistic treatment model, or the known mechanism on the randomized law |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9456 to 0.9548, SE ratio 0.9891 to 1.0187 |
pass |
|
|
positive |
law H: the two-sided 95% Wald test that S’s risk minus SB’s is 0, n = 2,000: S = 1 + W1 + 0.13 W3 against SB = 1 + W1, where the test’s power is 0.90 |
the rejection rate’s lower end at least 0.80 |
rejection 0.8960, 0.8687 to 0.9194 |
pass |
|
|
positive |
law H: the two-sided 95% Wald test that S’s risk minus SB’s is 0, n = 2,000: S = 1 + 1.5 W1 against SB = 1 + W1 + 0.5 W3, whose risks are equal |
the 99% upper end of the rejection rate at most 0.10 |
rejection 0.0502, 0.0457 to 0.0549 |
pass |
Result#
Every primary test passed, and so did every property cell. No fit failed. The 32 calibration positives have SE-ratio intervals inside 0.93 to 1.07 and coverage intervals inside 0.92 to 0.98, on both scales, on binary and continuous outcomes, with an estimated and a known mechanism, and on the paired row of two scores of equal risk. Each control fails as declared.
reading |
value |
source |
|---|---|---|
primary tests passed |
1 of 1 |
|
property cells passed |
49 of 49 |
|
failed fits |
0 |
|
The calibration positives read SE ratios from 0.989 to 1.017 and coverage from 0.948 to 0.953.
The paired Wald test rejects in 0.050 of the replications where the risks are equal and in
0.896 at the declared difference of power_cont_2k. Under the declared wrong outcome
regression every TMLE risk difference stays within 0.11 SD of the truth, while the untargeted
plug-in lies 4.0 to 49 SD away. The SE that ignores the covariance of the two scores reads SE
ratios of 3.03 and 4.38, and the SE without the residual term 0.263.
Reduced-span fits. A log-ratio fit whose alternation does not settle reruns along the span
without its thinnest direction, and is accepted only when every original score equation still
holds (see External scores). comparison.csv
counts these fits by group and their coverage, ungated:
group |
reduced-span fits |
coverage on those fits |
|---|---|---|
|
27 of 15,200 |
1.000, 0.963 and 1.000 on the risk difference, intercept and slope |
|
49 of 15,200 |
0.918 on each \(S\) row; 0.898, 0.939 and 0.959 on the \(S_B\) rows; 0.857 on the paired row |
|
155 of 2,000 |
0.981, 0.942 and 0.974 on the \(S\) rows; 0.981, 0.968 and 0.974 on the \(S_B\) rows; 0.948 on the paired row |
No difference-scale fit reduces its span. These fits are a selected set, the draws on which the
full span would not settle, so nominal coverage is not expected on them, and such a fit reads
experimental. The paired row of paired_crr_4k covers on 42 of its 49 (99% Clopper-Pearson
interval 0.685 to 0.957, one-sided binomial p of 0.011 against 0.95), which is consistent with
under-coverage on that subset. The gated cells include these fits: 0.18% and 0.32% of the
supported log-ratio groups’ replications, and 7.8% of paired_crr_dr_4k’s gated bias cells.
Removing 49 fits from 15,200 moves a coverage by at most 0.003, so no calibration verdict rests
on them.
The status rule was declared before the run. Every gated verdict passed, so an assessment whose
configuration a measured group covers reads supported. The measured configurations are
cleverly.effect_curves.SCORE_ASSESSMENT_MEASURED for the single-score rows and
SCORE_PAIRED_MEASURED for the paired row; every other configuration reads experimental.
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 |
|---|---|---|
|
2000 |
primary replications |
|
2000 |
observations per replication |
|
1 |
parameter tests against the truth |
|
1 |
of those, passing |
|
0 |
external comparisons declared |
|
0 |
external comparisons passing |
|
49 |
repeated-sampling property cells |
|
49 |
cells whose own and family verdicts pass |
|
0 |
failed primary fits |
|
0.0161 |
largest absolute primary bias in error SDs |
|
0.9490 |
lowest measured primary coverage |
|
0.9350 |
lowest exact 99% primary coverage endpoint, against 0.90 |
|
0.9558 |
lowest bootstrap primary SE-ratio endpoint |
|
1.0463 |
highest bootstrap primary SE-ratio endpoint |
|
1.0040 |
single-score log-ratio risk difference, SE ratio |
|
0.1113 |
its standardized bias, the best-constant term |
|
1.0170 |
paired group’s log-ratio \(S\) risk difference, SE ratio |
|
1.0324 |
highest calibration SE-ratio endpoint |
|
0.1266 |
its standardized bias |
|
1.0061 |
log-ratio \(S_B\) risk difference, SE ratio |
|
0.0883 |
its standardized bias |
|
0.9747 |
lowest calibration SE-ratio endpoint |
|
0.9482 |
log-ratio paired row, coverage |
|
0.9482 |
difference-scale paired row, coverage |
|
0.0506 |
difference-scale \(S\) risk difference, standardized bias |
|
0.9498 |
paired row at equal risks, coverage |
|
0.0502 |
paired test, size |
|
0.8960 |
paired test, power |
|
3.0251 |
SE ignoring the covariance, binary law |
|
4.3791 |
SE ignoring the covariance, law |
|
0.2628 |
SE without the residual term |
|
0.1027 |
wrong outcome regression, log-ratio \(S\) risk difference |
|
0.0465 |
wrong outcome regression, difference-scale paired row |
|
-4.0293 |
untargeted plug-in, smallest displacement |
|
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 |
|
20 |
failed primary fits that bound allows |
Limitations#
limitation |
what it means for use |
|---|---|
There is no cross-implementation evidence |
EconML 0.16.0’s |
The measured configurations |
A binary outcome with an estimated mechanism on either scale, a binary outcome with a known mechanism on the difference scale, and a continuous outcome with an estimated mechanism on the difference scale, each with a binary treatment, iid unweighted rows, complete outcomes, one split and cross-fitted nuisances. The paired row is measured in the same four. Weights, clusters, missing outcomes, a pair of arms of a multi-arm treatment, an ATE fit without cross-fitting, and every other scale, outcome and mechanism read |
Sizes, laws and learners |
The difference-scale groups run at n = 2,000 and the log-ratio groups at 4,000; at 2,000 rows the pilot’s SE ratio of 1.047 (the best-constant term plus the R1 excess) predicted that no count up to 50,000 meets the calibration rule, and no interval was measured there. Every law is smooth on \([-1, 1]^3\), and the nuisances are spline or logistic GLMs; the default learner library is not measured. The status does not read \(n\) or the learner, so such a fit within a measured configuration reads |
The best-constant term |
A single score’s risk difference is biased upward by a second-order term, measured with consistent nuisances at 0.09 to 0.13 SD on the calibration groups’ log-ratio rows at n = 4,000 (0.08 to 0.10 on the |
The pilot’s unexplained excess (R1) |
On the log-ratio risk differences the pilot’s SE ratio exceeded the oracle’s by about 0.02 at both sizes, which the best-constant term does not explain. The run did not reproduce it, and its source is not established |
Reduced-span fits |
231 log-ratio fits settled only on a reduced span. Their coverage ranged from 0.857 to 1.000 by row, and the paired row’s 42 of 49 is consistent with under-coverage on these selected draws. Such a fit reads |
One check is blind on law |
On law |
One wrong nuisance |
The |
The scores and their selection |
Every score is a fixed function fitted outside the sample. A score fitted on these rows, out-of-fold predictions included, is not external, and the interval covers one pair named before the fit, not the best of several |
Reproduction#
The declared run is python -m tests.canonical.score_assessment.regenerate, whose docstring
gives the run form, the changes since the first declaration and the red-cell reading. 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,
the property results
and the comparison with the one-step
carry every published row.