/ THE IDEA
A null hypothesis is the model statement being tested, such as equal chances of heads and tails with independent flips. Choose a test statistic, a number calculated from the data to describe departure from that statement. Then consider how often the model would generate the observed statistic or one farther into the chosen tail. For this scene, decide in advance to test for a coin favouring heads. The statistic is the number of heads, and the relevant tail is that many heads or more. A two-sided test would also count sufficiently extreme outcomes in the other direction and would give a different p-value.
THE FORMAL IDEA
p = P(H ≥ h_observed | fair, independent flips)
| H is the random number of heads in the stated number of flips; h_observed is the actual count. Both are counts without units. | | The vertical bar means “assuming the conditions to its right.” P denotes probability; ≥ means at least. The formula is specific to this preselected one-sided test. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Four flips produce four heads. Under the fair model, each exact sequence has probability (1/2)⁴ = 1/16. Only HHHH has at least four heads: p = 1/16 = 0.0625. Change only the observed count to three heads. Four sequences have exactly three heads and one has four: p = 5/16 = 0.3125.
|
The all-heads result is less common under the stated model than three heads or more. Neither calculation says that the coin has a 6.25% or 31.25% probability of being fair. That would ask a different conditional question and require additional assumptions and information.
/ SO WHAT?
A small p-value can motivate questioning some part of the tested model, but it does not identify which assumption failed or how large a real effect is. Report the effect estimate, uncertainty, experimental design and full testing process. A model can be inadequate because flips were dependent, measurements were wrong or a search selected the most unusual result, not solely because the coin’s long-run heads probability differs from one half.
ONE CAVEAT |
| Failing to obtain a small p-value does not prove the null model. Peeking repeatedly or choosing the tail after seeing outcomes changes the procedure. The tiny coin example has deliberately discrete probabilities, not a universal decision threshold. |
KEEP THIS
A p-value asks how unusual the data look assuming a model; it does not reverse that question into the probability the model is true.
|
NEXT: Hot rock is a store; heat flow is a refill rate
|