↑↓ to move ↵ to open Esc to close Browse all tools

Math guide

What a p-Value Means (and What It Does Not)

A p-value answers one narrow question: if there were no real effect, how often would data like yours show up anyway? It does not say how likely the effect is, how big it is, or whether it matters. This guide gives the definition, explains what 0.05 is and is not, walks through the six principles the American Statistical Association published in 2016, and works an A/B test through by hand.

The definition

The American Statistical Association puts it informally like this: a p-value is the probability, under a specified statistical model, that a summary of the data would be equal to or more extreme than the value actually observed. The model is almost always one in which nothing is going on, the null hypothesis: the two groups convert at the same rate, the drug does the same as the placebo, the coin is fair. You then ask how often such a model would produce a gap at least as large as the one you saw. A p-value of 0.03 means three times in a hundred.

Read that sentence again and notice what is fixed and what varies. The model is assumed true; the data are what vary. So the p-value is a statement about data given a hypothesis, not about the hypothesis given the data. That one reversal explains most of the misreadings below.

What 0.05 is and is not

A threshold of 0.05 means: treat a result as notable if data this extreme would appear less than one time in twenty under the null model. Nothing in the mathematics picks that number; it is a convention, and the ASA statement's own introduction quotes a statistician's explanation of why it persists: it is taught because it is used, and used because it is taught. The statement warns against reducing a conclusion to a bright-line rule such as p < 0.05, because a result does not become true on one side of the line and false on the other. The editors of the follow-up special issue in 2019 go further: stop saying statistically significant at all, report the p-value as a number, p = 0.08 rather than n.s., and describe what it means in context.

Whether you follow that advice or your journal insists on a threshold, two habits help. Choose the threshold before you see the data, and read p = 0.049 and p = 0.051 as the near-identical results they are.

The six ASA principles, in plain words

  1. A p-value can show how incompatible the data are with a model. The smaller it is, the worse the fit between what you saw and the assumption of no effect, provided the model's other assumptions hold. That is the whole positive content.
  2. It is not the probability that the hypothesis is true, nor the probability that chance produced the data. Both readings are common and both are wrong. The p-value takes the null model as given; it cannot turn around and judge it.
  3. Decisions should not rest only on whether a p-value crosses a threshold. Study design, measurement quality, outside evidence and the assumptions behind the analysis all belong in the conclusion. A yes-or-no decision may be needed in practice, but the p-value alone cannot make it correct.
  4. Proper inference needs full reporting and transparency. Run twenty analyses and report the one with p < 0.05, and that p-value means nothing. The statement names this practice p-hacking, data dredging and significance chasing, and says to disclose how many hypotheses were explored, every analysis run and every p-value computed.
  5. A p-value does not measure the size of an effect or the importance of a result. Any effect, however tiny, produces a small p-value if the sample is large enough, and a large effect produces an unimpressive one if the sample is small. Statistical significance is not scientific, human or economic significance.
  6. By itself, a p-value is not a good measure of evidence. A value near 0.05 offers only weak evidence against the null, and a large value is not evidence for it; other hypotheses may fit the data just as well. Analysis should not stop at the p-value when other approaches are feasible.

An A/B test worked by hand

Variant A of a signup page had 10,000 visitors and 500 signups, a rate of 5.0%. Variant B had 10,000 visitors and 560 signups, 5.6%. Is a difference of 0.6% points real? The standard test for two proportions pools both groups into one rate, 5.30%, and asks how much two samples of this size would be expected to differ by chance alone. That expected wobble is the standard error:

Two-proportion z-test
SE = √(p̄ (1 − p̄) (1/nA + 1/nB)) = 0.0032
z = (pB − pA) ÷ SE = 1.89
p = 2 × (1 − Φ(|z|)) = 0.0583

The observed gap is 1.89 standard errors wide, and the standard normal distribution puts a gap that large, in either direction, at p = 0.0583. Under a 0.05 rule this is not significant. Under the ASA's reading it is a result that sits right at the line: the data are fairly incompatible with no difference, and a reader who treats 0.0583 as a failure and 0.0407 as a success is reading noise. The A/B test significance calculator runs the same test, adds a confidence interval for the difference and a Bayesian chance that B is better, and plans the sample size for the next test. The function Φ is the normal cumulative distribution; the z-table guide shows how to look it up by hand.

