Is it real or luck?
Plants given food grew taller. But would luck alone often make a gap that big? Shuffle the labels and find out.
Ten plants got plant food and ten did not. The fed ones grew 4.2 cm taller on average. Is the food working, or did the fed group happen to get the stronger seeds?
Pretend the food does nothing
If the food had no effect, the labels "fed" and "not fed" would be meaningless: any plant could have carried either label. So shuffle the labels at random, recalculate the gap and repeat.
Press Shuffle 1,000 times. The grey chart shows the gaps luck alone produces. Most are near 0, a few reach 2 or 3 cm. The yellow line, the real gap, sits far out on the edge.
The p-value
Count how many shuffles gave a gap at least as big as the real one and divide by the number of shuffles. That share is the p-value: the chance of seeing a gap this big if the food did nothing.
- A tiny p-value, like 0.001: luck rarely does this, so the effect is probably real.
- A big p-value, like 0.3: luck does this often, so you cannot tell.
Scientists often use 0.05, 1 in 20, as a line, but it is a rule of thumb, not magic.
What it does not tell you
A small p-value says the gap is unlikely to be luck. It does not say the gap is big enough to matter, and it does not say why. If the fed plants also sat in a sunnier spot, the sun could be the cause. Fair experiments assign the treatment at random to rule that out.
What to remember
- To test an effect, imagine it does nothing and see what luck produces.
- Shuffling the labels shows the gaps that luck alone can make.
- The p-value is the share of shuffles at least as extreme as the real result.
- Small p-values suggest a real effect; they do not show it is large or what caused it.