Euler Hall — free maths guides

Interpret a p-value as a tail probability

Read a p-value as a tail area for a one- or two-sided alternative. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.

How surprising these data would be if the null were true

The p-value answers one question:

> IfH0H_0 were true, how often would a sample at least this extreme occur?

It is an area under the null distribution, in the tail(s) the alternative names:

- right-tailed alternative: the area above the statistic; - left-tailed: the area below it (equivalently, above its mirror image, because the normal is symmetric); - two-tailed: both tails, so twice the one-tailed area.

The decision rule is then mechanical. Compare the p-value with the levelα\alpha chosen in advance:

Two properties matter and are easy to forget. The p-value is computed under the null, so it says nothing directly about the probability that either hypothesis is true. And it is a probability of the data, not a measure of the effect: a tiny effect measured very precisely gives a very small p-value, which is why an effect size belongs beside it.

Why the p-value is computed under the null

The p-value is a probability of the data, conditional on a hypothesis:

p=P(a statistic at least this extreme∣H0).p = P(\text{a statistic at least this extreme} \mid H_0).

The condition is what makes it computable. UnderH0H_0 the parameter has a known value, so the statistic has a known distribution — standard normal,tt,χ2\chi^2 — and the tail area can be read from a table. UnderHaH_a the parameter could be any of many values, so there would be no single distribution to integrate.

That asymmetry is the source of the commonest misreading.P(data∣H0)P(\text{data} \mid H_0) is notP(H0∣data)P(H_0 \mid \text{data}): the two are related by Bayes' rule and differ by the prior odds. A p-value of 0.01 does not mean a 1% chance the null is true; it means data this extreme would arise 1% of the time if the null held.

It is also why the p-value is not a measure of effect size. Doubling the sample halves the standard error, which doubles the statistic, which shrinks the p-value — with the effect itself unchanged. The number measures evidence, and evidence is a product of the effect's size and the precision of its measurement.

Worked example: a p-value read from a printed table

A bottling line is tested atα=0.05\alpha = 0.05 againstHa:μ>500H_a: \mu > 500 ml. A sample givesz=1.80z = 1.80.

Step 1 — which tail? The alternative is "greater than", so the evidence is in the right tail.

Step 2 — read the area. A printed table givesP(Z>1.80)=0.0359P(Z > 1.80) = 0.0359.

Step 3 — compare with the level.0.0359≤0.050.0359 \le 0.05, so rejectH0H_0.

Step 4 — state it in the problem's words. "At the 5% level there is sufficient evidence that the mean fill exceeds 500 ml."

Now the same data against a two-sided alternative:p=2×0.0359=0.0718p = 2 \times 0.0359 = 0.0718, which exceeds 0.05, so the test does not reject. Samezz, opposite conclusion, because the question changed.

A check worth doing every time. If the statistic is 1.80 and the alternative points right, the p-value must be below 0.5 — the right tail above a positivezz is always under a half. A computed p-value above 0.5 with a positive statistic and a right-tailed alternative means the complement was taken by mistake.

By the end you can
  • Read a p-value as a tail area for a one- or two-sided alternative
  • Convert between a one-tailed and a two-tailed p-value
  • State the decision rule against a chosen level
  • Say what a p-value is not
Check yourself
  1. 1.z=1.50z = 1.50, right-tailed,P(Z>1.50)=0.0668P(Z > 1.50) = 0.0668. Give the p-value and the decision at 5%.
  2. 2. The samezz, two-tailed. Give the p-value and the decision.
  3. 3. Why can a p-value never be computed underHaH_a?
Answers

1.0.06680.0668; do not reject (it exceeds 0.05). 2.0.13360.1336; do not reject. 3. BecauseHaH_a is a set of possible values, not one value, so there is no single distribution for the statistic to have an area under.

Work out where to start — free, no accountAnswer six real questions — free, no account