Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Hypothesis testing is a statistical method for using sample data to evaluate a claim about a population. It helps scientists, doctors, engineers, and social researchers decide whether an observed effect is likely real or could have happened by random chance alone. The process gives a structured way to compare evidence against a default assumption. This makes conclusions more consistent and transparent.

In a hypothesis test, you begin with a null hypothesis that represents no effect or no difference, and an alternative hypothesis that represents the claim you want to investigate. After choosing a significance level α\alpha, you calculate a test statistic from the sample and use it to find a pp-value. The pp-value measures how unusual the sample result would be if the null hypothesis were true. If the pp-value is small enough, you reject the null hypothesis; otherwise, you fail to reject it.

Key Facts

  • Null hypothesis H0H_0 usually states no difference, no effect, or a specific population value.
  • Alternative hypothesis HaH_a states the competing claim, such as μμ0\mu \neq \mu_0, μ>μ0\mu > \mu_0, or μ<μ0\mu < \mu_0.
  • Decision rule: reject H0H_0 if pp-value α\leq \alpha; otherwise fail to reject H0H_0.
  • A common significance level is α=0.05\alpha = 0.05, which is the probability of a Type I error.
  • For a zz test of a mean, z=xˉμ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}.
  • For a one-sample tt test, t=xˉμ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}.

Vocabulary

Null hypothesis
The starting claim that there is no effect, no difference, or no change in the population.
Alternative hypothesis
The competing claim that says there is an effect, a difference, or a change.
p-value
The probability of getting a result at least as extreme as the sample result if the null hypothesis is true.
Significance level
The cutoff probability α\alpha used to decide when evidence is strong enough to reject the null hypothesis.
Test statistic
A standardized number computed from sample data that measures how far the sample result is from what the null hypothesis predicts.

Common Mistakes to Avoid

  • Saying the p-value is the probability that H0H_0 is true, which is wrong because the p-value assumes H0H_0 is true and measures the probability of the observed data or more extreme data.
  • Writing reject H0H_0 when p-value > α\alpha, which is wrong because results larger than α\alpha do not provide enough evidence against the null hypothesis.
  • Confusing fail to reject H0H_0 with proving H0H_0 true, which is wrong because the test may simply lack enough evidence or sample size to detect a real effect.
  • Choosing a one-tailed test after looking at the data, which is wrong because the direction of the test must be set before analysis to avoid biased conclusions.

Practice Questions

  1. 1 A factory claims the mean battery life is 20 hours. A sample of 36 batteries has mean 18.8 hours. Assume σ=3\sigma = 3 hours and test H0:μ=20H_0: \mu = 20 versus Ha:μ<20H_a: \mu < 20 at α=0.05\alpha = 0.05. Compute the zz statistic and state the decision using the critical value method or p-value method.
  2. 2 A school tests whether a new tutoring program changes average test scores. For 25 students, the sample mean is 78, the hypothesized mean is 74, and the sample standard deviation is 10. Test H0:μ=74H_0: \mu = 74 versus Ha:μ74H_a: \mu \neq 74 at α=0.05\alpha = 0.05 using a one-sample tt test. Compute the tt statistic and state whether to reject H0H_0.
  3. 3 A study reports pp-value = 0.08 for a test conducted at α=0.05\alpha = 0.05. Explain what decision should be made and why this does not mean the null hypothesis has been proven true.