Professional Documents
Culture Documents
2. Interval estimate
3. Hypothesis testing
ҧ 0
𝑥−𝜇
◼ Population variance 𝜎2 is unknown: test statistics 𝑇0 =
𝑆/ 𝑛
𝑝(1−𝑝)
• If n𝑝Ƹ ≥ 5 and n(1 − 𝑝)Ƹ ≥ 5, CLT tells that 𝑝~𝑁(𝑝,
Ƹ ) approximately.
𝑛
𝑝ො 1−𝑝ො ො
𝑝(1− ො
𝑝)
• Interval estimate: 𝑝Ƹ − 𝑧𝜶/𝟐 , 𝑝Ƹ + 𝑧𝛼/2
𝑛 𝑛
𝑝ෝ −𝑝0
• Hypothesis testing: test statistics 𝑍0 =
𝑝0 (1−𝑝0 )/𝑛
Remark: some samples are taken from two different populations, while some
samples are taken from the same population, twice. It is important to
distinguish between independent and dependent samples before
formulating any hypotheses.
2. A dietitian enrolls 30 volunteers in a new diet program. All volunteers will take the
same diet for a week and their weights are measured before and after the program.
𝐻0 : 𝜇1 − 𝜇2 = Δ0 𝐻0 : 𝜇1 − 𝜇2 = Δ0 𝐻0 : 𝜇1 − 𝜇2 = Δ0
Hypothesis test
𝐻1 : 𝜇1 − 𝜇2 ≠ Δ0 𝐻1 : 𝜇1 − 𝜇2 < Δ0 𝐻1 : 𝜇1 − 𝜇2 > Δ0
Test statistic ?
Critical region ? ? ?
𝑋1 − 𝑋2 − Δ0
𝑍= ~𝑁 0,1
𝜎12 𝜎22
+
𝑛1 𝑛2
𝐻0 : 𝜇1 − 𝜇2 = Δ0 𝐻0 : 𝜇1 − 𝜇2 = Δ0 𝐻0 : 𝜇1 − 𝜇2 = Δ0
Hypothesis test
𝐻1 : 𝜇1 − 𝜇2 ≠ Δ0 𝐻1 : 𝜇1 − 𝜇2 < Δ0 𝐻1 : 𝜇1 − 𝜇2 > Δ0
𝑋1 − 𝑋2 − Δ0
𝑍0 =
Test statistic 𝜎12 𝜎22
+
𝑛1 𝑛2
𝑧 > 𝑧𝛼/2 or
Critical region 𝑧 < −𝑧𝛼 𝑧 > 𝑧𝛼
𝑧 < −𝑧𝛼/2
populations are normally distributed and the population variances are known, given by 𝜎12 = 1 and 𝜎22 = 1.
𝐻0 : 𝜇1 − 𝜇2 = Δ0 𝐻0 : 𝜇1 − 𝜇2 = Δ0 𝐻0 : 𝜇1 − 𝜇2 = Δ0
Hypothesis test
𝐻1 : 𝜇1 − 𝜇2 ≠ Δ0 𝐻1 : 𝜇1 − 𝜇2 < Δ0 𝐻1 : 𝜇1 − 𝜇2 > Δ0
𝑋1 − 𝑋2 − Δ0
𝑇=
Test statistic 1 1
𝑠𝑝 +
𝑛1 𝑛2
𝑡 > 𝑡𝑛1−𝑛2−2,𝛼Τ2 or
Critical region t < −𝑡𝑛1−𝑛2−2,𝛼 𝑡 > 𝑡𝑛1−𝑛2−2,𝛼
t < −𝑡𝑛1−𝑛2−2,𝛼Τ2
◼ Define
𝐻0 : 𝑝1 = 𝑝2 𝐻0 : 𝑝1 = 𝑝2 𝐻0 : 𝑝1 = 𝑝2
Hypothesis test
𝐻1 : 𝑝1 ≠ 𝑝2 𝐻1 : 𝑝1 < 𝑝2 𝐻1 : 𝑝1 > 𝑝2
ෞ1 −ෞ
𝑝 𝑝2
𝑍= 1 1
ො
𝑝(1− ො
𝑝) +
𝑛1 𝑛2
Test statistic
𝑌1 + 𝑌2
𝑝Ƹ =
𝑛1 + 𝑛2
𝑧 > 𝑧𝛼Τ2 or
Critical region z < −𝑧𝛼 𝑧 > 𝑧𝛼
z < −𝑧𝛼Τ2
❑ Remark: Basically, you take the difference, then perform a T-test on the differences.
𝐻0 : 𝜇𝑫 = Δ0 𝐻0 : 𝜇𝑫 = Δ0 𝐻0 : 𝜇𝑫 = Δ0
Hypothesis test
𝐻1 : 𝜇𝑫 ≠ Δ0 𝐻1 : 𝜇𝑫 < Δ0 𝐻1 : 𝜇𝑫 > Δ0
Test statistic ?
Critical region ? ? ?