Algorithm Search⌘K

Definitionresearch

E-variable

Also called betting score.

A nonnegative statistic with expected value at most one under the null. By Markov's inequality, rejecting when it exceeds 1 / alpha gives a level-alpha test that survives optional continuation.

An e-variable is a nonnegative statistic EE whose expected value is at most 1 under every distribution of the null hypothesis. A large observed value, an e-value, is evidence against the null: by Markov's inequality, E≥1/αE \ge 1/\alpha happens with probability at most α\alpha under the null, so rejecting at that threshold is a level-α\alpha test. An e-value is the factor by which a bettor who bets against the null multiplies the money at stake, which is why Shafer calls it a betting score. Unlike p-values, e-values from successive studies can be multiplied, and the product is again an e-value, so a researcher can decide to collect more data after seeing the current evidence without losing the error guarantee.

Definition

Let P0\mathcal P_0 be a set of distributions, the null hypothesis, for data XX on a sample space X\mathcal X.

Definition. An e-variable for P0\mathcal P_0 is a statistic E=e(X)E = e(X) with values in [0,∞][0, \infty] such that

EP[E]≤1for every P∈P0.E_P[E] \le 1 \quad \text{for every } P \in \mathcal P_0.

The observed value e(x)e(x) is an e-value.

The test. For 0<α≤10 < \alpha \le 1, reject P0\mathcal P_0 when E≥1/αE \ge 1/\alpha. For every P∈P0P \in \mathcal P_0, Markov's inequality gives

P(E≥1/α)≤α EP[E]≤α.P(E \ge 1/\alpha) \le \alpha\,E_P[E] \le \alpha.

So the test has level α\alpha. The bound holds for every α\alpha at once and needs no assumption on the distribution of EE beyond its mean.

Optional continuation. Let E1E_1 be an e-variable for the first data set, and let E2E_2 be computed from a second data set that is collected only if the first result looks promising. If, given the first data, E2E_2 has conditional expectation at most 1 under every null distribution, then

EP[E1E2]=EP[E1 EP[E2∣X1]]≤EP[E1]≤1,E_P[E_1 E_2] = E_P\left[E_1\,E_P[E_2 \mid X_1]\right] \le E_P[E_1] \le 1,

so E1E2E_1 E_2 is an e-variable, whatever rule decided to continue. When E2E_2 is not computed, set it to 1. Repeated over many steps, the running products form a nonnegative supermartingale, a test martingale under a simple null, and Ville's inequality then gives the anytime bound P(sup⁡tE1⋯Et≥1/α)≤αP(\sup_t E_1 \cdots E_t \ge 1/\alpha) \le \alpha. A process whose value at every stopping time is an e-variable is an e-process. Every test martingale is an e-process, but not every e-process is a test martingale, so the two words are not synonyms.

Words. Vovk and Wang (2021) use "e-variable" for the random variable and "e-value" for its observed value. Grünwald, de Heide and Koolen first called them S-values. Shafer (2021) uses "betting score" for the observed value.

Examples and non-examples

A likelihood ratio (simple null). Let P0={P0}\mathcal P_0 = \{P_0\} with density p0p_0, and let qq be any density, fixed before the data are seen. Then E=q(X)/p0(X)E = q(X)/p_0(X), with E=∞E = \infty where p0=0<qp_0 = 0 < q, is an e-variable, because

EP0[E]=∫{p0>0}qp0 p0 dν=∫{p0>0}q dν≤1.E_{P_0}[E] = \int_{\{p_0 > 0\}} \frac{q}{p_0}\,p_0\,d\nu = \int_{\{p_0 > 0\}} q\,d\nu \le 1.

This is the ratio of the Neyman-Pearson lemma. A Bayes factor of a simple null against a composite alternative with a prior is of this kind, with qq the marginal density of the alternative.

The Markov bound on a discrete example. Let KK be binomial with 10 trials, test p=1/2p = 1/2, and take qq binomial with p=0.8p = 0.8. Then

E=0.8K 0.210−K0.510=1.6K 0.410−K,E = \frac{0.8^K\,0.2^{10 - K}}{0.5^{10}} = 1.6^K\,0.4^{10 - K},

