Memra

The CI and the two-sided test agree

◈ 4 cards

μ₀ lies outside the (1 − α) confidence interval exactly when the two-sided test rejects at α — the same SE, the same critical value, two views of one calculation.

Two views of one calculation

A two-sided test at level rejects when

The right-hand side is the margin of error of the confidence interval. So the test rejects exactly when is further from than the margin — exactly when lies outside the interval. The duality:

> is outside the confidence interval the two-sided test rejects at level .

A confidence interval is the set of all null values the data would not reject. L9.2's consultant-claim question was this in disguise.

Worked example — is the mean audit fee \$200?

L9.4 built Cedar & Stone's 95 % interval for the mean audit fee from , , : . The managing partner asks whether the mean fee differs from the \$200 the firm advertises. Two-sided: , , at .

By the interval. 200 lies inside — just. Do not reject at 5 %: there is insufficient evidence at the 5 % level that the mean fee differs from \$200.

By the statistic. ;

: do not reject. The two routes agree, as the algebra says they must: is the same inequality as , the margin.

Had the advertised fee been \$195, outside the interval, the test would reject — and confirms it. The interval answers every two-sided test at once: any below 199.10 or above 225.70 is rejected at 5 %, any between is not.

Why the interval is often the better answer

The test says whether 200 is plausible; the interval says which values are — 199.10 to 225.70 — and shows that 200 survives only by 90 cents. A manager reading the interval sees at once that the mean fee is probably above \$200 and that the sample is too small to be sure. The test alone hides both facts behind "do not reject". When the paper asks for both, do both; when it asks for one, the interval usually says more.

Levels and tails must match

The duality pairs a interval with a level- two-sided test: 95 % with , 99 % with . A 95 % interval says nothing directly about a test at 1 %. And a one-sided test pairs with a one-sided interval (a bound, open on one side — R prints one in L10.8) — not with the ordinary two-sided interval. This course names the one-sided interval and does not build it.

NORMAL ~/memra/learn/afm-113/the-ci-and-the-two-sided-test-agree utf-8 LF