From STA238 Probability Statistics and Data Analysis II

Hypothesis testing

Someone hands you a value for the parameter. Assume it is true, then see where your estimator landed relative to it. If that position is freakishly unlikely, the claim is wrong.

The three steps

1. State the hypotheses.

  • H0H_0: the default. Always an equality, μ=μ0\mu = \mu_0.
  • H1H_1: what you conclude if you reject. μ>μ0\mu > \mu_0, μ<μ0\mu < \mu_0, or μμ0\mu \neq \mu_0.

2. Compute the test statistic. The standardization from confidence intervals, with μ0\mu_0 plugged in for the unknown μ\mu:

t=xˉμ0s/nt = \frac{\bar x - \mu_0}{s / \sqrt n}

3. Get the pp-value and compare to α\alpha. Reject H0H_0 when p<αp < \alpha.

H1H_1pp-value
μ>μ0\mu > \mu_0P(Tt)P(T \ge t)
μ<μ0\mu < \mu_0P(Tt)P(T \le t)
μμ0\mu \neq \mu_02P(Tt)2 \cdot P(T \ge \lvert t \rvert)

The pp-value is a CDF evaluation on whichever distribution supplies cc in confidence intervals. Same table.

Two routes to the same answer

  • pp-value: reject when p<αp < \alpha.
  • Confidence interval: reject when μ0\mu_0 falls outside the (1α)(1-\alpha) interval.

Equivalent.

What you write

Reject: “At the α=0.05\alpha = 0.05 level we reject H0H_0; there is evidence that μ>80\mu > 80.”

Fail to reject: “At the α=0.05\alpha = 0.05 level we fail to reject H0H_0; there is not enough evidence that μ>80\mu > 80.”

Never “accept H0H_0.” Failing to reject is not evidence for H0H_0.

Strength of evidence

ppInterpretation
>0.10> 0.10No evidence against H0H_0
0.050.05 to 0.100.10Weak
0.010.01 to 0.050.05Moderate
0.0010.001 to 0.010.01Strong
<0.001< 0.001Very strong