and in exact arithmetic E0[E]=∑k=010(10k)2−10 1.6k 0.410−k=(0.8+0.2)10=1E_0[E] = \sum_{k=0}^{10} \binom{10}{k} 2^{-10}\,1.6^k\,0.4^{10-k} = (0.8 + 0.2)^{10} = 1. The values of EE for K=8,9,10K = 8, 9, 10 are 6.876.87, 27.4927.49 and 109.95109.95. So E≥20E \ge 20 exactly when K≥9K \ge 9, which has null probability 11/1024≈0.0107≤0.0511/1024 \approx 0.0107 \le 0.05, and E≥100E \ge 100 exactly when K=10K = 10, with probability 1/1024≈0.00098≤0.011/1024 \approx 0.00098 \le 0.01. The bound holds with room to spare, because Markov's inequality is loose for most distributions. It is attained only by an e-variable that takes the values 0 and 1/α1/\alpha, with null probabilities 1−α1 - \alpha and α\alpha.

Products and averages. The product of independent e-variables is an e-variable, and so is the product of sequential ones, as above. Any weighted average ∑jwjEj\sum_j w_j E_j with wj≥0w_j \ge 0 and ∑jwj=1\sum_j w_j = 1 is an e-variable under any dependence, because expectation is linear. For p-values, no such simple rule exists: Fisher's method needs independence, and averages of p-values must be multiplied by a constant to stay valid.

Calibrators from p-values. Let PP be a p-value, so P0(P≤u)≤uP_0(P \le u) \le u for all uu. For 0<κ<10 < \kappa < 1, the function f(p)=κpκ−1f(p) = \kappa p^{\kappa - 1} is decreasing with ∫01f=1\int_0^1 f = 1, so f(P)f(P) is an e-variable. At p=0.01p = 0.01 and κ=1/2\kappa = 1/2 it gives e=5e = 5. No member of this family gives more than −1/(e pln⁡p)-1/(e\,p\ln p) at pp, with ee here Euler's number, which is 7.997.99 at p=0.01p = 0.01 and 2.462.46 at p=0.05p = 0.05. Conversely, min⁡(1,1/E)\min(1, 1/E) is a p-value, by Markov's inequality. So an e-value of 20 corresponds to a p-value of at most 0.050.05, but through a calibrator of this family a p-value of 0.050.05 corresponds to an e-value of at most about 2.52.5. Other calibrators can give more at one point: 20⋅1{p≤0.05}20 \cdot \mathbf 1\{p \le 0.05\} gives 2020 at p=0.05p = 0.05, and 00 for every p>0.05p > 0.05.

The split likelihood ratio (composite null). Split the data into D0D_0 and D1D_1. Fit any estimate θ^1\hat\theta_1 on D1D_1, and let θ^0\hat\theta_0 maximize the likelihood over the null set Θ0\Theta_0 on D0D_0. Then

E=L(θ^1;D0)L(θ^0;D0)E = \frac{L(\hat\theta_1; D_0)}{L(\hat\theta_0; D_0)}

is an e-variable for Θ0\Theta_0. For any θ∈Θ0\theta \in \Theta_0, L(θ^0;D0)≥L(θ;D0)L(\hat\theta_0; D_0) \ge L(\theta; D_0), so E≤L(θ^1;D0)/L(θ;D0)E \le L(\hat\theta_1; D_0)/L(\theta; D_0), and given D1D_1 the right side is a likelihood ratio with a fixed numerator, whose expectation under θ\theta is at most 1. This is the universal inference of Wasserman, Ramdas and Balakrishnan (2020). It needs no regularity conditions, unlike Wilks' theorem.

Non-example: the reciprocal of a p-value. If PP is uniform on (0,1)(0, 1), then E0[1/P]=∫01u−1 du=∞E_0[1/P] = \int_0^1 u^{-1}\,du = \infty. So 1/P1/P is not an e-variable, even though P0(1/P≥1/α)=αP_0(1/P \ge 1/\alpha) = \alpha.

