Adaptive TMLE with external data#
This study measures AdaptiveTMLEMethod on a randomized trial pooled with external rows
(TrialWithExternalData, TrialATE). Adaptive TMLE gives the estimand, the
estimator and its conditions. The interval of a fit covers the working-model projection
\(\Psi_w\) of the dictionary the fit selected. It covers the trial effect \(\Psi\) only under the
oracle-approximation condition of the source, which no data check confirms. The study therefore
reads each scenario against the target its law supports and reports the coverage of all three
targets (\(\Psi\), \(\Psi_2\) and \(\Psi_w\)) beside it.
The study declares no property cell and no reference, so it is not a validation row, as
adding a method row states, and
the validation grid does not list it. The method therefore has no grid row.
The study keeps the gated policy of its declaration, as a named exception: its own hooks read the
primary rows, the controls and the failure accounting, and the run publishes only if every gate
passes. The declared run passed all of them. The numbers below come from the fresh run of
2026-11-09 at c6f9e51c, made after the fix to the cross-validated form’s variance (see the
“Declaration history” of the fixture README).
No canonical implementation is compared. The R atmle comparator is declared and pending, as
a separate pairing record on constant truths, because a record whose truth varies by replicate
cannot declare a pending reference. It never blocks this study.
What was tested#
setting |
declaration |
|---|---|
laws |
the App B laws of the source (a) to (d), a positivity stress law, a separating law |
fit |
|
size |
n = 4,000 pooled rows: 1,000 trial and 3,000 external. The ladder scenarios run at n = 1,000 and 2,000 |
primary budget |
2,800 replications of each of 17 scenarios, set by the repeated-sampling sizing rule at an 800-replicate pilot |
truth |
quadrature of \(\Psi\) and \(\Psi_2\) from the law, and of \(\Psi_w\) on each fit’s stored fold transformers, so the truth varies by replicate |
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 |
seeds |
|
policy |
|
Each scenario gates one target. a0, a1a, a1b, a3, a3_pi, a4, a5, h2_pooled, f1a
and f1b gate \(\Psi\), on laws where the dictionary spans the external bias. h2_trial gates
\(\Psi_2\). a2c, a2d, e1 and the two ladder scenarios gate the projection, because the bias
is outside the dictionary’s span. b1y is a reported stress row and gates nothing. The laws,
scenarios, controls, budgets and seeds were fixed before any run, in the T3 plan and
tests/studies/adaptive_tmle_trial.py, and
tests/unit/test_adaptive_tmle_trial_design.py recomputes the truths, the separations, the
control powers and the sizing without a run.
Accuracy against known truth#
law |
estimand |
what was tested |
implementation |
bias (99% interval) |
coverage |
SE ratio |
result |
|---|---|---|---|---|---|---|---|
the paper’s law (a) with no external bias, cross-validated form, n = 4,000 |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0017 to 0.0028 |
0.9500 |
0.9650 |
pass |
the paper’s law (a): external bias 0.2 + 1.1 W1 (1 - A), cross-validated form |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0084 to -0.0015 |
0.9486 |
0.9824 |
pass |
the paper’s law (b): external bias 0.5 + 3.1 W1 (1 - A) + 0.8 W3, cross-validated form |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0102 to -0.0030 |
0.9389 |
0.9676 |
pass |
the paper’s law (c): uniform covariates, external bias with an indicator outside the dictionary’s span |
|
the working-model projection of the fit’s own selected dictionary, which the interval covers whether or not the dictionary spans the truth |
|
-0.0044 to 0.0024 |
0.9411 |
0.9787 |
pass |
the paper’s law (d): uniform covariates, external bias with a squared term outside the dictionary’s span |
|
the working-model projection of the fit’s own selected dictionary, which the interval covers whether or not the dictionary spans the truth |
|
-0.0040 to 0.0027 |
0.9525 |
0.9963 |
pass |
positivity stress: the enrollment probability depends on W and is small for some W |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0023 to -0.000882 |
0.9443 |
0.9831 |
pass |
the positivity-stress law with a plain logistic regression for the enrollment probability, which is misspecified |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0026 to -0.0012 |
0.9314 |
0.9462 |
pass |
the paper’s law (b) with controls-only external data |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0050 to 0.0020 |
0.9486 |
0.9913 |
pass |
the paper’s law (b) with missing outcomes, the external missingness depending on the outcome |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0071 to 0.000265 |
0.9525 |
1.0233 |
pass |
reported stress row, passing by declaration: a binary outcome, the external control risk a shrunken trial risk, so the external bias passes through expit |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0107 to -0.0086 |
0.8836 |
0.8956 |
pass |
the separating law: the selected projection differs from the trial effect by at least three standard errors |
|
the working-model projection of the fit’s own selected dictionary, which the interval covers whether or not the dictionary spans the truth |
|
-0.0043 to 0.0026 |
0.9404 |
0.9684 |
pass |
the separating law, unpenalized main-terms working model, n = 1,000 (rung of the bias ladder) |
|
the working-model projection of the fit’s own selected dictionary, which the interval covers whether or not the dictionary spans the truth |
|
-0.0340 to -0.0174 |
0.9346 |
0.9613 |
pass |
the separating law, unpenalized main-terms working model, n = 2,000 (rung of the bias ladder) |
|
the working-model projection of the fit’s own selected dictionary, which the interval covers whether or not the dictionary spans the truth |
|
-0.0190 to -0.0079 |
0.9475 |
0.9686 |
pass |
the paper’s law (a), form=’pooled’ (no cross-fitting of the working model) |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0041 to 0.0027 |
0.9429 |
0.9769 |
pass |
the paper’s law (b), form=’pooled’ (no cross-fitting of the working model) |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0065 to 0.000353 |
0.9479 |
0.9873 |
pass |
a heterogeneous effect, so the effect among all rows differs from the trial’s; the pooled population |
|
the trial effect over the pooled covariate distribution, which the interval covers when the working model approximates the external bias |
|
-0.0059 to -0.000191 |
0.9468 |
0.9883 |
pass |
the heterogeneous-effect law with the target population set to the trial rows |
|
the trial effect over the trial rows’ own covariate distribution |
|
0.0035 to 0.0086 |
0.9379 |
0.9498 |
pass |
All 16 gated tests pass, and so does the reported row by declaration. No fit failed.
Coverage of the gated target runs from 0.9314 to 0.9525 and the SE ratio from 0.946 to 1.023. The
lowest coverage is a3_pi (0.9314) and h2_trial (0.9379). The highest SE ratio is a5 (1.023),
the scenario with missing outcomes.
Controls#
Each control rides on the draws of a host scenario and must fail where it should. The efficiency contrast is the one comparison against a different estimator, the trial-only TMLE.
control |
host |
what it reads |
expected |
measured |
|---|---|---|---|---|
efficiency |
|
RMSE of adaptive TMLE over RMSE of the trial-only TMLE, upper 99% bound below 1 |
gates |
0.677, 99% interval 0.651 to 0.703 |
efficiency |
|
the same ratio |
reported, no gain guaranteed |
1.022 and 1.056 |
K1, naive pooled TMLE |
|
coverage of \(\Psi\) when the external rows are treated as exchangeable |
below the 0.90 floor |
0.846 |
K2, main-terms working model |
|
coverage of the projection, and of \(\Psi\) |
projection passes, \(\Psi\) fails |
0.948 and 0.0146 |
K3, with and without the \(\Pi\) step |
|
coverage with the targeted fit, and with the \(\Pi\) fluctuation removed |
targeted passes, removed fails |
0.931 and 0.529 |
K5, pooled fit read against \(\Psi_2\) |
|
coverage of \(\Psi_2\) |
below the 0.90 floor |
0.0221 |
The efficiency contrast gates on a0 only. There the external rows carry no bias and the
selection that the oracle would make leaves the constant alone, which gives the influence function
0.48 of the trial-only standard deviation. On a1a and a1b a gain needs the lasso to leave out
every column that gives the external arms a free mean shift. The design review read ratios of
about 1.05 and 1.14 on scratch draws, so those two rows report the ratio. The committed run reads
1.022 and 1.056, with upper bounds 1.038 and 1.076: no gain there, and a small loss.
The declared stress row#
b1y has a binary outcome, and the external control risk is a shrunken trial risk, so the
external bias passes through expit. The guarantee of the method is pointwise (Theorem 1 and
Appendix C Theorem 2 of arXiv:2405.07186v2, and Theorems 5 to 7 of arXiv:2307.12544v2): the
interval covers \(\Psi\) only when the selected working model approximates the bias, and the
linear-plus-hinge dictionary does not span an expit bias. The two external arms’ biases differ
by \(\Psi^\# = -0.0148\), about 1.3 standard errors of that difference. The declaration expects the lasso at
n = 4,000 to keep only the constant in most replications, so that the projection misses \(\Psi\) by
about \(\Psi^\#\). The committed projection offset, 0.44 error SDs, agrees with that reading.
The committed run reads that. The interval covers \(\Psi\) in 0.8836 of replications, with a standardized bias of -0.4647 and an SE ratio of 0.8956, and covers the projection in 0.9421. No uniformly valid interval can be much shorter than the robust one at a zero difference (Hodges and Le Cam super-efficiency; Leeb and Pötscher on post-selection inference; Armstrong and Kolesar (2018) on adaptive intervals), so the row measures the cost of the narrower interval and gates neither the coverage of \(\Psi\), the bias nor the standard error. It is a stress row, and a defect would show elsewhere in the table. Its failure bound is published and gates nothing, and no replicate was lost.
The bias ladder#
Control K4 refits the unpenalized main-terms working model on e1 at n = 1,000, 2,000 and 4,000.
On e1 that projection differs from \(\Psi\) by a fixed 0.3207, so the ratio of the bias of \(\Psi\)
to its standard error is expected to grow with n while the interval for the projection keeps its
coverage. The committed run shows both. The ratio for \(\Psi\) is 1.80, 2.78 and 4.07 at the three
sizes, the same ratio for the projection stays at 0.157, 0.122 and 0.127, and the projection
coverage stays at 0.935, 0.948 and 0.948. The coverage of \(\Psi\) falls from 0.559 to 0.209 to 0.0146.
K2 is the n = 4,000 rung, and the ladder is a reporting row that fails no verdict.
Result#
reading |
value |
source |
|---|---|---|
primary tests passed |
17 of 17 |
|
lost replicates |
0 |
|
controls passed |
12 of 12 |
|
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 |
|---|---|---|
|
2800 |
primary replications per scenario |
|
4000 |
observations per primary replication |
|
17 |
scenario tests against the replication truth |
|
17 |
of those, passing |
|
0 |
external comparisons declared |
|
0 |
external comparisons passing |
|
0 |
repeated-sampling property cells, none declared |
|
0 |
of those, passing |
|
0 |
failed primary fits |
|
0.4647 |
largest absolute primary bias in error SDs, over all 17 rows |
|
0.8836 |
lowest measured primary coverage, over all 17 rows |
|
0.8605 |
lowest bootstrap primary SE-ratio endpoint |
|
1.0589 |
highest bootstrap primary SE-ratio endpoint |
|
0.9314 |
lowest gated coverage |
|
0.9182 |
its 99% lower endpoint, against 0.90 |
|
0.9379 |
second-lowest gated coverage |
|
0.9525 |
highest gated coverage |
|
1.0233 |
highest gated SE ratio |
|
0.9462 |
lowest gated SE ratio |
|
0.8836 |
reported row, coverage of \(\Psi\) |
|
-0.4647 |
reported row, bias in error SDs |
|
0.8956 |
reported row, SE ratio |
|
0.9421 |
reported row, coverage of the projection |
|
0.6765 |
RMSE ratio on |
|
0.6512 |
its 99% lower bound |
|
0.7027 |
its 99% upper bound, against 1 |
|
1.0219 |
RMSE ratio on |
|
1.0564 |
RMSE ratio on |
|
0.8461 |
K1, coverage of \(\Psi\) |
|
0.9479 |
K2, coverage of the projection |
|
0.0146 |
K2, coverage of \(\Psi\) |
|
0.9314 |
K3, coverage with the \(\Pi\) step |
|
0.5293 |
K3, coverage without it |
|
0.0221 |
K5, coverage of \(\Psi_2\) |
|
1.8023 |
K4, bias over SE of \(\Psi\) at n = 1,000 |
|
2.7795 |
K4, at n = 2,000 |
|
4.0693 |
K4, at n = 4,000 |
|
0.1569 |
K4, bias over SE of the projection at n = 1,000 |
|
0.1219 |
K4, at n = 2,000 |
|
0.1274 |
K4, at n = 4,000 |
|
0.9346 |
K4, projection coverage at n = 1,000 |
|
0.9475 |
K4, at n = 2,000 |
|
0.9404 |
|
|
0.5593 |
K4, coverage of \(\Psi\) at n = 1,000 |
|
0.2089 |
K4, at n = 2,000 |
|
0.9900 |
confidence level of every Monte Carlo interval |
|
0.0500 |
nominal size of the reported intervals |
|
10000 |
resamples behind every bootstrap interval |
|
0.2500 |
bias equivalence margin, in error SDs |
|
0.9000 |
validity floor the coverage lower endpoint must clear |
|
0.8000 |
SE-ratio screen, lower limit |
|
1.2000 |
SE-ratio screen, upper limit |
|
0.0100 |
the failed-fit bound of the committed run |
|
28 |
failed primary fits that bound allows |
|
0.9500 |
nominal coverage those intervals claim |
|
0.9900 |
above this, coverage is conservative rather than invalid |
|
0.9300 |
calibration-cell SE-ratio band, lower limit. The study declares no calibration cell |
|
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.1500 |
paired similarity margin, in pooled empirical SDs |
|
1.1000 |
largest external-comparison RMSE ratio bound |
|
-0.0250 |
smallest external-comparison coverage difference bound |
|
0.0500 |
largest external-comparison calibration excess bound |
|
0.8000 |
rejection lower bound a power control must clear |
|
-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.2500 |
slower rate a root-n interval must exclude |
Limitations#
limitation |
what it means for use |
|---|---|
No grid row |
The study declares no property cell and no reference, so the validation grid does not list it and the method has no validation row. The fast tier recomputes every verdict and every control from the committed rows |
There is no cross-implementation evidence |
The R |
The interval covers the projection |
The coverage of \(\Psi\) is read only on laws where the dictionary spans the external bias. |
One size and one learner class |
Every primary scenario draws n = 4,000 with additive spline learners that are close to correct on each law. The ladder adds n = 1,000 and 2,000 for one law. A flexible learner library is not measured here |
Selective enrollment is not measured |
The enrollment probability depends on \(W\) in |
Binary treatment, difference scale |
The study measures the difference of means for a binary treatment. Other treatments and scales refuse before any learner |
The efficiency gain is measured on |
The ratio of 0.677 holds where the external rows carry no bias. On |
Compositions outside the study |
Weights, clusters, a second outcome and repeated fits are not measured |
Reproduction#
The fixture README gives the run command and the sizing. 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 controls and the reported readings carry every published row.