Professional Documents
Culture Documents
𝑠1 2 𝑠2 2
𝑥ҧ1 − 𝑥ҧ2 ± 𝑡𝛼Τ2 +
𝑛1 𝑛2
𝜎1 2 𝜎2 2
𝑥ҧ1 − 𝑥ҧ2 ± 𝑧𝛼Τ2 + Where the degrees of freedom for 𝑡𝛼Τ2 :
𝑛1 𝑛2 𝑠1 2 𝑠2 2
2
+
𝑛1 𝑛2
𝑑𝑓 = 2 2
1 𝑠1 2 1 𝑠2 2
+𝑛 −1 𝑛
𝑛1 − 1 𝑛1 2 2
Where:
𝜎1 2 𝜎2 2 𝑠1 2 𝑠2 2
𝑥ҧ1 − 𝑥ҧ2 = point estimate of 𝜇1 − 𝜇2 ; + = standard error for 𝑧; + = standard error for 𝑡
𝑛1 𝑛2 𝑛1 𝑛2
Forms of 𝐻0 & 𝐻𝑎 for 𝜇1 − 𝜇2
Two-Tail Test Upper-Tail Test Lower-Tail Test
𝐻0 : 𝜇1 − 𝜇2 = 𝐷0 𝐻0 : 𝜇1 − 𝜇2 ≤ 𝐷0 𝐻0 : 𝜇1 − 𝜇2 ≥ 𝐷0
𝐻𝑎 : 𝜇1 − 𝜇2 ≠ 𝐷0 𝐻𝑎 : 𝜇1 − 𝜇2 > 𝐷0 𝐻𝑎 : 𝜇1 − 𝜇2 < 𝐷0
Or Or Or
𝐻0 : 𝜇1 = 𝜇2 𝐻0 : 𝜇1 ≤ 𝜇2 𝐻0 : 𝜇1 ≥ 𝜇2
𝐻𝑎 : 𝜇1 ≠ 𝜇2 𝐻𝑎 : 𝜇1 > 𝜇2 𝐻𝑎 : 𝜇1 < 𝜇2
Sample Size 36
Sample Mean 40
Population Standard Deviation 9
PHStat Output: Population 2 Sample
Upper-Tail Test
Upper Critical Value 2.3263
p-Value 0.0079
Reject the null hypothesis
Hypothesis Test for 𝜇1 − 𝜇2 : 𝜎1 , 𝜎2 Unknown
Test Statistic Formula
𝑥ҧ1 − 𝑥ҧ2 − 𝐷0
𝑡=
𝑠1 2 𝑠2 2
+
𝑛1 𝑛2
𝑠1 2 𝑠2 2
Where: + = standard error
𝑛1 𝑛2
BATMOBILE TUMBLER
Sample Size 24 cars 28 cars
Sample Mean 29.8 mph 27.3 mph
Sample Stand. Dev. 2.56 mph 1.81 mph
Hypothesis Test for 𝜇1 − 𝜇2 : 𝜎1 , 𝜎2 Unknown
Example 2. 𝑛𝐵 = 24; 𝑥ҧ𝐵 = 29.8; 𝑠B = 2.56; 𝑛 𝑇 = 28; 𝑥ҧ 𝑇 = 27.3
𝑠T = 1.81; Upper-tail test; 𝛼 = .05
a. Formulate 𝐻0 & 𝐻𝑎
b. Calculate the degrees of freedom
c. Construct a 95% confidence interval
d. Determine the test statistic value
e. Compute the p-value
f. Find the critical value
g. What is your decision & conclusion?
Hypothesis Test for 𝜇1 − 𝜇2 : 𝜎1 , 𝜎2 Unknown
Example 2. 𝑛𝐵 = 24; 𝑥ҧ𝐵 = 29.8; 𝑠B = 2.56; 𝑛 𝑇 = 28; 𝑥ҧ 𝑇 = 27.3
𝑠T = 1.81; Upper-tail test; 𝛼 = .05
Answer:
a. 𝐻0 : 𝜇𝐵 − 𝜇 𝑇 ≤ 0; 𝐻𝑎 : 𝜇𝐵 − 𝜇 𝑇 > 0
b. 𝑑𝑓 = 41 (rounded off to the nearest whole number)
2
2.562 1.812
+
24 28
𝑑𝑓 = 2 2 = 40.59
1 2.562 1 1.812
+
23 24 27 28
Intermediate Calculations
Numerator of Degrees of Freedom 0.1522
Denominator of Degrees of Freedom 0.0037
Total Degrees of Freedom 40.5854
Degrees of Freedom 40
Standard Error 0.6246
Difference in Sample Means 2.5000
Separate-Variance t Test Statistic 4.0028
Upper-Tail Test
Upper Critical Value 1.6839
p-Value 0.0001
Reject the null hypothesis
Hypothesis Test for 𝜇1 − 𝜇2 : Matched
Samples
In the matched (paired) sample design, each element provides a pair
of data values, one from each population.
The difference between the paired data values is used in the
statistical analysis.
The matched sample design is generally preferred to the independent
sample design because it often improves the precision of estimate. It
also leads to a smaller sampling error, because the variation between
sampled items is eliminated as a source of error.
Hypothesis Test for 𝜇1 − 𝜇2 : Matched
Samples
STEPS:
Determine the difference of each pair
Calculate the mean and standard deviation of the differences
Use One-sample t-test to calculate the test statistic value:
ഥ − 𝝁𝒅
𝒅
𝒕= ; 𝒅𝒇 = 𝒏 − 𝟏
𝒔𝒅 Τ 𝒏𝒅
Where: 𝑑ҧ = mean of the differences; 𝑠𝑑 = stand. Dev. of the differences; 𝑛𝑑 = no. of pairs
a. 𝐻0 : 𝜇𝑈 − 𝜇𝐹 = 0; 𝐻𝑎 : 𝜇𝑈 − 𝜇𝐹 ≠ 0 Data
SD
9
2.9078
ഥ𝟏 (𝟏 − 𝒑
𝒑 ഥ𝟏 ) 𝒑ഥ𝟐 (𝟏 − 𝒑
ഥ𝟐 )
ഥ𝟏 − 𝒑
𝒑 ഥ 𝟐 ± 𝒛𝜶Τ𝟐 +
𝒏𝟏 𝒏𝟐
Where:
𝑥1 𝑥2
𝑝1ҧ = ; 𝑝2ҧ =
𝑛1 𝑛2
Forms of 𝐻0 & 𝐻𝑎 for 𝑝1 − 𝑝2
Two-Tail Test Upper-Tail Test Lower-Tail Test
𝐻0 : 𝑝1 − 𝑝2 = 0 𝐻0 : 𝑝1 − 𝑝2 ≤ 0 𝐻0 : 𝑝1 − 𝑝2 ≥ 0
𝐻𝑎 : 𝑝1 − 𝑝2 ≠ 0 𝐻𝑎 : 𝑝1 − 𝑝2 > 0 𝐻𝑎 : 𝑝1 − 𝑝2 < 0
Or Or Or
𝐻0 : 𝑝1 = 𝑝2 𝐻0 : 𝑝1 ≤ 𝑝2 𝐻0 : 𝑝1 ≥ 𝑝2
𝐻𝑎 : 𝑝1 ≠ 𝑝2 𝐻𝑎 : 𝑝1 > 𝑝2 𝐻𝑎 : 𝑝1 < 𝑝2
Hypothesis Test for 𝑝1 − 𝑝2
Test Statistic Formula
ഥ𝟏 − 𝒑
𝒑 ഥ𝟐
𝒛=
𝟏 𝟏 pooled estimate of
ഥ(𝟏 − 𝒑
𝒑 ഥ) +
𝒏𝟏 𝒏𝟐 standard error
Where:
𝑿𝟏 + 𝑿𝟐
ഥ=
𝒑
𝒏𝟏 + 𝒏𝟐
𝑋1 = no. of sucesses in sample 1
𝑋2 = no. of sucesses in sample 2
Hypothesis Test for 𝑝1 − 𝑝2
Example 4. ADS Inc. is conducting a research to evaluate the
effectiveness of a client’s new advertising campaign. Before the new
campaign, a survey of 150 respondents from the test market area
showed 60 respondents were aware of the client’s product. The new
campaign has been initiated with TV and newspaper ads running for
three weeks. After the new campaign, a survey was conducted
immediately and showed that 120 of 250 respondents were aware of
the client’s product. Does the data support the position that the new
advertising campaign has provided an increased awareness of the
client’s product? Assume a 95% confidence level.
Hypothesis Test for 𝑝1 − 𝑝2
60 120
Example 4. 𝑝𝐵ҧ = = .40; 𝑝𝐴ҧ = = .48; 𝛼 = 0.05
150 250
a. Formulate 𝐻0 & 𝐻𝑎
b. Construct a 95% interval estimate
c. Determine the test statistic value
d. Find the p-value & critical value
e. What is your decision & conclusion?
Hypothesis Test for 𝑝1 − 𝑝2
60 120
Example 4. 𝑝ҧ𝐵 = = .40; 𝑝𝐴ҧ = = .48; 𝛼 = 0.05
150 250
a. 𝐻0 : 𝑝𝐴 − 𝑝𝐵 ≤ 0; 𝐻𝑎 : 𝑝𝐴 − 𝑝𝐵 > 0
.48 .52 .40 .60
b. . 48 − .40 ± 1.96 250
+
150
= −.02 𝑡𝑜 0.18
60+120 .48−.40
c. 𝑝 = 150+250
= .45; 𝑧 =
1 1
= 1.56
.45(1−.45) 250+150
Intermediate Calculations
Group 1 Proportion 0.48
Group 2 Proportion 0.4
Difference in Two Proportions 0.08
Average Proportion 0.4500
Z Test Statistic 1.5570
Two-Tail Test
Lower Critical Value -1.9600
Upper Critical Value 1.9600
p-Value 0.1195
Do not reject the null hypothesis
END OF LECTURE