Non-example: the maximized likelihood ratio. Let X∼N(μ,1)X \sim N(\mu, 1) and test μ=0\mu = 0. The ratio sup⁡μL(μ;X)/L(0;X)=eX2/2\sup_\mu L(\mu; X)/L(0; X) = e^{X^2/2} has null expectation ∫φ(x) ex2/2 dx=∞\int \varphi(x)\,e^{x^2/2}\,dx = \infty. The alternative was fitted to the same data, which breaks the computation of the first example. The likelihood ratio test calibrates this statistic by its chi-squared limit, not by Markov's inequality.

Non-example: the E-value of sensitivity analysis. VanderWeele and Ding (2017) define an "E-value" for observational studies: the smallest strength of association, on the risk ratio scale, that an unmeasured confounder must have with both treatment and outcome to explain away an observed risk ratio RR>1RR > 1. It equals RR+RR(RR−1)RR + \sqrt{RR(RR - 1)}. It is a measure of robustness to confounding, not a statistic with expectation at most 1, and it has nothing to do with this page except the name.

  • p-value. A p-value PP satisfies P0(P≤u)≤uP_0(P \le u) \le u for each uu, a condition on the whole distribution. An e-variable satisfies one condition on the mean. A p-value test is valid for one fixed α\alpha and one fixed sample size. An e-value keeps its meaning when data are added.
  • Test martingale and e-process. A test martingale is a nonnegative martingale with initial value 1 under the null. Its value at any stopping time is an e-variable. An e-process is a process whose value at any stopping time is an e-variable. For composite nulls, e-processes exist in cases where no nontrivial test martingale does.
  • Ville's inequality. Ville's inequality is the time-uniform form of the Markov bound for nonnegative supermartingales. It gives anytime-valid tests and confidence sequences.
  • Growth-rate optimality. Among e-variables for P0\mathcal P_0, a growth-rate optimal one maximizes EQ[log⁡E]E_Q[\log E] under an alternative QQ, the Kelly criterion of betting. For a simple null P0P_0 and a simple alternative QQ, the optimum is the likelihood ratio q/p0q/p_0, and the optimal growth rate is the Kullback-Leibler divergence D(Q∥P0)D(Q \Vert P_0).
  • Likelihood ratios and Bayes factors. Every likelihood ratio of a simple null with a fixed alternative, and every Bayes factor of a simple null, is an e-variable. For composite nulls, a Bayes factor is not an e-variable in general, because its null expectation can exceed 1 at some null distributions.
  • Multiple testing. The e-BH procedure applies the Benjamini-Hochberg procedure to the p-values 1/Ej1/E_j and controls the false discovery rate under arbitrary dependence of the e-values.

References

  1. Vladimir Vovk and Ruodu Wang, E-values, calibration, combination and applications, Annals of Statistics 49(3) (2021), pages 1736 to 1754, the definition of e-variables and e-values, calibrators between p-values and e-values, and the merging of e-values by products and averages
  2. Glenn Shafer, Testing by betting, a strategy for statistical and scientific communication, Journal of the Royal Statistical Society, Series A 184(2) (2021), pages 407 to 431, the betting score as the factor by which a bet multiplies the money it risks
  3. Peter Grünwald, Rianne de Heide and Wouter Koolen, Safe testing, Journal of the Royal Statistical Society, Series B 86(5) (2024), pages 1091 to 1128, e-variables for composite nulls, optional continuation and growth-rate optimality
  4. Aaditya Ramdas, Peter Grünwald, Vladimir Vovk and Glenn Shafer, Game-theoretic statistics and safe anytime-valid inference, Statistical Science 38(4) (2023), pages 576 to 601, e-variables, e-processes and test martingales, and their relation to p-values
  5. Larry Wasserman, Aaditya Ramdas and Sivaraman Balakrishnan, Universal inference, Proceedings of the National Academy of Sciences 117(29) (2020), pages 16880 to 16890, the split likelihood ratio statistic and its validity for any composite null
  6. Tyler J. VanderWeele and Peng Ding, Sensitivity analysis in observational research, introducing the E-value, Annals of Internal Medicine 167(4) (2017), pages 268 to 274, the E-value of sensitivity analysis, a different concept with the same name

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/68FBV9/text.yaml