Now hold the two rates fixed and change only the number of visitors:

Visitors per variantRateszp-value
2,0005.0% vs 5.6%0.850.3970
5,0005.0% vs 5.6%1.340.1805
10,0005.0% vs 5.6%1.890.0583
20,0005.0% vs 5.6%2.680.0074
50,0005.0% vs 5.6%4.23< 0.0001

Same difference, same relative lift of 12 percent, and the p-value runs from "nothing to see" to "beyond doubt" purely because the sample grew. That is principle 5 in numbers. The practical lesson is to decide the sample size before the test from the smallest lift worth detecting; the sample size calculator does that for proportions and surveys.

Two ways to be wrong

No real effectReal effect
Test says effectType I error, a false positive. Its long-run rate is the threshold you chose, 5 percent at 0.05.Correct. The chance of landing here when the effect is real is the test's power.
Test says no effectCorrect.Type II error, a false negative. Its rate is 1 minus the power; small tests have high rates.

The threshold sets the false positive rate directly, which is why it feels like the important number. But the false negative rate is set by the sample size and the effect, and it is the one that quietly ruins small tests: a test with 50 percent power misses half of the real effects it is looking for. Power of 80 percent is the usual planning target, which still means one real effect in five goes unseen.

Many tests, one lucky one

Principle 4 has arithmetic behind it. If each test has a 5 percent chance of a false positive, the chance that at least one of m independent tests comes out under 0.05 by luck is 1 − 0.95m:

Tests at 0.05Chance of at least one false positiveBonferroni threshold per test
15.0%0.0500
29.8%0.0250
314.3%0.0167
522.6%0.0100
1040.1%0.0050
2064.2%0.0025

Twenty metrics, segments or variants looked at once will, on average, hand you one "significant" result that is pure chance. The simplest correction, Bonferroni, divides the threshold by the number of tests. The more honest fix is the one the ASA asks for: decide the one main comparison before the data arrive, and report every comparison you ran, whatever it showed. Peeking at a running test every day and stopping at the first dip below 0.05 is the same problem in time instead of space.

Effect size versus significance

A p-value compresses a result into one number about surprise. The result itself is the estimate and its uncertainty: B converted 0.6% points better than A, give or take. A 95 percent confidence interval around that difference tells you the range of true effects the data are compatible with, and the 2019 editors suggest reading it exactly that way, as a compatibility interval, rather than checking whether it contains zero. The confidence interval calculator computes it for a mean, a proportion or the difference between two groups. For measurements rather than counts, the spread of the data sets the scale: an effect of 2 points means a lot when the standard deviation is 3 and little when it is 30, and no p-value will tell you which case you are in.

So the reading order for any result is: what is the estimate, how wide is its interval, how big is the sample, how was the analysis chosen. Then, if you like, the p-value, as a number rather than a verdict.

Frequently asked questions

What is a p-value in one sentence?

The probability, assuming a stated model with no real effect, of getting a result at least as extreme as the one you observed. It describes the data under that assumption. It does not describe the probability that the assumption is true.

Is p = 0.05 a magic number?

No. It is a convention that stuck. The American Statistical Association says conclusions should not rest only on whether a p-value crosses a threshold, and the editors of its 2019 special issue go further and recommend reporting p-values as plain numbers, like p = 0.08, without the label statistically significant at all.

Does a small p-value mean a big effect?

No. With enough data, a tiny difference produces a tiny p-value; with little data, a large difference produces a large one. The size of the effect and its confidence interval tell you whether the result matters. The p-value only tells you how surprising the data would be if nothing were going on.

Does p = 0.30 mean there is no effect?

No. It means the data are not very incompatible with no effect; they may be just as compatible with a sizeable effect. Look at the confidence interval: if it runs from a loss of 2 percent to a gain of 12 percent, the test was simply too small to tell.

What is p-hacking?

Running many analyses, or looking at many outcomes, subgroups or stopping points, and reporting only the ones that came out under 0.05. The ASA statement names it as a practice that makes the reported p-values essentially uninterpretable, and asks researchers to disclose how many analyses were run and how the reported ones were chosen.

What should I report alongside a p-value?

The estimate itself, its confidence interval, the sample size, the test you ran, and everything you tried. The ASA principles say proper inference requires full reporting; a p-value without that context is a weak piece of evidence on its own.

Sources