Inbound 8609162511062510069
Inbound 8609162511062510069
Inbound 8609162511062510069
Module 5
TEST OF HYPOTHESIS:
TWO SAMPLES
Prepared by:
Engr. Kristan Ian Cabaña
IE Department
Adopted by:
Engr. Lynne Ivy L. Illaga
IE Department
OUTLINE
( x1 − x2 ) − ( 1 − 2 )
Zc =
2
2
1
+ 2
n1 n2
DIFFERENCE BETWEEN MEANS, VARIANCES KNOWN
ILLUSTRATIVE EXAMPLE
( x1 − x 2 ) − ( 1 − 2 ) ( x1 − x 2 ) − ( 1 − 2 )
tc = tc =
2 2
1 1 s s
Sp + 1
+ 2
n1 n2 n1 n2
Where Pooled Estimator of Variance s2
s
2 2
+
1 2
n
1
n 2
1
+ 2
𝐷𝑒𝑔𝑟𝑒𝑒𝑠 𝑜𝑓 𝐹𝑟𝑒𝑒𝑑𝑜𝑚 = 𝑛1 + 𝑛2 − 2 n1 − 1 n2 − 1
DIFFERENCE BETWEEN MEANS, VARIANCES UNKNOWN
DIFFERENCE BETWEEN MEANS, VARIANCES UNKNOWN
ILLUSTRATIVE EXAMPLE
ILLUSTRATIVE EXAMPLE
Arsenic concentration in public drinking water supplies is a
potential health risk. An article in the Arizona Republic (2001
Issue) reported drinking water arsenic concentrations in
parts per billion (ppb) for 10 metropolitan Phoenix
communities with a sample mean of 12.5 and standard
deviation of 7.63, and 10 communities in rural Arizona with a
sample mean of 27.5 and standard deviation of 15.3.
Determine whether any difference exists in mean arsenic
concentrations. Assume that the population variances are
not the same.
COMPARING MEANS OF TWO
RELATED POPULATIONS
COMPARING MEANS OF TWO RELATED POPULATIONS
ഥ − 𝜇𝐷
𝐷
𝑧𝑐 = 𝜎
𝐷
ൗ 𝑛
σ𝑛
𝑖=1 𝐷𝑖
Where: ഥ=
𝐷
𝑛
μD = hypothesized mean difference
σD = population standard deviation of the difference scores
n = sample size
𝐷𝑖 = difference between two samples
COMPARING MEANS OF TWO RELATED POPULATIONS
ഥ − 𝜇𝐷
𝐷
𝑡𝑐 = 𝑠
𝐷
ൗ 𝑛
σ𝑛
𝑖=1 𝐷𝑖
Where: ഥ=
𝐷 2
𝑛 σ𝑛𝑖=1ሺ𝐷𝑖ഥ
− 𝐷൯
μD = hypothesized mean difference 𝑠𝐷 =
n = sample size 𝑛−1
𝐷𝑖 = difference between two samples
COMPARING MEANS OF TWO RELATED POPULATIONS
ILLUSTRATIVE EXAMPLE
A reading center claims that students will perform better on
a standardized reading test after going through the reading
course offered by their center. The table shows the reading
scores of 6 students before and after the course. At = 0.05,
is there enough evidence to conclude that the students’
scores after the course are better than the scores before the
course?
Student 1 2 3 4 5 6
Score (before) 85 96 70 76 81 78
Score (after) 88 85 89 86 92 89
COMPARING TWO POPULATION
PROPORTIONS
COMPARING TWO POPULATION PROPORTIONS
1 − 𝑃
𝑃 2 − ሺ𝑃1 − 𝑃2 )
𝑍=
ത ത 1 1
𝑃ሺ1 − 𝑃) +
𝑛1 𝑛2
WITH
x1 + x2 p1 =
x1
p2 =
x2
p=
n1 + n2 n1 n2
COMPARING TWO POPULATION PROPORTIONS
ILLUSTRATIVE EXAMPLE
A recent survey stated that male college students smoke
less than female college students. In a survey of 1245 male
students, 361 said they smoke at least one pack of cigarettes
a day. In a survey of 1065 female students, 341 said they
smoke at least one pack a day. At alpha = 0.01, can you
support the claim that the proportion of male college
students who smoke at least one pack of cigarettes a day is
lower then the proportion of female college students who
smoke at least one pack a day?
HYPOTHESIS TESTING
SUMMARY
INDEPENDENT
N Y
𝜎 or 𝜎 2 known?
Y N Y N
𝜎12 = 𝜎22 n ≥ 30?
SUMMARY
Independent RELATED
Proportions
Y N
𝜎 or 𝜎 2
1 − 𝑃
𝑃 2 − ሺ𝑃1 − 𝑃2 ) known?
𝑍=
ത 1 + 1
ത − 𝑃)
𝑃ሺ1 Y
n ≥ 30? N
𝑛1 𝑛2
ഥ − 𝜇𝐷
𝐷
𝑧𝑐 = 𝜎
𝐷
ൗ 𝑛
ഥ − 𝜇𝐷
𝐷 ഥ − 𝜇𝐷
𝐷
𝑧𝑐 = 𝑠 𝑡𝑐 = 𝑠
𝐷 𝐷
ൗ 𝑛 ൗ 𝑛
ES031 ENGINEERING DATA ANALYSIS
End of Module 5
TEST OF HYPOTHESIS:
TWO SAMPLES
Prepared by:
Engr. Kristan Ian Cabaña
IE Department
Adopted by:
Engr. Lynne Ivy L. Illaga
IE Department