How exactly does a two-sided 95% confidence interval correspond to the set of null values a two-sided test at alpha 0.05 would fail to reject?
Last updated
The test rejects θ0 when |estimate − θ0|/SE exceeds the critical value (e.g. 1.96). The CI is estimate ± critical value × SE, exactly the θ0 values not rejected.
So θ0 inside the 95% CI means fail to reject at alpha 0.05, and θ0 outside means reject (this is called duality).
The match is exact only if both use the same SE and pivot. Score vs Wald tests for proportions, for example, can differ slightly.