



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




1. Introduction to Hypothesis Testing
2. Statistical Hypotheses
Hypothesis Meaning Example
Null Hypothesis (H 0 )
The statement of "no effect" / "no difference" — assumed true until evidence says otherwise.
H 0 : μ = 50 (average score is 50)
Alternative Hypothesis (H 1 or Ha)
The statement we accept if there is enough evidence against H 0 ; represents the claim being tested. H^1 :^ μ^ ≠^ 50 (average score is not 50)
3. Types of Alternative Hypotheses
Fail to reject H
Reject Reject
Two-Tailed Test
Fail to reject H
Reject H
Right-Tailed Test
Fail to reject H
Reject H
Left-Tailed Test
H 0 : μ = μ 0 vs H 1 : μ ≠ μ 0 (both tails) H 0 : μ ≤ μ 0 vs H 1 : μ > μ 0 (right tail) H 0 : μ ≥ μ 0 vs H 1 : μ < μ 0 (left tail)
4. Significance Level ( α )
α (significance) Confidence level Typical use
0.05 (5%) 95% Most common default in research
0.01 (1%) 99% Used when stronger evidence is required
Relationship: Confidence level = 1 − α (e.g. α = 0.05 → 95% confidence).
5. Test Statistic
z = (x¯ − μ 0
) / ( σ / √ n)
Symbol Meaning Symbol Meaning
x¯ Sample mean σ Population standard deviation
μ 0 Hypothesized population mean (from H 0 ) n Sample size
6. P-Values
Condition Decision
p ≤ α Reject H0 — evidence is strong enough
p > α Fail to reject H0 — not enough evidence
Important: "Fail to reject H 0 " does not mean H 0 is proven true. It only means the sample did not provide enough evidence against it — absence of evidence is not evidence of absence.
observed z = 2.
critical z (α) = 1.
p-value area
Observed z lies beyond critical z → p-value < α → Reject H
10. Solved Examples
Given A factory claims its bottles contain 500 ml on average. A sample of n = 40 bottles has x¯ = 496 ml, with population σ = 12 ml. Test the claim at α = 0.05.
H0 / H1 H 0 :^ μ^ = 500^ H 1 :^ μ^ ≠^500
α 0.05 (two-tailed)
Formula z = (x¯ − μ 0 ) / (σ/√n)
Calculation z = (496^ −^ 500) / (12/√40) =^ −4 / 1.897 =^ − 2.
P-value For a two-tailed test, p = 2 × P(Z < −2.11) ≈ 2 × 0.0174 = 0.
Decision Since p (0.0348) ≤ α (0.05) → Reject H.
Conclusion There is sufficient evidence at the 5% level that the mean bottle volume differs from 500 ml.
Given A trainer claims a new program increases average pushups above the current mean of 30. A sample of n = 36 has x¯ = 33.5, with σ = 6. Test at α = 0.05.
H0 / H1 H 0 : μ ≤ 30 H 1 : μ > 30
α 0.05 (right-tailed)
Formula z = (x¯ − μ 0 ) / (σ/√n)
Calculation z = (33.5 − 30) / (6/√36) = 3.5 / 1.0 = 3.
Critical value For a right-tailed test at α = 0.05, critical z = 1.
Decision Since calculated z (3.50) > critical z (1.645), it falls in the rejection region → Reject H.
Conclusion There is sufficient evidence that the new program increases average pushups above 30.
Given A company claims average battery life is at least 40 hours. A sample of n = 50 batteries has x¯ = 38.2 hours, with σ = 5 hours. Test the claim at α = 0.01.
H0 / H1 H 0 : μ ≥ 40 H 1 : μ < 40
α 0.01 (left-tailed)
Formula z = (x¯ − μ 0 ) / (σ/√n)
Calculation z = (38.2 − 40) / (5/√50) = −1.8 / 0.707 = − 2.
Critical value For a left-tailed test at α = 0.01, critical z = − 2.
Decision Since calculated z (−2.55) is more extreme than critical z (−2.33), it falls in the rejection region → Reject H.
Conclusion There is sufficient evidence at the 1% level that average battery life is below the claimed 40 hours.
11. Common Student Mistakes - Writing H 0 and H 1 the wrong way round. - Using "=" in the alternative hypothesis (H 1 never contains
12. Exam Tips & Quick Revision Summary
Concept Key Point
H 0 / H 1 H 0 : assumed true, contains "=". H 1 : the claim being tested, never contains "=".
α Significance level, fixed before the test (commonly 0.05 or 0.01) = P(Type I error).
P-value rule p ≤ α → Reject H0. p > α → Fail to reject H0.
Type I / Type II Type I: reject a true H0 (prob. = α). Type II: fail to reject a false H0 (prob. = β).
Z-test formula z = (x¯ − μ 0 ) / (σ/√n)
Reject H0 Fail to Reject H
p ≤ α, or test statistic in rejection region p > α, or test statistic in acceptance region
Strong evidence against H0; support H1 Not enough evidence against H0 (does not prove H0 true)
State H0 & H
1
Choose alpha
2
Select the test
3
Calculate test statistic
4
Find p-value / critical value
5
Make decision
6
Conclude in context
7