Paired differences
◈ 5 cardsTake the differences first; then it is Module 10’s one-sample t on d̄ with s_d from the differences themselves and df = pairs − 1 — s_d is never built from the two columns’ SDs.
Reduce to one column, then proceed as before
With paired data the analysis begins by computing one difference per pair, . The differences are a single sample from a population with mean , and everything that follows is Module 10’s one-sample t on that sample:
Here is the sample SD of the differences, computed from the column of ’s with in the denominator. It is not and not anything else built from the two original columns — pairing works precisely because the differences vary far less than the raw values do.
Worked example — did the promotion lift weekly sales?
Eight Maple Ledger client stores report weekly sales (\$000) the week before and the week after a promotion:
store 1 2 3 4 5 6 7 8
before 42 51 38 47 55 60 44 49
after 45 53 41 46 58 66 47 50
d 3 2 3 -1 3 6 3 1
Did mean weekly sales change? Test at , bracket the p-value, and give a 95 % interval for the mean change.
Step 1. Paired (the same eight stores). , , where is the mean change in weekly sales (after − before).
Step 2. , so . , and the shortcut formula gives
Step 3. Two-sided at 1 %: column 0.005, row 7: . Bracketing: 3.536 lies beyond the last column (3.499 at 0.005), so one-sided and two-sided .
Step 4. : reject at the 1 % level. There is evidence that mean weekly sales changed after the promotion — and since , that they rose.
The 95 % interval. :
With 95 % confidence the promotion raised mean weekly sales by between \$830 and \$4,170 per store. Entirely positive, as a two-sided test that rejects even at 1 % implies.
Why the columns’ SDs are useless here
The before column has SD 7.1 and the after column 8.1 — the stores differ in size. Treated as independent samples (the wrong design) the SE would be about 3.8 and about 0.66: nothing. The pairing removes the store-size variability, leaving differences with SD 2 and a decisive . Note one shortcut that does hold: , by linearity. There is no such shortcut for ; it must come from the differences.
The df counts pairs
Eight stores measured twice are 16 numbers but 8 pairs and 7 df. Writing (as if independent) or 15 (as if 16 observations) reads the wrong row of the table — and changes the critical value.