Hypothesis Testing

Summary

Hypothesis testing uses sample evidence to decide between a null hypothesis and an alternative hypothesis. A test statistic measures how far the sample result is from the null value; if the statistic falls in a predetermined rejection region, the null is rejected. The structure of the alternative determines whether the test is one-tailed or two-tailed.[1]

Prerequisites

Definition / Notation

Symbol Meaning
H0 Null hypothesis
H1 or Ha Alternative hypothesis
T Test statistic
R Rejection region
α Significance level, P(reject H0H0 true)

A test of H0:θ=θ0 against Ha:θθ0 is two-tailed; tests against Ha:θ>θ0 or Ha:θ<θ0 are one-tailed.

Parameters / Assumptions

Essential Result

For H0:μ=μ0 with known σ , the test statistic is

Z=X¯μ0σ/nN(0,1)under H0.

There is a duality between two-sided tests and confidence intervals: a two-sided 100(1α)% confidence interval contains exactly the values of μ0 that would not be rejected by a two-sided α -level test.[2]

Worked Example

Test H0:μ=100 against Ha:μ100 with n=36 , x¯=104 , σ=12 , and α=0.05 . The test statistic is

z=10410012/36=2.

Since |2|>1.96 , reject H0 at the 5% level.

Common Mistakes

Connections

References


  1. OpenStax, Introductory Statistics, "Hypothesis Testing", https://openstax.org/details/books/introductory-statistics ↩︎

  2. MIT OCW, Introduction to Probability and Statistics, "Hypothesis Testing", https://ocw.mit.edu/courses/mathematics/ ↩︎