chc.switchback¶
Stability tier: experimental.
Which switchback to run, and how to read it, for a named effect of a lever on a plant with memory.
A switchback randomises a lever over time within a zone, on in some periods and off in others. On a plant with memory the periods are not independent units: what the lever did last period is still in the state. So the design has to say which effect it is for. This module plans for a first-order state per zone,
x_{t+1} = a x_t + b u_t + eps_t, u_t in {0, 1} with probability 1/2, y_t = x_t (+ eta_t),
and for the effect of holding the lever on for H periods, tau_H = b (1 - a^H) / (1 - a)
(Horizon): the channel b at H = 1, the steady state b / (1 - a) at
H = inf, and any horizon between. 0 < a < 1, and nothing here holds outside it.
The results it rests on (the lab's switchback thread, independently verified):
- The design enters only through one number,
A1 = sum_{s >= 1} a^(s-1) rho(s),rhothe assignment's autocorrelation, when the analysis regressesy_{t+1}on(1, y_t, u_t). That needs a fair, ergodic design and an intercept. - Orthogonality by design. That regression's plug-in
b_hat S_H(a_hat)has variance at least(4 sigma^2 / T) S_H(a)^2, the variance withaknown, with equality iffA1 = S_H'(a) / S_H(a): the design makes the persistence estimate orthogonal to the effect. Any other design losesq (A1 - A1*)^2 / D(A1)of it,q = b^2 / (4 sigma^2), and the optimum does not depend onq. So the channel wants an i.i.d. design, a horizon a Markov design that flips with probabilitya / (1 + 2a)atH = 2, and the steady state never to switch, which a floor on the number of switches stops. - Several effects at once lose
q (A1 - A1*_H)^2 / D(A1)each, withDcommon to all, so the design that minimises the worst loss sits between the extreme optima. - Measurement noise makes that regression inconsistent for every
H >= 2, and for the channel at any design but the i.i.d. one. IV with(u_t, u_{t-1})is consistent at every design, and is planned at its own minimax design. - Without a trusted state model only model-free readings are planned: the channel by the
regression at
p = 1/2;tau_Hby the difference in means over blocks of lengthHkeeping each block's last period,DIM(H, H-1), which is unbiased fortau_Hon any linear time-invariant plant, or by the local-projection sum atp = 1/2; the steady state by the block difference in means with the smallest worst mean squared error, whose bias is quoted and not removed, since no model-free design is unbiased for it.
design_switchback returns the arms, and for each effect the analysis, its standard error,
its minimum detectable effect and its loss against the effect's own best design, at the least
favourable a of the prior. Every variance is asymptotic in T. read_switchback reads
an effect off the data a design produced, with a standard error from the data, and
restate_mde reads it off the first periods of the run, an internal pilot, and restates the
minimum detectable effect the whole run can detect. A reading's jackknife removes the 1/T bias
of the plug-in and the local projection by the half-panel jackknife. randomisation_test and
randomisation_interval infer from the design's own randomisation instead of from T
being large: the test is exact at any number of blocks, and the interval is exact given a range
for a.
What is outside the model, and comes back as a warning rather than a refusal: a second state or a
longer carryover, drift, spillover between zones, a near 1 on a short run, and fewer than 100
switches. The plug-in's reading tests for a second state, and the block difference's standard error
keeps spillover; the plan's variances assume neither. On the zone market of chc.zones, whose
incentive also acts through a stock and draws half its recruits from the neighbouring zones, the
plug-in read its effects 3% to 14% off, and the block difference spread 1.6-1.7 times as far as
planned; the internal pilot reads that spread off the run. The prior's a must lie in
(0, 1): for a < 0 the bound is unattainable at even H and the best design depends on
q.
SwitchbackAnalysis = Literal['state_aware', 'iv', 'local_projection', 'block_dim']
module-attribute
¶
How an effect is read off the switchback:
"state_aware": OLS ofy_{t+1}on(1, y_t, u_t), andtau_H = b_hat S_H(a_hat);"iv": the same regression with instruments(1, u_{t-1}, u_t), and the same plug-in;"local_projection": OLS ofy_{t+1} + ... + y_{t+H}on(1, u_t, y_t), the coefficient onu_t;"block_dim": the difference in means ofy_{t+1}over the periods each block keeps.
Alternative = Literal['two-sided', 'greater', 'less']
module-attribute
¶
Which statistics are at least as extreme as the observed one: larger in absolute value, larger, or smaller.
Horizon
dataclass
¶
tau_H, the effect of holding the lever on for H periods. H = 1 is the channel
b and H = math.inf the steady state b / (1 - a).
Raises:
| Type | Description |
|---|---|
ValueError
|
when |
PersistencePrior
dataclass
¶
What a pilot or the history says before the design: a somewhere in [a_lo, a_hi], the
state's shock sd, a guess of the channel b, and the measurement noise's variance as a share
of the shock's (0 when the state is observed exactly).
Raises:
| Type | Description |
|---|---|
ValueError
|
unless |
signal_to_noise
property
¶
q = b^2 / (4 sigma^2): what one period of the lever adds, against the shock.
TargetMDE
dataclass
¶
Choose the number of zones: the smallest at which every effect's minimum detectable effect is
at most fraction of |tau_H|, at the least favourable a.
Raises:
| Type | Description |
|---|---|
ValueError
|
unless |
MarkovDesign
dataclass
¶
Each period the lever flips with probability flip; 1/2 is i.i.d.
BlockDesign
dataclass
¶
Blocks of length periods at one setting, each drawn fair and independently; the analysis
drops the first washout periods of each block.
SwitchbackArm
dataclass
¶
A design and the share of each zone's periods it runs for.
EstimandReport
dataclass
¶
One effect's reading: which arm and analysis, and what it resolves at the least favourable
a.
se is the standard error pooled over the zones; mde is
(z_{1 - alpha/2} + z_power) se + |bias|; bias is zero for every consistent analysis and
the working model's for the steady state read by a block difference in means. loss is the
variance over the effect's own best design's in the same mode, minus 1, at its worst a: 0
when the design is aligned to it.
SwitchbackPlan
dataclass
¶
The arms to run in every zone, the reading of each effect, and what the plan cannot see.
alpha is the two-sided test's level and power the power each effect's minimum
detectable effect is for.
SwitchbackReading
dataclass
¶
An effect read off a switchback's data.
interval is the 1 - alpha confidence interval: normal about estimate with se,
except for the steady state read through the plant, where it is Fieller's for b / (1 - a).
Fieller's is (-inf, inf) when the data cannot rule out a unit root, which the delta
method's se does not show, and the reading then logs a warning, switchback_unbounded.
On x' = a x + u + eps with fair coins at a = 0.9, over 1000 runs, the jackknife's
interval was the whole line on 13.9 % of one zone's runs of 200 periods, 0.3 % of 400, and
none on 4 zones; the uncorrected reading's on 0.1 %, none and none. At a = 0.95 over 200
periods, 48.7 % and 7.8 %. The near-unit-root warning, switchback_near_unit_root, fired on
every one of those runs at a = 0.9 over 200 periods: it says that the interval is
optimistic, and switchback_unbounded which of them bound nothing.
RandomisationTest
dataclass
¶
The randomisation test of the sharp null that the lever moves no reading in any zone.
statistic is the reading's estimate / se, as read_switchback reads it, and
p_value the chance, over the design's schedules that the reading reads, of a statistic at
least as extreme against alternative. When enumerated it is read off all schedules
of the design, which are equally likely, less those the reading refuses; otherwise off
schedules drawn from it, as (1 + at least as extreme) / (1 + read). Either way it is
exact given that the data were read: under the null, P(p_value <= alpha) <= alpha, at any
number of blocks and whatever the plant's memory. A reading with neither an effect nor a noise,
a constant outcome, has statistic NaN and p_value 1.
design_switchback(estimands, prior, periods, zones=1, *, trust_state_model=True, alpha=0.05, power=0.8, min_switches=40)
¶
The switchback that reads estimands best over periods periods in each zone.
With trust_state_model the plan is a Markov design at the flip probability that minimises
the worst loss over the effects and over the prior's persistence interval, read by the
state-aware plug-in, or by IV when the state is measured with noise and a horizon is asked for.
Without it, only model-free readings are planned (see the module docstring). zones is the
number of zones, or a TargetMDE to choose it. min_switches floors how rarely the
lever may flip, since never switching is what the steady state asks for.
Raises:
| Type | Description |
|---|---|
ValueError
|
on no effects or a repeated one, fewer than |
read_switchback(lever, outcome, estimand, analysis, *, blocks=None, alpha=0.05, se='model', baseline='first', baseline_lag=None, jackknife=False)
¶
Read estimand off a switchback's data by analysis.
lever[z, t] is zone z's lever in period t, 0 or 1, and outcome[z, t] its
reading at the start of period t: outcome has one more period than lever, and
outcome[z, t + 1] is the first reading after lever[z, t]. One zone may be passed as 1-D
arrays. The regressions pool the zones as independent replications, each with an intercept.
"state_aware"and"iv"fitaandband readb S_H(a), by the delta method on a covariance robust to heteroskedasticity; IV's keeps the lag-one autocovariance of the MA(1) error a state measured with noise has. The plug-in also tests the first-order state it rests on, by whethery_(t-1)andu_(t-1)add to its regression, and warns when the data reject it at 1%; not for the channel at an i.i.d. lever, which it reads right on any linear time-invariant plant. A lever that alternates every period hides a stock it drives from the test, since the stock then alternates with it."local_projection"needs an i.i.d. lever, and its covariance keeps theH - 1lags of the overlapping sums."block_dim"needsblocks, the design's. Each block's kept periods are centred on the midpoint of the on and off blocks before it, so the difference in means is unbiased at any number of blocks; the blocks before both settings have been seen only centre. It readstau_HonBlockDesign(H, H - 1), and the steady state on any block, with the working-model biasdesign_switchbackquotes. Each zone's difference is its own and the zones are weighted alike, and the standard error sums the zones' scores block by block, so it keeps what a spillover or a shock common to the zones puts between them.
se is what the standard error is over. "model" reads it off the regression's errors as
above, and is asymptotic in T: the regression fits its intercept and y_t on the same
periods, which biases the local projection by -(H - 1) tau_H / (T - H + 1) to first order
on one zone on the working model, less on more zones, and reads its variance low on a short
run. Neither has an exact correction, though jackknife below removes it to first order: on
more zones the bias depends on a (validation/local_projection_bias.mac). On
x' = 0.8 x + 2 u + eps with i.i.d. eps
its 95 % interval for tau_3 on one zone covered 0.880 over 60 periods, 0.901 over 100,
0.929 over 200, 0.940 over 400 and 0.947 over 1000, and as much with eps AR(0.5); on 64
zones, where the bias weighs more against the pooled standard error, 0.926 over 300 periods
and 0.944 over 600. The local projection therefore logs a warning, switchback_short_run, on
a run of fewer than 400 periods a zone, or where the bias's first-order bound
(H - 1) |estimate| / (T - H + 1) passes 0.3 standard errors: read "design" or
randomisation_test there. A block difference over few blocks is short too: 0.885 over
8 blocks, 0.94 from 20. "design"
reads it over the lever's own randomisation, with the plant and its noise held fixed (Liang
and Recht, Biometrika 2025), for a local projection on a lever drawn by a fair coin each
period. The estimate is then the local projection with the design's moments in
place of the sample's, no intercept and no y_t: tau_H = sum_(s<H) g_s, with
g_s = 2 / (T - s) sum_t (2 u_t - 1) (y_(t+1+s) - y_0), each zone read from its first
reading, which precedes the lever, and the zones averaged. Over the coins it is unbiased for
tau_H on any linear time-invariant plant, whatever its noise does in time, as long as the
noise does not depend on the coins and no zone's lever moves another's outcome. Its variance
over the coins holds no product of the noise at two periods for the channel, and none more than
H - 1 apart for tau_H: the noise's autocorrelation does not enter it. The standard error
is their plug-in of that variance, over 3 log T lags of the impulse response, and is
asymptotic in T. It is wider than the model's where the model's holds, since it uses
neither the regression's intercept nor y_t.
baseline is what the design's reading subtracts. "first", the default, is each zone's
first reading, as above. "moving" reads each reading against the one L periods back,
L = baseline_lag, H unless given, and the first L against the first reading:
g_s = 2 / (T - s) sum_t (2 u_t - 1) (y_(t+1+s) - y_max(t+1+s-L, 0)). That passes the
readings through 1 - S^L, a lower-triangular Toeplitz filter, so they are Liang and Recht's
model again, with the response g - S^L g and the noise filtered alike: the estimate is
unbiased for tau_H at any L >= H, since the reading L back holds none of the coins
the lags below H read, and its variance over the coins is their eq. (2.5) of the filtered
response and noise (validation/switchback_moving_baseline.mac). Its plug-in reads L
lags more, where the response's echo -g_(s-L) lies. It trades each reading's distance from
the first for its distance from L periods back. At the channel, T^2 times the variance
loses 8 ((T - L) gam_L - sum_(k=L+1..T) gam_k) of the noise's share, gam the noise's
autocovariance, 8 gam_L a period of a long run, and on the working model
b^2 ((2 a^L - 1) / (1 - a^2) + 1 / (1 - a)^2) >= 0 a period of the lever's, whose mean
effect the first reading keeps in every period. So it narrows the reading where the outcome
persists, spreads as far as the first reading's on white noise at the channel, and widens it
where the noise's autocovariance at L is negative; past the channel the first reading's own
noise enters each lag a period sums, and white noise favours the moving baseline. On
x' = 0.8 x + 2 u + eps with i.i.d. eps, tau_3's estimate over 60 periods spread 0.55
times as far as from the first reading, its interval covered 0.946, and its standard error was
1.10 times its spread: each lag the plug-in adds is read with an error. On x' = 2 u + eps
with eps an AR(-0.5), the derivation has the channel's spread 1.165 times as far. A longer
L pays where the noise's autocovariance peaks at it, a weekly cycle in daily readings.
jackknife=True reads the plug-in ("state_aware") or the local projection by the
half-panel jackknife (Dhaene and Jochmans, Review of Economic Studies 2015),
2 tau_T - (tau_1 + tau_2) / 2: each half of the run is read on its own periods, with its
own intercepts and fit, and an odd run's halves share the middle period. It removes the 1/T
bias both readings carry, the local projection's and the one a_hat passes to the plug-in,
leaving O(1/T^2) (validation/half_panel_jackknife.mac); Dhaene and Juodis (arXiv
2610.26427) show it stays effective for persistent local projections.
Its standard error is its own, from each row's influence on the three fits, twice the run's
less half each half's, summed within a zone over the lags the reading keeps, so it is read on
one zone as on many. Every interval but the steady state's is normal. On x' = a x + u + eps
with fair coins, tau_5 at a = 0.9 over 200 periods went from a bias of -0.120 to -0.002
(covered 0.931 to 0.943); tau_3's local projection at a = 0.8 over 60, 100 and 200
periods, -0.082, -0.060 and -0.040 to +0.031, +0.005 and -0.011 (0.895, 0.912 and 0.932 to
0.935, 0.945 and 0.949). Their standard error was 0.94 to 1.06 of their spread. The correction
costs spread, 3 % to 19 % where there is a bias to remove, and 0.6 % on the channel at an
i.i.d. lever, which has none.
The steady state is read at the jackknifed parameters, b_J / (1 - a_J) with (a_J, b_J) =
2 (a, b)_T - ((a, b)_1 + (a, b)_2) / 2, its standard error the delta method's there, and its
interval Fieller's there, which holds the estimate, since Fieller's statistic is zero at it;
where a_J >= 1 there is no steady state to read, and the reading is refused.
b / (1 - a) has no mean, since a_hat has a density at 1, so its bias is read as a
median. Jackknifing (a, b) leaves the ratio's curvature, b var(a) / (1 - a)^3 + cov(a,
b) / (1 - a)^2, of order 1/T and above the truth. Over 2000 runs a cell and four seeds, at
a = 0.9 over 200 periods the uncorrected steady state's median read -0.96 to -1.17 of its
10 on one zone and -0.74 to -0.78 on 16 zones, and the jackknife's +0.07 to +0.43 and +0.05
to +0.09; their intervals covered 0.958 to 0.964 and 0.924 to 0.940 of 0.95, against 0.922 to
0.932 and 0.816 to 0.838 for the uncorrected reading's Fieller interval, since a_hat's
bias does not shrink with zones. Over 400 periods the median went from -0.51 to -0.56 to
+0.16 to +0.24 (covered 0.940 to 0.946), and at a = 0.5 over 40 from -0.14 to -0.18 to
+0.01 to +0.03 (0.944 to 0.956). The jackknife refused 10 to 14 runs of 2000 at a = 0.9
over 200 periods on one zone, none on 16, and 109 to 147 at a = 0.95. Its standard error
is first order: the law is skewed, and its median was 0.88 to 0.91 of the interquartile range
over 1.349 on one zone and 0.91 to 0.97 on 16 at a = 0.9, 0.82 to 0.85 at a = 0.95;
Fieller's interval carries the level. On a short run near the unit root each half reads
a_hat closer still to it: at a = 0.95 over 200 periods the jackknife's interquartile
range was 1.9 to 2.0 times the uncorrected reading's. Its near-unit-root warning reads the
jackknifed a_J and its own standard error, and warns at or past 1 as the uncorrected one
does: on a random walk over 200 periods read at Horizon(10) both warned on all 400 runs,
among them the 156 whose a_hat was at or past 1.
Raises:
| Type | Description |
|---|---|
ValueError
|
when the shapes disagree, the lever is not 0 or 1 or never switches, the
outcome is not finite, |
restate_mde(plan, estimand, lever, outcome)
¶
estimand's report, with its standard error and minimum detectable effect re-read from
the first periods of its arm: an internal pilot.
The plan's variances are the working model's. On a plant with a second state or spillover the
model-free readings stay where they were, but those of a horizon or the steady state spread
further than planned: 1.04 to 1.73 times on chc.zones' market. lever and
outcome are the arm's first periods in every zone, as read_switchback takes them.
They are read by the plan's own analysis, and the standard error is carried to the arm's whole
length:
- a regression's by its rows,
sqrt((n_pilot - L) / (n_run - L)), withLthe lags its covariance keeps, which are also the rows it sheds; - the block difference's by its variance over the run's blocks against its variance over the pilot's. The blocks before a zone has shown both settings are lost, and the next are centred on few blocks before them: rescaled by its periods, a pilot of ten blocks read 1.2 times the run's standard error on the working model.
The restated MDE is c se + |bias|, with bias the plan's and c the power
quantile of the noncentral t with nu degrees of freedom and noncentrality
z_(1 - alpha/2). The run's power at that MDE, averaged over what the pilot could have read,
is then the plan's when the pilot's variance is chi-square on nu. For a regression
nu = n / (2 L + 1), with n its rows over every zone; for the block difference, whose
standard error squares one sum over the zones a block, it is Satterthwaite's over the blocks.
With c = z_(1 - alpha/2) + z_power the power at the restated MDE was 0.71 of 0.80 at a pilot
of ten blocks.
On chc.zones' market, over 4000 runs under each matching, the run's power at the
restated MDE about the reading's own mean, which leaves the reading's bias out, was 0.81 for
the channel from a tenth of its arm, 0.78 to 0.79 for tau_5 and 0.80 to 0.81 for tau_2,
and 0.75, 0.79 and 0.80 for the steady state from ten, fifteen and twenty of its forty blocks.
The steady state's shortfall at ten is the spillover between zones: it puts a covariance
between two zones' scores for the same block that the centring does not inflate, and the
block factor treats it as if it did, so a short pilot reads the standard error low.
The test at the end is unchanged, and so is its level: the MDE is restated, the run is not
resized. The report's loss is the plan's, since the design is.
Raises:
| Type | Description |
|---|---|
ValueError
|
when the plan does not read |
randomisation_test(lever, outcome, estimand, analysis, design, *, alternative='two-sided', alpha=0.05, draws=9999, seed=0)
¶
Test the sharp null that the lever moves no reading, in any zone and at any lag, by
drawing the design's schedule again: Fisher's randomisation test, with the reading's
estimate / se as the statistic.
Under the null the outcome does not depend on the schedule, so the observed statistic is one
draw from its distribution over the design's schedules, and the p-value is exact at any number
of blocks, whatever the plant's memory or the zones' spillover: there is no effect to carry or
to spill. The schedules the reading refuses, such as a block schedule with fewer than two
blocks after both settings, are left out of that distribution, since the observed one is a
schedule the reading read; counting them as never extreme instead would reject up to alpha
over the share read, 0.107 at 10% on six blocks. The statistic is studentised, which also keeps
the test's level, in large samples, under the weaker null of an effect that averages zero (Wu
and Ding 2021).
lever and outcome are as read_switchback takes them, and design is the one
that drew the lever: every zone's schedule independently, a Markov design's from a fair first
period and a block design's one fair coin a block. A block design with at most 2^14 schedules
over the zones is enumerated; otherwise draws schedules are drawn with seed.
On the working model with a = 0.8 and no effect (scripts/bench_switchback_randomisation.py
size, 1000 runs each, less those the reading refused), it rejected at 5% 3.6%, 5.2% and 4.6%
of the block differences of tau_5 over 6, 8 and 12 blocks, where the Wald interval
excluded 0 in 17.2%, 11.9% and 7.2%; 5.8% and 5.4% of the plug-in's tau_3 over 30 and 60
periods of MarkovDesign(0.3), against Wald's 8.7% and 6.1%; and 4.4% of the steady state's
over 60 periods at a = 0.9, against Fieller's 5.3%. Against pyfixest 0.60.0's ritest,
on 200 logs of an i.i.d. lever over 80 periods, the channel's statistic agreed with its HC1 t
to 1e-13. Its p-values, from 999 permutations of the lever where this redraws 4999 schedules,
differed by 0.008 on average and 0.054 at most, which the permutations' own noise allows.
Raises:
| Type | Description |
|---|---|
ValueError
|
when |
randomisation_interval(lever, outcome, estimand, analysis, design, persistence, *, alpha=0.05, draws=999, seed=0)
¶
estimand's 1 - alpha confidence interval, by inverting randomisation_test
under the working model's joint null.
A null that names tau_H alone is not sharp on a plant with memory: the schedule moves each
reading through the whole path of the lever, b sum_{s >= 1} a^(s - 1) u_(t - s), and two
memories with the same tau_H impute different readings. The joint null (a, b) is sharp:
it imputes the readings with the lever off, y - b sum a^(s - 1) u_(t - s), which the
schedule cannot move, and the test of no effect on them is exact
(validation/switchback_randomisation.mac). So the set of every tau_H = b S_H(a) that
some a in persistence leaves unrejected at alpha covers tau_H with probability
at least 1 - alpha whenever the plant is first-order with its a in that range: at any
number of blocks, where the Wald and Fieller intervals are asymptotic. The statistic is read
off the imputed readings rather than compared with the effect, so a reading that is biased for
its effect, as the block difference is for the steady state, keeps that. The range is the
price: it is an assumption, and a long memory read over few blocks is unbounded.
On the working model (scripts/bench_switchback_randomisation.py, 400 runs a case, 1000 for
the long memory; a run whose every effect the test rejected counts as a miss):
- the block difference of
tau_5ata = 0.8over 8, 12 and 20 blocks. Wald covered 0.886, 0.932 and 0.932. Over(0.6, 0.9)this covered 0.995, 0.980 and 0.973, unbounded in 81%, 10% and none of the runs; at the true memory alone 0.969, 0.935 and 0.948, unbounded in 37% of the runs over 8 blocks. At the truth the test rejected 4.0% and 4.9% of 4000 runs over 8 and 12 blocks. - the plug-in's
tau_3over 40 periods ofMarkovDesign(0.3): Wald 0.925, the range 0.990, the true memory 0.953, at 1.35 and 1.14 times Wald's median width. - the plug-in's steady state at
a = 0.9over 60 and 120 periods: Fieller 0.890 and 0.918, unbounded in 23% and 2% of the runs. Over(0.8, 0.95)this covered 1.000 both times at 1.41 and 1.57 times Fieller's median width, and at the true memory 0.950 and 0.940 at half of it. tau_2ata = 0.95over 12 and 24 blocks of 2: Wald 0.919 and 0.934, the true memory 0.987 and 0.983, but unbounded in 93% and 83% of the runs.
A null without the memory, persistence = (0, 0), is not sharp under carryover. For the
block difference it still covered 0.950 to 0.966 in every case above, and never unbounded; for
the plug-in it covered 0.53 of tau_3 and none of the steady states, at a sixth of the true
memory's median width.
Every null is tested on the same draws schedules, or on all of a block design's when it has
at most 2^14, at 21 memories spread evenly across persistence; a memory between two of
them is covered by continuity, not exactly. The interval is the hull of the accepted effects,
gaps filled: each end is searched from outside in over 128 effects a side, spread evenly in
the angle of (tau_H - estimate) / se out to 1024 standard errors, and the first accepted
one is bisected against its rejected neighbour to a thousandth of a standard error, the end
reported on its rejected side. An accepted part narrower than one step of that angle, 0.0123
radians or 0.0123 standard errors at the estimate, can still be missed. An end whose outermost
effect is accepted is infinite. Over all 128 schedules of seven blocks of three at
a = 0.6, read with noise, for 300 draws of the shocks, the interval at the true memory
missed 2.1% of 35974 readings, each one where the exact test rejected the truth (4.9%).
Raises:
| Type | Description |
|---|---|
ValueError
|
when |