How a problem of matching distributions yields the most powerful statistical test.
Rami V. Tabri | Monash University
Companion to my November 2026 preprint, A Partial-Matching Proof of the Neyman–Pearson Lemma.
Suppose that an observation is generated by one of two known probability distributions, P₀ and P₁. The Neyman–Pearson lemma describes how to distinguish them with the greatest possible power at a prescribed significance level.
In my paper, I revisit this classical result by posing a seemingly opposite problem: how much of the alternative distribution can be matched to a scaled version of the null distribution? Removing the common mass reveals where the two measures differ. A dual formulation of the matching problem then identifies the optimal testing decisions.
The aim is not to establish a new optimality theorem, but to understand the geometry of the existing one. The demonstrations below show how the likelihood-ratio rule, threshold randomization and the trade-off between testing errors arise from a single matching problem.
FROM PARTIAL TRANSPORT TO HYPOTHESIS TESTING
1. Match as much mass as possible at identical outcomes.
Let P₀ and P₁ have densities p₀ and p₁ relative to a common dominating measure ρ. For λ ≥ 0, consider nonnegative partial transport plans π whose first marginal is bounded by P₁ and whose second marginal is bounded by λP₀. The matching objective rewards mass placed on the diagonal Δ = {(x,x): x ∈ X}.
M(λ) = sup{π(Δ): π₁ ≤ P₁, π₂ ≤ λP₀} = ∫ min(p₁, λp₀) dρ.
The maximum diagonal mass is the total mass of the greatest common submeasure P₁ ∧ λP₀. Its removal leaves two mutually singular residual measures:
dR₁,λ = (p₁ − λp₀)₊ dρ, dR₀,λ = (λp₀ − p₁)₊ dρ.
2. Interpret the matching dual as a test.
The normalized dual potential φ takes values in [0,1] and has a natural interpretation: φ(x) is the conditional probability of rejecting the null upon observing x. The duality identity is
M(λ) = inf{λ P₀φ + 1 − P₁φ : 0 ≤ φ ≤ 1}.
Here Pᵢφ denotes ∫φ dPᵢ. Thus the maximal matching mass is also the smallest weighted sum of type-I and type-II errors. The difference between any test's weighted error and this optimum is
λP₀φ + 1 − P₁φ − M(λ) = ∫(1 − φ) dR₁,λ + ∫φ dR₀,λ.
Each term is nonnegative. Complementary slackness says that both must vanish for an optimal dual test. Rejection is therefore required on the alternative residual, non-rejection on the scaled-null residual, and randomization is permitted at threshold ties (up to null sets).
3. Recover the Neyman–Pearson lemma.
For a prescribed level 0 < α < 1, choose λ and, if needed, a threshold rejection probability η so that P₀φ = α. The resulting test maximizes power over all tests with P₀φ ≤ α. In particular, the full optimal power function is determined by the matching profile:
β(α) = inf{λα + 1 − M(λ): λ ≥ 0}, 0 ≤ α ≤ 1.
In the risk diagram, M(λ) is the vertical intercept of the supporting line with slope −λ. In the power diagram, 1 − M(λ) is the intercept of the supporting line with slope λ. These are two views of the same duality.
For the full arguments, see Proposition 1, Lemma 1 and Theorem 1 in the preprint.
WHAT ELSE DOES THE MATCHING PERSPECTIVE REVEAL?
Maximal coupling and distinguishability
At λ = 1, M(1) is the greatest probability of agreement under a coupling of P₀ and P₁. Its complement is the total variation distance, defined as sup over events A of |P₁(A) − P₀(A)|. For general λ, the unmatched alternative mass 1 − M(λ) is the positive-part (hockey-stick) divergence.
Data processing
If an observation is coarsened or passed through a common Markov kernel K, the image of the original common submeasure remains feasible for matching the processed measures. Consequently M_K(λ) ≥ M(λ) for every λ. The processed experiment cannot have a higher optimal power envelope. In geometric terms, processing may make previously unmatched mass matchable.
Research context
This note is part of my research on connections between optimal transport and the foundations of statistical decision theory. I am interested in how matching problems and their duals help explain statistical optimality and the consequences of information loss.
RESEARCH PAPER
Tabri, R. V. (2026). A Partial-Matching Proof of the Neyman–Pearson Lemma. arXiv:2611.07368 [math.ST].
https://arxiv.org/abs/2611.07368
https://arxiv.org/pdf/2611.07368
The three-point demonstration reproduces the example in Section 4 of the paper. The Gaussian example is an additional illustration prepared for this webpage.