Memra

The sampling distribution of a difference

◈ 6 cards

X̄₁ − X̄₂ has mean μ₁ − μ₂ and variance σ₁²/n₁ + σ₂²/n₂ — variances add even when means subtract, each divided by its own n; with σ known the statistic is z.

Means subtract, variances add

Two independent samples give two sample means. Module 8 said each one is approximately normal: and . Module 6’s rules for combining independent random variables then give the distribution of the difference:

The expected value subtracts, as intuition says. The variance adds — subtracting an independent quantity adds its uncertainty, exactly as in Module 6. The standard error of the difference is the square root:

Each variance is divided by its own sample size before the two are added. The SDs are never added and never subtracted.

Worked example — two offices, σ known

Maple Ledger has long-run records of days-to-pay in two offices: Kitchener has days, Guelph days. Fresh samples of and invoices give days. Is that difference more than sampling noise?

Under the observed difference is standardised as in Module 10:

The difference sits 2.47 standard errors above zero. Two-sided at the critical values are : reject. Both samples are over 30, so the CLT covers the normal shape whatever the invoice-level distribution looks like.

A note on the arithmetic trap: would make the SE zero and the statistic infinite — nonsense that comes from subtracting SEs. Only variances combine.

When z applies to two means

The z version needs both population SDs given. That is rare in practice and appears on the paper mainly to establish the SE formula; from L11.3 the population SDs are unknown, and replace them, and the statistic becomes t. The SE formula does not change — only what goes into it and which table is read.

The general null value

The hypothesis need not be no difference. If Kitchener is expected to be 2 days faster, and the numerator becomes . Write the null value in the general form

and set when the question asks simply whether the means differ, which is nearly always.

NORMAL ~/memra/learn/afm-113/the-sampling-distribution-of-a-difference utf-8 LF