STA 260.1 · Introduction to Probability and Statistics
Our notes
2 min readThe logic
- State H₀ (no effect, a claimed value) and H₁ (what you suspect): one-sided (μ > 70) or two-sided (μ ≠ 70).
- Choose the significance level α (often 0.05).
- Compute a test statistic from the sample.
- Compare with the critical value, or find the p-value (the probability, if H₀ is true, of a result at least as extreme).
- Reject H₀ if the statistic falls in the rejection region (p-value ≤ α). State the conclusion in words.
Two kinds of error
| H₀ true | H₀ false | |
|---|---|---|
| Reject H₀ | Type I error (probability α) | correct (power) |
| Do not reject | correct | Type II error (probability β) |
Lowering α raises β for the same n; a larger sample lowers both.
z test for a mean (σ known or n large)
z = (x̄ − μ₀)/(σ/√n).
t test for a mean (σ unknown, small normal sample)
t = (x̄ − μ₀)/(s/√n), with n − 1 degrees of freedom.
Worked example
A manufacturer claims a mean of 70 g of active content per batch. A sample of 16 batches gives x̄ = 74, s = 8. Test at 5% whether the mean differs from 70.
- H₀: μ = 70, H₁: μ ≠ 70.
- t = (74 − 70)/(8/√16) = 4/2 = 2.0.
- Critical value t₀.₀₂₅,₁₅ = 2.131.
- |2.0| < 2.131: do not reject H₀. The data do not show a difference at 5%.
(A one-sided test with H₁: μ > 70 has critical value 1.753, and 2.0 > 1.753 would reject: the choice of H₁ must be made before looking at the data.)
Test for a proportion
z = (p̂ − p₀)/√[p₀(1 − p₀)/n].
Example: a lecturer believes half the class prefers morning lectures; 64 of 100 do. z = (0.64 − 0.5)/0.05 = 2.8 > 1.96: reject H₀ at 5%.
Two means
- Large samples: z = (x̄₁ − x̄₂)/√(s₁²/n₁ + s₂²/n₂).
- Small samples, equal variances: pooled t with n₁ + n₂ − 2 degrees of freedom.
- Paired data (before and after on the same units): a one-sample t on the differences.
Exams usually ask
- Set up H₀ and H₁ correctly for a word problem.
- Carry out a z or t test and state the conclusion in context.
- Define Type I and II errors, significance level, p-value and power.
Common mistake
Writing "accept H₀" or "H₀ is proved". A test can only fail to reject H₀; the data may simply be too few to show the difference.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Introductory Statistics 2e, 9.1 Null and Alternative Hypotheses
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 9.1 Null and Alternative Hypotheses, CC BY-NC-SA 4.0 · licence
-
Introductory Statistics 2e, 9.2 Outcomes and the Type I and Type II Errors
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 9.2 Outcomes and the Type I and Type II Errors, CC BY-NC-SA 4.0 · licence
-
Statistical hypothesis test
(opens en.wikipedia.org in a new tab)
Wikipedia, Statistical hypothesis test, CC BY-SA 4.0 · licence
-
Type I and type II errors
(opens en.wikipedia.org in a new tab)
Wikipedia, Type I and type II errors, CC BY-SA 4.0 · licence
-
NOUN BIO 206: Biostatistics
NOUN course book (PDF, about 1.2 MB). Statistics for agriculture and biology: descriptive statistics, sampling, probability.
(opens nou.edu.ng in a new tab)
-
OpenStax, Introductory Statistics 2e (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Introductory Statistics 2e (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Hypothesis Testing Problems - Z Test & T Statistics - One & Two Tailed Tests 2
14 min · ≈ 63 MB · about ₦35
(opens youtube.com in a new tab)
-
Intro to Hypothesis Testing in Statistics - Hypothesis Testing Statistics Problems & Examples
24 min · ≈ 108 MB · about ₦61
(opens youtube.com in a new tab)
-
Hypothesis Testing - Introduction
4 min · ≈ 18 MB · about ₦10
(opens youtube.com in a new tab)
-
QUANTITATIVE ANALYSIS - HYPOTHESIS TESTING
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Statistics Lecture 8.2: An Introduction to Hypothesis Testing
2 h 27 min · ≈ 662 MB · about ₦372
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.