9. Testing Claims About One Population Parameter
Explanation
What a hypothesis test does
A hypothesis is a statement about a population parameter. Hypothesis testing uses sample evidence to decide whether the statement is a reasonable one that should not be rejected or an unreasonable one that should be rejected. The logic resembles a court trial: the claim is assumed to be true (innocent) unless the evidence is strong enough to reject it.
Null and alternative hypotheses
- Null hypothesis H₀: the statement assumed true at the start (the status quo). It always contains some form of equality (=, ≤, ≥).
- Alternative hypothesis Hₐ (or H₁): the contradictory statement, written with ≠, <, or >. It is what we hope to find evidence for.
They are contradictory and cover all possibilities. The direction of Hₐ sets the test: ≠ gives a two-tailed test, < a left-tailed test, > a right-tailed test. If we reject H₀ there is enough evidence for Hₐ. We never say a claim is proven true or false, because testing rests on probability.
Outcomes and the two errors
There are two ways to be right and two ways to be wrong. A Type I error is rejecting H₀ when it is actually true (probability α). A Type II error is failing to reject H₀ when it is actually false (probability β). Rejecting a false H₀ or keeping a true H₀ are the correct decisions, and the probability of the first of these, 1 − β, is the power of the test.
The level of significance α is the probability of a Type I error that you accept in advance (commonly 0.05 or 0.01). Power, 1 − β, is the probability of correctly rejecting a false H₀; high power is desirable. For a fixed sample size, shrinking α increases β. If the power is too low, the usual remedy is to increase the sample size while keeping α the same. Which error is worse depends on context (convicting an innocent person versus freeing a guilty one).
Which distribution is required?
- Mean, σ known: normal (z) test; population approximately normal or sample large.
- Mean, σ unknown: Student's t test with df = n − 1; same conditions.
- Proportion: normal test, requiring a binomial setting (fixed n, two outcomes, independent trials, constant p) and np and nq both greater than 5 (many use 10). The standard error uses the hypothesized p₀.
Rare events, the p-value, and the decision
A rare event is one with a low probability that nevertheless happened. If the sample result would be rare assuming H₀ is true, that is evidence against H₀. The test statistic (z or t) measures how many standard errors the sample result is from the hypothesized value. The p-value is the probability, calculated assuming H₀ is true, of getting a result at least as extreme as the one observed: the area in the tail(s) beyond the test statistic (double it for a two-tailed test). The smaller the p-value, the stronger the evidence against H₀.
Decision rule:
- p-value < α → reject H₀ (the result is statistically significant).
- p-value ≥ α → do not reject H₀ ("fail to reject"). This is not the same as proving H₀ true; the data simply were not strong enough.
Conclusion must be written in a sentence in context, for example "At the 5% level there is sufficient evidence to conclude the mean exceeds 20."
Steps of a full test
- State H₀ and Hₐ. 2. Define the random variable (parameter). 3. Decide the distribution (z or t, or the proportion test). 4. Sketch the curve, compute the test statistic and the p-value. 5. Compare p with α, decide, and write the conclusion. Remember: α is used in the decision; β matters when planning sample size.
Statistical versus practical significance
With a huge sample even a tiny, useless difference can be significant. Always look at the size of the effect as well as the p-value.
Common mistakes
Writing H₀ without an equality sign; saying "accept H₀"; reading the p-value as "the probability H₀ is true"; forgetting to double the tail area in a two-tailed test; using the sample proportion rather than p₀ in the standard error of a proportion test; confusing α with the p-value.
Practice tasks
- A company claims the mean battery life is at least 10 hours. You suspect it is lower. Write H₀ and Hₐ and say which tail.
- Describe Type I and Type II errors in the context of a medical test for a disease (H₀: patient healthy).
- H₀: μ = 100, σ = 15, n = 36, x̄ = 105. Compute z and the two-tailed p-value; decide at α = 0.05.
- H₀: μ = 20 vs Hₐ: μ > 20, x̄ = 22, s = 5, n = 25. Compute t, state df, and decide at α = 0.05 (critical value 1.711).
- H₀: p = 0.5 vs Hₐ: p ≠ 0.5, with 60 successes in 100. Compute z and the p-value.
- H₀: p = 0.2 vs Hₐ: p < 0.2, 30 successes in 200 trials. Compute z, p-value, and conclude at α = 0.05.
- If the p-value is 0.03, what do you conclude at α = 0.05 and at α = 0.01? Explain why "p = 0.03 means H₀ has a 3% chance of being true" is wrong.
Original author (OpenStax, Rice University). License / permission: CC BY-NC-SA 4.0. If you noticed a mistake or copyright issues, please contact: lebroskiofficial@proton.me