Learned treatment rules over three arms#
This study validates the interval of the cross-fitted learned-rule value on a treatment with three
arms. The estimator is TMLE(learned_rule=LearnedRule(), n_folds=10, cv_evaluation=True, targeting_scheme="pooled", g_bounds="auto"). Each fold learns the plug-in rule
\(d_v(w) = \arg\max_a \bar Q_v(a, w)\) of its outcome regression on its training rows, over the arms
0, 1 and 2, and a tie goes to the lowest arm code. The clever covariate is
\(\mathbb 1\{A = d_v(W)\} / g_v(A \mid W)\) with the multinomial mechanism, and one pooled
fluctuation targets every fold. The fit reports ey_learned_rule[learned rule] under the
fold-evaluated report.
More than two arms gives the construction and the
no-tie form of the limiting-rule condition it rests on.
The target is data-adaptive: \(\tilde\psi_{0n} = V^{-1}\sum_v \Psi_{d_v}(P_0)\), the value of the rules the folds learned. Each replication carries its own truth, and every statistic reads the error, the estimate minus that truth. A truth that varies by replication gives the rule.
No canonical implementation is compared. No maintained package fits a cross-validated TMLE of a learned rule over more than two arms. A zero-row equivalence artifact records the absence of a comparator.
What was tested#
setting |
declaration |
|---|---|
law |
|
fit |
|
outcome learner |
|
treatment learner |
|
support key |
family |
truth |
per replication: refit each fold’s outcome learner on the fit’s training rows with the package’s |
stored variance |
\(V^{-2}\sum_v n_v^{-2}\sum_{i\in v} D_i^2\) of the stored curve |
interval |
the package’s interval of a bounded mean, \(\operatorname{expit}\{\operatorname{logit}\hat\psi \pm 1.96\,\mathrm{SE}/(\hat\psi(1 - \hat\psi))\}\). The shrunken-SE, noise and shrunken coverage controls form the same interval at their own estimate and SE. The first run used \(\hat\psi \pm 1.96\,\mathrm{SE}\). The committed run is its rerun under this interval on the same seeds |
primary budget |
1,200 replications of the |
primary verdicts |
the framework defaults on the error: 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 |
|
A law cell gates only when its outcome learner’s population limit meets a margin condition declared before any draw: every arm’s share of the limit rule is at least 0.10, and the top two arms of the limit lie within 0.01 of each other on at most 2% of the population. Quadrature on the law gives each limit.
cell |
outcome learner |
arm shares of its limit rule |
top-two gap below 0.01 |
differs from the optimal rule |
role |
|---|---|---|---|---|---|
|
|
0.175, 0.417, 0.408 |
1.59% |
0 |
primary and |
|
|
0.2455, 0.417, 0.338 |
1.83% |
7.05% |
|
|
|
0, 1, 0 |
0 |
not gated |
|
The missing_quadratic model is misspecified in arm 2’s regression only. Every term interacts
fully with the arm, so the population score equations decouple by arm, and the limits of arms 0
and 1 are exact. The 7.05% disagreement is where the wrong arm-2 curve moves the argmax. The
drop_w1 limit assigns arm 1 everywhere, so the gate refuses it on its shares, and it serves as
the necessity control. The law, the learners, the budgets, the seeds, the truth rule, the margin
condition and the support-row condition were fixed before any run, in the X11 plan, its review,
the implementation review and the study design record.
tests/unit/test_learned_rule_arms_design.py pins each limit, the efficiency bound, the predicted
SE ratio, the sizing and the seeds, and tests/unit/test_learned_rule_arms_harness.py checks the
fits, the truth, the controls and the property path. tests/unit/test_learned_rule_arms.py holds
the unit witnesses of the construction.
Accuracy against known truth#
law |
estimand |
what was tested |
implementation |
bias (99% interval) |
coverage |
SE ratio |
result |
|---|---|---|---|---|---|---|---|
three-arm law with a multinomial logistic treatment mechanism, a correct arm-interacted logistic outcome learner, fold-evaluated report |
|
fold average of the values of the three-arm rules learned on each training fold |
|
-0.0013 to 0.000915 |
0.9475 |
0.9974 |
pass |
Theory properties#
Every property cell fits n = 2,000 with the declared treatment learner on the three_arms law.
family |
what it asks |
how it fails |
|---|---|---|
|
does the SE ratio of the |
a shrunken-SE control multiplies each SE by 0.80, and a noise control adds noise of one asymptotic SD over \(\sqrt{n}\) to each estimate. Each control’s SE-ratio interval must fall below the band |
|
with the |
the control multiplies each SE by 0.60, and its coverage interval must lie wholly below 0.92 |
|
does the fluctuation remove the plug-in’s bias with the |
the control is the same fit’s untargeted fold average of the initial plug-ins. The positive’s bias interval must lie inside the margin, the control’s outside it, and the two means must sit 0.5 positive-arm SDs or more apart |
|
for each law cell, how far the fitted rules sit from the outcome learner’s limit rule: the mean share of rows whose rule differs from it, the mean share whose own fold’s top two arms lie within 0.01, the mean smallest arm share, and the share of draws that leave an arm with no rows |
nothing fails. The cells have the role |
The noise scale is the SD of \(\sqrt{n}\) times the estimate at the optimal rule, 0.670220 by quadrature, and no verdict reads it as an efficiency bound. The sizes were set before the run from a 4,000-draw pilot of every cell, and a second 4,000-draw pilot of the two law cells in the design review gave the same counts. The coverage floor 0.92 is the calibration band’s lower end. The control’s shrink of 0.60 was declared before the pilot: at a true SE ratio of 1.30 the shrunken interval covers about 0.87, still below the floor.
The drop_w1 learner fits the cell means of \((A, W_2)\), so its untargeted plug-in carries the
confounding through \(W_1\). At its limit rule the plug-in sits 0.129 above that rule’s value,
9.4 SEs at n = 2,000. Its fold rules have not settled at this size: at \(W_2 = 0\) the limit gap
between arms 1 and 0 is 0.0245, about 0.6 SDs of a training fold’s difference of cell means. Each
fold’s target is the value of its own learned rule, so a fold that learns another rule does not
bias the targeted value. The pair therefore reads bias only, and it tests that the fluctuation
removes the confounded plug-in’s bias, not the multi-arm argmax at its limit, which the two law
cells carry.
property |
cell |
role |
what was tested |
what must hold |
measured |
result |
|---|---|---|---|---|---|---|
|
|
positive |
the three-arm law with the arm-interacted logistic outcome learner without arm 2’s quadratic term, so arm 2’s regression is misspecified and arms 0 and 1 are exact: the declared fit with the correct multinomial logistic treatment model fitted by maximum likelihood |
bias interval inside the margin, and the coverage interval’s lower end at or above 0.92; the SE ratio is read by no verdict |
bias -0.0019 to 0.000403, margin 0.0039, coverage 0.9173 to 0.9541, SE ratio 0.9960 |
fail |
|
|
control |
the three-arm law with the arm-interacted logistic outcome learner without arm 2’s quadratic term, so arm 2’s regression is misspecified and arms 0 and 1 are exact: the declared fit’s standard errors multiplied by 0.60 |
the coverage interval must lie wholly below 0.92 |
coverage 0.7312 to 0.7950, SE ratio 0.5976 |
pass |
|
|
positive |
the three-arm law with the arm-interacted logistic outcome learner, a correct model: the declared fit with the study’s logistic learners |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9304 to 0.9520, SE ratio 0.9559 to 1.0179 |
pass |
|
|
control |
the three-arm law with the arm-interacted logistic outcome learner, a correct model: a declared scale of independent noise is added to each estimate |
the SE-ratio interval must fall below the calibration band |
coverage 0.8256 to 0.8590, SE ratio 0.6969 to 0.7423 |
pass |
|
|
control |
the three-arm law with the arm-interacted logistic outcome learner, a correct model: the reported standard errors are multiplied by a declared factor below one |
the SE-ratio interval must fall below the calibration band |
coverage 0.8632 to 0.8932, SE ratio 0.7644 to 0.8154 |
pass |
|
|
diagnostic |
the three-arm law with the arm-interacted logistic outcome learner without arm 2’s quadratic term, so arm 2’s regression is misspecified and arms 0 and 1 are exact: the declared fit’s rules on every draw of the law cell, read against the outcome learner’s limit rule |
none. The cell reports the mean share of rows whose rule differs from the limit rule, the mean share whose own fold’s top two arms lie within 0.01, the mean smallest arm share and the share of draws that leave an arm with no rows |
limit disagreement 0.0383, near-tie share 0.0183, min arm share 0.2452, lost-arm share 0 |
reported |
|
|
diagnostic |
the three-arm law with the arm-interacted logistic outcome learner, a correct model: the declared fit’s rules on every draw of the law cell, read against the outcome learner’s limit rule |
none. The cell reports the mean share of rows whose rule differs from the limit rule, the mean share whose own fold’s top two arms lie within 0.01, the mean smallest arm share and the share of draws that leave an arm with no rows |
limit disagreement 0.0364, near-tie share 0.0165, min arm share 0.1772, lost-arm share 0 |
reported |
|
|
positive |
the three-arm law with an outcome learner that has no W1 term, the cell means of (A, W2): the declared fit with that learner, so targeting does the adjusting |
bias interval inside the equivalence margin |
bias -0.0030 to -0.000093, margin 0.0049 |
pass |
|
|
control |
the three-arm law with an outcome learner that has no W1 term, the cell means of (A, W2): the same fit’s untargeted fold average of the initial plug-ins at its fold rules, with no fluctuation |
bias interval must fall entirely outside the margin |
bias 0.1170 to 0.1212, margin 0.0070 |
pass |
Result#
The primary test passes, and six of the seven gated property cells pass. The
missing_quadratic__declared cell fails, as the support paragraphs below say. The primary test
reads a standardized bias of -0.014, coverage of 0.9475 and an SE ratio of 0.997 over 1,200 draws.
The calibration positive reads an SE ratio of 0.986 and coverage of 0.9419 over 3,200 draws, both
intervals inside their bands. Each control fails as declared.
reading |
value |
source |
|---|---|---|
primary tests passed |
1 of 1 |
|
gated property cells passed |
6 of 7 |
|
diagnostic cells, reported with no verdict |
2 |
|
failed fits |
0 |
|
calibration SE-ratio interval |
0.9559 to 1.0179 |
|
calibration coverage interval |
0.9304 to 0.9520 |
|
coverage-floor lower endpoint |
0.9173 |
|
The support row was declared before the run: one P11 row with treatment=("arms3",) under the
fold-evaluated report. It needed the primary bias leg, coverage floor and SE sanity, every
interval_calibration verdict, both conservative_coverage verdicts and the targeting_necessity
verdicts to pass. They did on the first run’s identity intervals, and the row T45 was registered.
The package then moved the interval of a bounded mean of a yes/no outcome to the logit scale
(small-sample scale). The study was rerun under that
interval on the same seeds, with the policy reporting, and every estimate and standard error
reproduced the first run’s bit for bit. The missing_quadratic__declared cell now covers 0.9375,
with a lower endpoint of 0.9173 against its floor of 0.92 (properties.csv), where the first run
covered 0.940 with a lower endpoint of 0.9201. So the row was withdrawn, and every three-arm fit
reads experimental. The shift is chance: 11 of 1,200 fits sat at the boundary of one interval or
the other, 4 gained and 7 lost, and the SE ratio is 0.996. The cell is published red with the
owner learned-rule-arms-coverage-draws.
The margin of the fitted rules#
The margin condition holds at both learners’ limits, and the fitted rules stay close to those
limits. With the correct model the fitted rules differ from the optimal rule on 3.6% of rows on
average, 1.6% of rows have their fold’s top two arms within 0.01, and the smallest arm share
averages 0.177. With missing_quadratic the same readings are 3.8%, 1.8% and 0.245 against its
own limit rule. No draw of either cell left an arm without rows.
Coverage under a misspecified arm#
With missing_quadratic the positive covers 0.9375, with a lower endpoint of 0.9173 below its
floor of 0.92, at a realized SE ratio of 0.996. The cells measure coverage when arm 2’s outcome regression omits its quadratic
term and arms 0 and 1 are exact at the limit. They do not show that the interval is conservative.
The curve omits the treatment model’s projection term, and Corollary 2 of van der Laan and Luedtke
(2015, eq. 11) makes that variance conservative for a maximum-likelihood \(g\) in a correct model,
which the paper extends to the cross-validated TMLE by analogy only. On this law the predicted SE
ratio of that term is 1.0004, so the study cannot tell that route from exact calibration.
The necessity pair#
The targeted drop_w1 value reads a standardized bias of -0.079, and its untargeted plug-in
+4.23, so the two means sit 6.18 positive-arm SDs apart. The targeted arm’s SE ratio of 0.948 and
coverage of 0.934 are a weak-margin reading of a rule that has not settled at n = 2,000. No
verdict reads them, and they are neither calibration evidence nor a claim of valid inference under
a misspecified outcome model.
Solver warnings#
The harness counts the scikit-learn and cleverly convergence warnings of each draw’s fits and
truth refits. No primary, calibration or coverage draw warned. One necessity draw of 1,200
(replicate 1046) raised two warnings and was kept. The truth check found the fit’s rule on every
validation row and the stored fold rule on every row of every draw. No rule reads the
warning counts.
Measured values#
Names beginning margin: are thresholds declared before the run. The name beginning bound: is
the SD of \(\sqrt{n}\) times the estimate at the optimal rule over \(\sqrt{2000}\). It sizes the noise
control only, and no verdict reads it as an efficiency bound. Everything else is measured from the
committed results and checked at the precision printed.
quantity |
value |
source |
|---|---|---|
|
1200 |
primary replications |
|
2000 |
observations per primary replication |
|
1 |
parameter tests against the truth |
|
1 |
of those, passing |
|
0 |
external comparisons declared |
|
0 |
external comparisons passing |
|
7 |
gated repeated-sampling property cells |
|
6 |
cells whose own and family verdicts pass |
|
2 |
diagnostic cells, reported with no verdict |
|
0 |
failed primary fits |
|
0.0139 |
largest absolute primary bias in error SDs |
|
0.9475 |
lowest measured primary coverage |
|
0.9286 |
lowest exact 99% primary coverage endpoint, against 0.90 |
|
0.9489 |
lowest bootstrap primary SE-ratio endpoint |
|
1.0523 |
highest bootstrap primary SE-ratio endpoint |
|
0.9974 |
primary SE ratio |
|
0.0064 |
primary Monte Carlo coverage SE |
|
0.7230 |
the smallest primary truth |
|
0.7325 |
the largest primary truth |
|
0.9860 |
calibration SE ratio |
|
0.9419 |
calibration coverage |
|
0.8154 |
shrunken-SE control upper endpoint, against 0.93 |
|
0.7423 |
noise-control upper endpoint, against 0.93 |
|
0.9375 |
coverage with |
|
0.9960 |
its realized SE ratio, which no verdict reads |
|
0.7950 |
coverage-control upper endpoint, against 0.92 |
|
-0.0792 |
necessity positive standardized bias |
|
0.9475 |
its SE ratio, which no verdict reads |
|
0.9342 |
its coverage, which no verdict reads |
|
4.2347 |
necessity control standardized bias |
|
6.1835 |
displacement between the arms, in positive-arm SDs, against 0.5 |
|
0.0364 |
mean share of rows whose rule differs from the limit rule, correct model |
|
0.0165 |
mean share of rows whose fold’s top two arms lie within 0.01, correct model |
|
0.1772 |
mean smallest arm share, correct model |
|
0 |
share of draws that leave an arm with no rows, correct model |
|
0.0383 |
the same, |
|
0.0183 |
the same, |
|
0.2452 |
the same, |
|
0 |
the same, |
|
0.0150 |
the optimal-rule SD over the root of n |
|
0.9900 |
confidence level of every Monte Carlo interval |
|
0.0500 |
nominal size of the reported intervals |
|
0.9500 |
nominal coverage those intervals claim |
|
10000 |
resamples behind every bootstrap interval |
|
0.2500 |
bias equivalence margin, in error SDs |
|
0.9000 |
validity floor the primary coverage lower endpoint must clear |
|
0.9900 |
above this, coverage is conservative rather than invalid |
|
0.8000 |
SE-ratio screen, lower limit |
|
1.2000 |
SE-ratio screen, upper limit |
|
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, and the |
|
0.9800 |
calibration-cell coverage band, upper limit |
|
0.8000 |
factor the shrunken-SE control applies to each SE |
|
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 |
|
0.5000 |
least displacement the necessity pair must show |
|
0.0100 |
the failed-fit bound of the committed run |
|
12 |
failed primary fits that bound allows |
Limitations#
limitation |
what it means for use |
|---|---|
There is no cross-implementation evidence |
No maintained package fits a cross-validated TMLE of a learned rule over more than two arms. The row rests on accuracy against the truth and on the theory properties |
One law, one size, one fold count and one learner per role |
The study fits n = 2,000 on one three-arm law with ten equal folds, pooled targeting, |
Compositions outside the row |
Four or more arms ( |
The no-tie condition is the package’s own step |
C3 for the argmax asks that the top two arms of the learner’s limit tie only on a set of probability zero. The sources are silent on multi-arm exceptional laws, and the study measures two laws that meet the margin condition, not one near a tie |
Coverage, not conservativeness, under a misspecified arm |
With |
One treatment learner |
The coverage was measured only with a correct parametric \(g\) fitted by maximum likelihood. A known \(g\) ( |
A necessity pair that reads bias only |
The |
Pointwise intervals |
The study reads the pointwise interval of the one learned-rule value |
One necessity draw with solver warnings |
One |
Reproduction#
The fixture README gives the run command and 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, the truth harness and the property results carry every published row.