Memra

p-values

◈ 7 cards

The p-value is the probability, if H₀ were true, of a statistic at least as extreme as the one observed — one tail for a one-sided test, doubled for two-sided; reject when p ≤ α.

The second route to the same decision

L10.3 compared the statistic with a critical value. The p-value route compares a probability with instead:

> The p-value is the probability, computed assuming is true, of getting a test statistic at least as extreme — in the direction of — as the one observed.

A small p-value says: if the null were true, a sample like this would be rare. Rare enough, and the null goes. The decision rule is

The two routes always agree — the p-value is the smallest at which the observed statistic would reject — but the p-value carries more information: it says how rare, not just whether it crossed a line. That is why software prints it.

Worked example — the same z, three p-values

Kitchener Ridge's lower-tailed test gave . "At least as extreme in the direction of " means this far below, or further:

: reject at the 5 % level — the same decision as the critical-value route, as it must be. Note also : at the 1 % level the same data would not reject. The p-value lets the reader apply their own .

Two-sided. If the question had been has the mean changed?, "at least as extreme" means this far from 45 in either direction, so both tails count:

: do not reject at 5 % — again matching L10.3's . The two-sided p is double the one-sided p, always.

A second statistic. A different test yields , two-sided:

Reject at 5 %, not at 1 %. The recipe: find the one-tail area beyond from the cumulative table, ; use it as is for a one-sided test whose direction the data agree with; double it for two-sided.

one-sided two-sided at
0.02870.0574reject / do not reject
0.01040.0209reject / reject

What a p-value is not

does not mean there is a 2.87 % chance that is true. is true or it is not; the 2.87 % is the chance of data this extreme if it is. Nor does measure the size of the effect: a tiny difference with a huge can have a tiny (L10.6). Read it as a rarity, under the null, of what was seen.

Software prints two-sided

R's t.test and every other package print the two-sided p-value by default. If your question is one-sided and the estimate lies in the direction predicts, halve the printed value; if the estimate lies the wrong way, the one-sided p is greater than 0.5 and the null stands. L10.8 shows the alternative = argument that makes R do the halving itself.

zOne-sided pTwo-sided pDecision at α =0.05−1.900.02870.0574reject 1-sided · donot reject 2-sided2.310.01040.0209reject either wayΦ(1.90) = 0.9713 and Φ(2.31) = 0.9896 from the cumulative table. Reject when p ≤ α.
One-sided p is the single tail beyond |z|; two-sided doubles it. The same z = −1.90 rejects one-sided and fails two-sided at 5 %.
NORMAL ~/memra/learn/afm-113/p-values utf-8 LF