Skip to content

What a p-value really means

5 min read

Short answer

The p-value is the probability, assuming the null hypothesis is true, of getting a result at least as extreme as the one you observed. It is not the probability that the null is true, and not the probability that your result is due to chance.

Diagramtail area = p
For z = 2, the two shaded tails together hold about 4.55% of the probability.

A coin example

Flip a coin 100 times and get 60 heads. If the coin is fair, heads has mean 5050 and standard deviation 55, so z=60−505=2z=\dfrac{60-50}{5}=2. The chance of a result at least this far from 5050 in either direction is about 0.04550.0455. That number is the p-value.

Reading it correctly

A small p-value says the data would be unusual under H0H_0. It does not measure the size of an effect or how much it matters. With a huge sample, a trivial difference can give p<0.001p<0.001.

Worked example

A test gives p=0.03p=0.03. Which is correct: (a) there is a 3% chance H0H_0 is true; (b) if H0H_0 were true, results this extreme would occur about 3% of the time?

(b). The p-value is computed assuming H0H_0 is true, so it cannot be the probability that H0H_0 is true. Getting (a) would need a prior probability for H0H_0 (the Bayesian approach).

Try it yourself

If H0H_0 is true, how often will a test at α=0.05\alpha=0.05 wrongly reject it?

Show the answer

About 5% of the time. That is exactly what the significance level controls (the Type I error rate).

Keep going with practice

Vidi's Bayes lessons show what the p-value does not answer: the probability of the hypothesis itself.