The value of the optimal rule#
This study validates the interval of ey_optimal_rule[learned rule], the value of the optimal
rule, at one law that meets the conditions of its licence. The estimator is
TMLE(learned_rule=LearnedRule(), estimands=["ey_optimal_rule"], n_folds=10, cv_evaluation=True, targeting_scheme="pooled", g_bounds="auto") with the known treatment mechanism passed as
treatment_probabilities=. Each fold learns the plug-in rule of its outcome regression on its
training rows, and one pooled fluctuation targets every fold. On the same data and seeds the point
and the interval are those of the fold-evaluated learned-rule fit; only the target differs.
The value of the optimal rule gives the construction
and the conditions C3f, C7 and C8.
The target is the fixed parameter \(\Psi_{d_0}(P_0) = E_0\,\bar Q_0(d_0(W), W)\), with \(d_0(w) = \mathbb 1\{\bar Q_0(1, w) > \bar Q_0(0, w)\}\) and a tie going to arm 0. Every verdict reads the error against \(\Psi_{d_0}\). The fit’s own fold rules have the data-adaptive value \(\tilde\psi_{0n} = V^{-1}\sum_v \Psi_{d_v}(P_0)\), and the regret \(\Psi_{d_0} - \tilde\psi_{0n}\) is never negative. Each cell publishes the mean regret and its readings against \(\tilde\psi_{0n}\) beside the verdicts, and no verdict reads them. Van der Laan and Luedtke (2015), Section 7.2, last paragraph, license the interval for \(\Psi_{d_0}\) when the regret is \(o_P(n^{-1/2})\).
No canonical implementation is compared. No maintained package fits a cross-validated TMLE of the value of the optimal rule. A zero-row equivalence artifact records the absence of a comparator.
What was tested#
setting |
declaration |
|---|---|
laws |
\(W_1 \sim U(-1, 1)\), \(W_2 \sim \operatorname{Bernoulli}(0.5)\), \(\operatorname{logit} g_0(1 \mid W) = 0.3 W_1 - 0.2 W_2\) and \(\operatorname{logit} \bar Q_0(a, W) = 0.2 + 0.5 W_1 - 0.3 W_2 + a\,b(W)\), with three blips: |
fit |
|
known \(g\) |
every cell but one passes |
outcome learner |
a logistic regression ( |
treatment learner |
|
support key |
family |
truth |
\(\Psi_{d_0}\) by the trapezoid rule on 4,001 points of \(W_1\) for each \(W_2\), one number per law: 0.577115, 0.557421 and 0.547362 |
realized rule value |
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 raw fold curves, uncentred within each fold. The interval is \(\hat\psi \pm 1.96\,\mathrm{SE}\) |
primary budget |
1,600 replications of the known-\(g\) |
primary verdicts |
the framework defaults on the error against \(\Psi_{d_0}\): 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 learner’s population limit meets three readings, declared before any draw and computed by quadrature. Its limit has no tie mass (C7). Its limit rule differs from \(d_0\) off the tie set on at most 0.001 of the population (C3f). And \(\max_t P_0(0 < |b_0(W)| \le t)/t\) over \(t\) in 0.005, 0.01, 0.02 and 0.05 is at most 10, a bounded density of the blip at 0 (C8 with margin exponent 1). Each blip is smooth with a nonzero derivative at its roots and \(W_1\) is uniform, so the exponent itself holds analytically.
law |
cell |
n |
\(d_0\) treats |
tie mass |
limit differs from \(d_0\) |
margin reading |
role |
|---|---|---|---|---|---|---|---|
|
|
2,000 |
0.55 |
0 |
0 |
4.07 |
primary and |
|
|
2,500 |
0.293 |
0 |
0.293 |
1.965 |
|
|
|
2,000 |
0.55 |
0 |
0 |
4.07 |
|
|
|
2,000 |
0.40 |
0.60 |
0 |
2.08 |
|
The wrong_limit learner’s limit rule treats nobody, so its target converges to the value of that
rule, 0.512179, which is 0.0452 below \(\Psi_{d_0}\). Its n of 2,500 is the smallest multiple of 500
at which that gap is at least three SEs of the limit rule’s curve: 2,085 rows are needed, and
2,000 gives 2.94. Every other cell keeps n = 2,000. The hinge term of the partially_exceptional
learner makes its model correct, so C3f holds off the tie set and only C7 fails there. The laws,
the learners, the budgets, the seeds, the gate 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_optimal_value_design.py pins each limit, the gate and its
mutations, the efficiency bound, the control’s n, the sizing and the seeds.
tests/unit/test_learned_rule_optimal_value_harness.py checks the fits, the known-\(g\) key, the
truth, the regret, the rule refit and the property path. tests/unit/test_learned_rule_optimal.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 |
|---|---|---|---|---|---|---|---|
learned-rule law with the blip 0.1 + W1, a correct interaction logistic outcome learner and the known treatment mechanism, fold-evaluated report |
|
value of the optimal rule, E Qbar0(d0(W), W) with d0(w) = 1{Qbar0(1, w) > Qbar0(0, w)}, a fixed parameter |
|
-0.0026 to -0.000703 |
0.9444 |
0.9881 |
pass |
Theory properties#
family |
what it asks |
how it fails |
|---|---|---|
|
on |
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 |
|
on |
the control passes when its exact 99% coverage interval lies wholly below 0.92 |
|
on |
nothing fails. The cell has the role |
|
on |
nothing fails. The cell has the role |
The noise scale is the SD of \(\sqrt{n}\) times the estimate at \(d_0\) on non_exceptional with the
known \(g\), 0.664438 by quadrature, and no verdict reads it as an efficiency bound. The gated counts
are the smallest multiples of 400, at least 1,000, whose predictive pass probability under the
declared rule reaches 0.95 on a 4,000-draw pilot and on 8,000 draws pooled with a second probe,
taking the larger count. The two reports take the study’s floor of 1,200 draws, which no reading
moves. At that count a coverage reads to about 0.014 (95%), enough to show a gross failure and
not enough for a claim.
property |
cell |
role |
what was tested |
what must hold |
measured |
result |
|---|---|---|---|---|---|---|
|
|
diagnostic |
the learned-rule law with the blip 0.1 + W1, a correct interaction logistic outcome learner and a fitted logistic treatment model, n = 2,000: the declared fit with the logistic treatment model fitted in place of the known g |
none. The cell reports its bias, SE ratio and coverage against the value of the optimal rule, with the mean regret and the readings against the realized rule value |
bias -0.0026 to -0.000369, coverage 0.9296 to 0.9634, SE ratio 0.9749, mean regret 0.0013, against the realized rule value coverage 0.9542 and SE ratio 0.9855, rule disagreement 0.0275 to 0.2135 |
reported |
|
|
diagnostic |
the law with the blip (W1 - 0.2)_+, zero on 60% of the population, a correct outcome learner with the hinge term and the known treatment mechanism, n = 2,000: the declared fit with the known treatment mechanism |
none. The cell reports its bias, SE ratio and coverage against the value of the optimal rule, with the mean regret, the readings against the realized rule value and the range of the fold-rule disagreement |
bias -0.0021 to 0.000515, coverage 0.8885 to 0.9315, SE ratio 0.8878, mean regret 0.000865, against the realized rule value coverage 0.9192 and SE ratio 0.8931, rule disagreement 0 to 0.7350 |
reported |
|
|
positive |
the learned-rule law with the blip 0.1 + W1, a correct interaction logistic outcome learner and the known treatment mechanism, n = 2,000: the declared fit with the known treatment mechanism |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9439 to 0.9538, SE ratio 0.9818 to 1.0130 |
pass |
|
|
control |
the learned-rule law with the blip 0.1 + W1, a correct interaction logistic outcome learner and the known treatment mechanism, n = 2,000: a declared scale of independent noise is added to each estimate |
the SE-ratio interval must fall below the calibration band |
coverage 0.8281 to 0.8447, SE ratio 0.7011 to 0.7239 |
pass |
|
|
control |
the learned-rule law with the blip 0.1 + W1, a correct interaction logistic outcome learner and the known treatment mechanism, n = 2,000: the reported standard errors are multiplied by a declared factor below one |
the SE-ratio interval must fall below the calibration band |
coverage 0.8746 to 0.8891, SE ratio 0.7854 to 0.8102 |
pass |
|
|
control |
the law with the even blip 3 (W1^2 - 0.5), whose interaction logistic outcome learner’s limit rule treats nobody while the optimal rule treats 29.3%, with the known treatment mechanism, n = 2,500: the declared fit’s own estimate and SE, read against the value of the optimal rule, 0.0452 above the value of the learner’s limit rule |
the coverage interval must lie wholly below 0.92 |
coverage 0.0700 to 0.1134, SE ratio 1.0221, mean regret 0.0450, coverage of the realized rule value 0.9583 |
pass |
Result#
Every primary test and every gated property cell passed, and no fit failed. The primary test reads a standardized bias of -0.111, coverage of 0.944 and an SE ratio of 0.988 over 1,600 draws. The calibration positive reads an SE ratio of 0.997 and coverage of 0.949 over 13,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 |
4 of 4 |
|
diagnostic cells, reported with no verdict |
2 |
|
failed fits |
0 |
|
primary bias interval |
-0.0026 to -0.0007 |
|
calibration SE-ratio interval |
0.9818 to 1.0130 |
|
calibration coverage interval |
0.9439 to 0.9538 |
|
target-control coverage interval |
0.0700 to 0.1134 |
|
The support row was declared before the run: one P12 row under the fold-evaluated report with the
qualifier known_mechanism. It needed the primary bias leg, coverage floor and SE sanity, every
interval_calibration verdict and the optimal_target_control verdict to pass. They did, so the
registered row T46 covers the value of the optimal rule under the fold-evaluated report on rows
with the known treatment mechanism. An estimated \(g\), a rule learner, clusters, several splits,
fold targeting, the stacked report and more than two arms stay experimental.
The regret#
The interval covers \(\Psi_{d_0}\) only up to the regret, which Lemma 1 makes \(O_P(1/n)\) under these conditions. In the calibration cell the mean regret is 0.00138, about 0.09 estimate SDs, and it is the bias the verdicts read: standardized bias -0.088 against \(\Psi_{d_0}\), +0.004 against \(\tilde\psi_{0n}\). The SE ratio is 0.997 against \(\Psi_{d_0}\) and 1.006 against \(\tilde\psi_{0n}\), and the coverage 0.949 and 0.952. The primary bias interval excludes zero for the same reason, and the regret’s own spread widens the error’s SD by about 0.9% at n = 2,000, so it lowers the SE ratio against \(\Psi_{d_0}\) by about that much. The study measures one n, so it does not show the rate.
The target control#
At n = 2,500 the wrong_limit fit misses \(\Psi_{d_0}\): coverage 0.09, standardized bias -3.32,
with an SE ratio of 1.022. The miss is the limit gap, a mean regret of 0.0450 against the
quadrature gap of 0.0452. Against its own \(\tilde\psi_{0n}\) the same fit covers at 0.958 with an
SE ratio of 1.014, so the control fails because its learner targets another rule’s value, not
because the interval is wrong for the value of the rules it learned.
The estimated-\(g\) reading#
With the treatment model fitted, the non_exceptional fit reads a bias interval of -0.0026 to
-0.0004, an SE ratio of 0.975 and coverage of 0.948, with a 99% interval of 0.930 to 0.963, over
1,200 draws. Against \(\tilde\psi_{0n}\) it reads coverage of 0.954 and an SE ratio of 0.986, with a
mean regret of 0.00135. The source states the result with \(g\) known, and an estimated \(g\) is the
package’s step. This reading is published for decision E2 of the X11 plan, not as a validated
claim, and such a fit reads experimental.
The partially exceptional law#
Where the blip is zero on 60% of the population (C7 fails), the interval under-covers: coverage 0.912 with an SE ratio of 0.888 against \(\Psi_{d_0}\), and 0.919 with 0.893 against \(\tilde\psi_{0n}\). The regret is small there, a mean of 0.00086, so it is not the cause. The fold rules do not settle on the tie set: they disagree on 0.280 of rows on average, from 0 to 0.735. That breaks the fixed-limit condition of Theorem 6, so even the data-adaptive target loses its linearisation. No claim is made at this law.
No primary or property draw raised a solver warning, and the rule refit found the fit’s rule on every validation row of every draw.
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 \(d_0\) 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 |
|---|---|---|
|
1600 |
primary replications |
|
2000 |
observations per primary replication; the target control runs at 2,500 |
|
1 |
parameter tests against the truth |
|
1 |
of those, passing |
|
0 |
external comparisons declared |
|
0 |
external comparisons passing |
|
4 |
gated repeated-sampling property cells |
|
4 |
cells whose own and family verdicts pass |
|
2 |
diagnostic cells, reported with no verdict |
|
0 |
failed primary fits |
|
0.1111 |
largest absolute primary bias in error SDs |
|
0.9444 |
lowest measured primary coverage |
|
0.9279 |
lowest exact 99% primary coverage endpoint, against 0.90 |
|
0.9457 |
lowest bootstrap primary SE-ratio endpoint |
|
1.0354 |
highest bootstrap primary SE-ratio endpoint |
|
-0.0017 |
primary bias against the optimal value |
|
-0.0026 |
primary bias interval, lower end |
|
-0.000703 |
primary bias interval, upper end |
|
0.9881 |
primary SE ratio |
|
0.0149 |
mean oracle SE at the primary fits’ fold rules |
|
0.9970 |
calibration SE ratio |
|
0.9490 |
calibration coverage |
|
-0.0882 |
calibration standardized bias against the optimal value |
|
0.0014 |
calibration mean regret |
|
0.0041 |
calibration standardized bias against the realized rule value |
|
1.0061 |
calibration SE ratio against the realized rule value |
|
0.9516 |
calibration coverage of the realized rule value |
|
0.0768 |
calibration mean fold-rule disagreement |
|
0.8102 |
shrunken-SE control upper endpoint, against 0.93 |
|
0.7239 |
noise-control upper endpoint, against 0.93 |
|
0.0900 |
target-control coverage of the optimal value, at n = 2,500 |
|
0.1134 |
its upper endpoint, against 0.92 |
|
-3.3165 |
its standardized bias against the optimal value |
|
0.0450 |
its mean regret |
|
0.9583 |
its coverage of the realized rule value |
|
1.0140 |
its SE ratio against the realized rule value |
|
-0.0026 |
estimated-\(g\) bias interval, lower end |
|
-0.000369 |
estimated-\(g\) bias interval, upper end |
|
0.9749 |
estimated-\(g\) SE ratio |
|
0.9483 |
estimated-\(g\) coverage |
|
0.9296 |
its coverage interval, lower end |
|
0.9634 |
its coverage interval, upper end |
|
0.0013 |
its mean regret |
|
0.9542 |
its coverage of the realized rule value |
|
0.9855 |
its SE ratio against the realized rule value |
|
0.9117 |
partially exceptional coverage |
|
0.8878 |
its SE ratio |
|
0.9192 |
its coverage of the realized rule value |
|
0.8931 |
its SE ratio against the realized rule value |
|
0.000865 |
its mean regret |
|
0.2804 |
its mean fold-rule disagreement |
|
0.7350 |
its largest fold-rule disagreement |
|
0.0149 |
the SD at \(d_0\) 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 target control’s ceiling |
|
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.0100 |
the failed-fit bound of the committed run |
|
16 |
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 the value of the optimal rule. The row rests on accuracy against the truth and on the theory properties |
One law, one size and one learner per role |
The study fits n = 2,000 on one law with a binary treatment and outcome, ten equal folds, pooled targeting, the plug-in rule, |
The interval covers the optimal value up to the regret |
The regret \(\Psi_{d_0} - \tilde\psi_{0n}\) is \(O_P(1/n)\) under these conditions, and at n = 2,000 its mean is 0.00138, about 0.09 estimate SDs. The primary bias interval excludes zero because of it, and its spread lowers the SE ratio against \(\Psi_{d_0}\) by about 0.9%. Against \(\tilde\psi_{0n}\) the calibration cell reads a standardized bias of +0.004, an SE ratio of 1.006 and coverage of 0.952. One n is measured, so the rate is not shown |
The target control runs at n = 2,500 |
With a learner whose limit rule treats nobody while \(d_0\) treats 29.3%, the interval covers the value of the learner’s rules (0.958) and misses \(\Psi_{d_0}\) (0.09). The study shows that C3f matters, not how far a learner may stray from \(d_0\) |
Known treatment mechanism only |
The row needs |
No claim at an exceptional law |
Where the blip is zero on 60% of the population, the interval covers 0.912 at an SE ratio of 0.888 against \(\Psi_{d_0}\), and 0.919 at 0.893 against \(\tilde\psi_{0n}\). The fold rules do not settle on the tie set (disagreement 0 to 0.735), which breaks the fixed-limit condition; the regret, 0.00086 on average, is not the cause |
Compositions outside the row |
A rule learner, clusters, |
Pointwise intervals |
The study reads the pointwise interval of the one optimal value |
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.