z-Test and Confidence Interval Explorer

Chapter 6 · The Connection Between Hypothesis Tests and Confidence Intervals

The top panel shows the null sampling distribution centered at the claimed value μ0; the shaded tail is the p-value. The bottom panel shows the corresponding confidence interval for μ. The two pictures are linked: any value of μ0 outside the interval is exactly a value the test would reject at level α.

Parameter:
Examples:

Null sampling distribution

Distribution of x under H0: μ = μ0. Shaded area is the p-value.

Confidence interval for μ

The set of all μ0 values the test would not reject at the chosen α (two-tailed).

Test statistic
p-value
Confidence interval
Decision rule