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.
A coin example
Flip a coin 100 times and get 60 heads. If the coin is fair, heads has mean and standard deviation , so . The chance of a result at least this far from in either direction is about . That number is the p-value.
Reading it correctly
A small p-value says the data would be unusual under . It does not measure the size of an effect or how much it matters. With a huge sample, a trivial difference can give .
Worked example
A test gives . Which is correct: (a) there is a 3% chance is true; (b) if were true, results this extreme would occur about 3% of the time?
(b). The p-value is computed assuming is true, so it cannot be the probability that is true. Getting (a) would need a prior probability for (the Bayesian approach).
Try it yourself
If is true, how often will a test at 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.