Course Material 7 Hypothesis Testing Two Populations
Course Material 7 Hypothesis Testing Two Populations
https://iwannagetphysical.blogspot.com/2019/07/friday-funny-1622-before-and-after.html?m=1
Determine the
TESTING: TWO
POPULATIONS
procedures in hypothesis
testing involving two
populations.
Solve problems involving
hypothesis testing of two
means.
Identify when to use z-
test or t-test in
hypothesis testing
involving two means.
https://www.pinterest.ph/pin/89298005081195023/
Facebook
3 Pre-Activity
3 3
4 4 Lesson Summary
5 5 25
6 6
7 7
8 8 26 References
9 9
10 10
H 0 : 1 2
H1 : 1 2 or 1 2 or 1 2
zcomp
X 1 X 2 1 2
( Formula 1)
12 22
n1 n2
zcomp
X 1 X 2 1 2
( Formula 2 )
s12 s2 2
If the population standard
n1 n2
deviation 𝜎 is unknown,
use Formula 2.
where
1 , 2 population means
X 1 , X 2 sample means
1 , 2 population standard deviation
s1 , s2 sample standard deviation
n1 , n2 sample size
Examples:
a. A businessman wants to buy a new property for his next
business. He compares the price of townhouses in Quezon
City and in Makati City and claim that there is a difference in
prices. The gathered data is shown below. Is there enough
evidence to say that there is a difference between the price of
townhouses in Quezon City and in Makati City? Use 𝛼 = 0.05.
Solution:
H 0 : 1 2
H1 : 1 2 (claim)
𝛼 = 0.05
𝑧𝑐𝑟𝑖𝑡 = ±1.960
Step 5: Solve for the computed value 𝑧𝑐𝑜𝑚𝑝 . Since the given in the problem is
the standard deviation of the
zcomp
X 1 X 2 1 2 sample, we use Formula 2.
s12 s2 2
n1 n2
zcomp
2,100, 000 2,320, 000 0
255, 000 315, 000
2 2
zcomp 3.752
H 0 : 1 2
H1 : 1 2 (claim)
Since the symbol in the alternative hypothesis is " > " , then
we use a right-tailed test.
𝛼 = 0.01
𝑧𝑐𝑟𝑖𝑡 = 2.326
zcomp
X 1 X 2 1 2
s12 s2 2
n1 n2
zcomp
96 92 0
10 6
2 2
35 42
zcomp
4 0
2.85714 0.85714
4
zcomp
1.92725
zcomp 2.075
Hence, there is no enough evidence for the claim that the male
employees is more productive than the female employees.
H 0 : 1 2
H1 : 1 2 or 1 2 or 1 2
Step 4: Calculate the degrees of freedom (𝑑𝑓 = 𝑛1 + 𝑛2 − 2). Check Course Material 6
Determine the critical value 𝑡𝑐𝑟𝑖𝑡 . for the table for Critical
Values for T-test.
tcomp
X 1 X 2 1 2
n1 1 s12 n2 1 s2 2 1 1
n1 n2 2 n1 n2
where
1 , 2 population means
X 1 , X 2 sample means
1 , 2 population standard deviation
s1 , s2 sample standard deviation
n1 , n2 sample size
Examples:
H 0 : 1 2
H1 : 1 2 (claim)
0.05
𝑑𝑓 = 𝑛1 + 𝑛2 − 2
𝑑𝑓 = 12 + 15 − 2
𝑑𝑓 = 25
2700
tcomp
620200 0.15
2700
tcomp 8.852
305.008
Reject 𝐻0 .
D D
tcomp
sD
n
Examples:
a. The management of ABC Company designed an incentive
plan for their employees. They randomly choose 9 employees
and record their weekly sales before and after the incentive
plan is implemented.
Employee 1 2 3 4 5
Before 3,000 2,500 4,100 3,700 1,900
After 4,100 2,250 4,200 3,100 2,400
Employee 6 7 8 9
Before 2,500 1,200 2,500 3,000
After 3,200 2,300 1,600 3,000
H 0 : D 0
H1 : D 0 (claim)
right-tailed test
𝛼 = 0.05
𝑑𝑓 = 9 − 1 = 8
𝑡𝑐𝑟𝑖𝑡 = 1.860
D
D
n
1, 750
D 194.44
9
D
2
D 2
n
sD
n 1
1, 750
2
3, 062,500
sD 9
9 1
2, 721, 722.222
sD
8
sD 583.28
D D
tcomp
sD
n
194.44 0
tcomp
583.28
9
194.44
tcomp
194.427
tcomp 1.00
H 0 : 1 2
H1 : 1 2
Student 1 2 3 4 5
Pre-test 35 25 27 34 15
Post-test 38 27 50 35 26
Student 6 7 8 9 10
Pre-test 21 18 37 25 35
Post-test 27 17 24 30 25
I. Determine if the given problem is solvable by Z-test or T-test. Also, identify if the given problem
samples are independent or dependent. Then, solve the problem.
1. A researcher wants to compare the hourly rates of delivery drivers in two major cities in Metro
Manila. He randomly selects drivers from both cities and records their hourly rates (in pesos). It is
shown below:
Quezon
350 315 275 330 300 270 255 315 310
City
Makati
400 275 315 350 380 410 365 280 340
City
Is there sufficient evidence to say that the hourly rates between the two cities are not the same, at 𝛼 =
0.05?
Employee 1 2 3 4 5 6 7 8
Before 5 8 11 12 5 7 8 9
After 7 11 7 9 14 11 12 9
Employee 9 10 11 12 13 14 15
Before 11 12 6 7 9 12 13
After 10 13 9 11 9 13 15
Contributors:
Aserit, Pia Lorraine O.
Ignacio, Rinalyn L.
Rivera, Rey-Ann B.