Quant Memo
Core

Proportion Tests and Binomial Inference

Is a win rate of 54% actually better than a coin flip, or does it just look that way from too few trades? Proportion tests answer that by treating a hit-or-miss outcome as a binomial process and asking how far the observed rate could wander from 50% by chance alone.

Prerequisites: The Central Limit Theorem, One-Sample and Two-Sample t-Tests

A strategy wins 54 out of 100 trades. Is that a real edge, or exactly the kind of wobble you'd expect from flipping a fair coin 100 times? A fair coin flipped 100 times does not land on exactly 50 heads every time — it lands anywhere in a range around 50 purely from randomness, and 54 is well within that range. A proportion test is the tool that turns "does 54% feel like an edge" into a precise number: how surprising is 54 wins out of 100, if the true win rate were actually 50%?

An analogy: is this coin actually fair?

Suspect a coin might be weighted, and you flip it 100 times, getting 58 heads. A perfectly fair coin would not always give exactly 50 heads — sometimes 47, sometimes 53, purely by chance — so the question isn't "is 58 exactly 50?" (it obviously isn't) but "is 58 far enough from 50 that pure chance is an unconvincing explanation?" A proportion test answers exactly this: it computes how much a fair coin's result naturally wobbles around 50, and checks whether your observed count sits comfortably inside that natural wobble or clearly outside it.

The formula, one symbol at a time

Let p^\hat{p} be the observed proportion of successes (wins, hits) out of nn trials, and let p0p_0 be the hypothesized true proportion under the null (often 0.50.5, or a strategy's historical baseline). By the The Central Limit Theorem, for large enough nn, the sampling distribution of p^\hat p is approximately normal, with standard error p0(1p0)/n\sqrt{p_0(1-p_0)/n}. The test statistic is:

z=p^p0p0(1p0)/nz = \frac{\hat{p} - p_0}{\sqrt{p_0(1-p_0)/n}}

In plain English: take the gap between what you observed and what pure chance would predict, and divide by how much that gap naturally wobbles from sample to sample. The result, zz, tells you how many "typical wobbles" away from the null your observation sits. A zz beyond roughly ±1.96\pm 1.96 corresponds to a two-sided pp-value below 0.050.05 — the conventional threshold for calling the gap surprising enough to doubt the null.

Distribution · binomial
mean 20.00510152025303540outcomes (k) →
mean 20.00std dev 3.16peak at k = 20

The distribution above shows exactly the natural spread of outcomes a fair (p=0.5p=0.5) process produces over 100 trials — most of its mass sits near 50, but 54 or even 58 successes are visibly still well within the bulk of ordinary outcomes, not out in the sparse tails.

Worked example 1: a 54-out-of-100 win rate

p^=54/100=0.54\hat{p} = 54/100 = 0.54, testing against p0=0.5p_0 = 0.5, n=100n=100.

z=0.540.500.5(0.5)/100=0.040.0025=0.040.05=0.80z = \frac{0.54 - 0.50}{\sqrt{0.5(0.5)/100}} = \frac{0.04}{\sqrt{0.0025}} = \frac{0.04}{0.05} = 0.80

A zz-score of 0.800.80 is well within the ordinary range of outcomes a fair coin would produce — the two-sided pp-value is about 0.420.42, nowhere near the conventional 0.050.05 threshold. A 54% win rate over 100 trades is, statistically, indistinguishable from noise around a 50% baseline.

sample size n 54% upper band, small n lower band, small n
The standard-error band around the 50% baseline narrows as sample size grows. A fixed 54% win rate sits inside the wide band at small n (noise) but eventually falls outside the narrowing band as n grows (signal).

Worked example 2: the same win rate, ten times the trades

Now suppose the same 54% win rate holds up over n=1,000n = 1{,}000 trades: p^=540/1000=0.54\hat{p} = 540/1000 = 0.54.

z=0.540.500.5(0.5)/1000=0.040.00025=0.040.0158=2.53z = \frac{0.54-0.50}{\sqrt{0.5(0.5)/1000}} = \frac{0.04}{\sqrt{0.00025}} = \frac{0.04}{0.0158} = 2.53

A zz of 2.532.53 corresponds to a two-sided pp-value of about 0.0110.011 — now comfortably below 0.050.05. The identical 54% win rate flips from "unremarkable noise" to "statistically significant" purely because it held up over ten times more trades — the standard error shrank with n\sqrt{n}, and the same signal now stands out clearly above it.

A proportion test measures how far an observed hit rate sits from a hypothesized baseline, in units of the sampling noise the The Central Limit Theorem predicts for that baseline. The same raw win rate can be statistical noise at one sample size and a clear signal at another — the win rate alone never tells you which; the sample size behind it does.

What this means in practice

Any binary, win/loss trading metric — hit rate on a directional call, fill rate on a passive order, click-through rate on a trading UI experiment — is naturally analyzed with a proportion test. It is also the standard tool for checking a strategy's realized win rate against a theoretically implied one (for example, checking whether an options strategy's assignment frequency matches its priced-in probability of exercise). The core lesson from the two worked examples generalizes: a headline win rate is meaningless without its sample size attached, because the same percentage can be either noise or signal depending entirely on how many trials produced it.

The normal approximation behind this test formula degrades badly when nn is small or p0p_0 is close to 0 or 1 — a common rule of thumb requires np0(1p0)10np_0(1-p_0) \ge 10 or so before trusting it, otherwise the true binomial distribution is too lopsided for the bell-curve shortcut to be accurate. It's equally easy to forget that proportion tests, like all hypothesis tests, only assess whether the deviation from p0p_0 is statistically real — a win rate significantly above 50% with tiny average trade size can still be an economically worthless edge once costs are included, a distinction covered in Economic Versus Statistical Significance.

Related concepts

Practice in interviews

Further reading

  • Wasserman, All of Statistics, ch. 10
  • Agresti & Coull (1998), Approximate is Better than Exact for Interval Estimation of Binomial Proportions
ShareTwitterLinkedIn