Connecting hypothesis testing and confidence intervals

1 Hypothesis testing

Consider the two-sided hypothesis testing case

H0:μ=μ0 H1:μμ0

Where the test statistic used in order to test the above claim is:

t=x¯μ0s/n

At the 5% significance level:

  • we reject the null hypothesis H0 whenever the observed t-statistic lies beyond the critical values:

ttort+t

  • we do not reject the null hypothesis H0 whenever the observed t-statistic lies within the critical values:

t<t<+t

2 Confidence interval

A 95% confidence interval for the population mean is given by

[x¯t×sn,  x¯+t×sn]

This is often written as

x¯±t×sn

where ±t are the quantiles of a t-distribution jointly cutting an overall probability of α in the tails.

3 From HT to CI

In the hypothesis test, we do not reject the null hypothesis at the 5% significance level whenever μ0 lies inside of the 95% CI:

Do not reject H0:μ=μ0 ift<t<+tt<x¯μ0sn<+tt×sn<x¯μ0<+t×snx¯t×sn<μ0<x¯+t×snx¯+t×sn>μ0>x¯t×snx¯t×sn<μ0<x¯+t×snμ0 inside of [x¯t×sn,  x¯+t×sn]μ0 inside of 95% CI

Back to top