Professional Documents
Culture Documents
Hypothesis
and Confidence Intervals
𝑥1 −𝑥2 − (𝜇1 − 𝜇2 )
z=
𝜎1 2 𝜎2 2
+
𝑛1 𝑛2
4
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Known)
Two-Sided / Two-Tailed Test
5
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Known)
Two-Sided / Two-Tailed Test
6
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Known)
CONFIDENCE INTERVAL FOR THE
DIFFERENCE OF BETWEEN MEANS
7
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Unknown)
EQUAL VARIANCES
𝑥1 −𝑥2 − (𝜇1 − 𝜇2 )
Formula: 𝑡 = 1 1
𝑆𝑝 +
𝑛1 𝑛 2
𝑆1 2 𝑛1 − 1 + 𝑆2 2 (𝑛2 − 1)
𝑆𝑝 2
= ;
𝑛1 + 𝑛2 − 2
(pooled variance)
𝑣 = 𝑛1 + 𝑛2 − 2 (degrees of
freedom, dof)
8
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Unknown)
EQUAL VARIANCES 𝑆𝑝2 =
𝑆1 2 𝑛1 − 1 + 𝑆2 2 (𝑛2 − 1)
;
𝑛1 + 𝑛2 − 2
𝑥1 −𝑥2 − (𝜇1 − 𝜇2 )
Formula: 𝑡 = (pooled variance)
1 1
𝑆𝑝 +
𝑛1 𝑛2
𝑣 = 𝑛1 + 𝑛2 − 2 (degrees of
freedom, dof)
10
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Unknown)
UNEQUAL VARIANCES
11
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Unknown)
CONFIDENCE INTERVAL FOR THE
DIFFERENCE BETWEEN TWO MEANS
12
Two-Sample Hypothesis Test Concerning Mean: (σ1 and σ2 Unknown)
CONFIDENCE INTERVAL FOR THE
DIFFERENCE BETWEEN TWO MEANS
13
Two-Sample Hypothesis Test Concerning Mean: Paired t-test
PAIRED OBSERVATION
Use this if there is one sample and test by two different methods:
if we split the sample
if we paired the sample
ത 𝑑0
𝑑−
Formula: 𝑡= 𝑆𝑑
ൗ 𝑛
14
12
Two-Sample Hypothesis Test Concerning Mean: Paired t-test
PAIRED OBSERVATION Students Pre-test Post test d
ത 𝑑0
𝑑− 1 58 63
Formula: 𝑡= 𝑆𝑑 2 49 46
ൗ 𝑛 3 64 59
Problem: 4 47 50
To test the effectiveness of the teaching 5 56 60
method, a random sample of students 6 60 62
were taken. Their scores before (pre-test) 7 44 48
and scores after (post test) the teaching 8 37 34
9 52 52
process were recorded as follows:
10 59 58
Test an appropriate hypothesis for this data
using 0.01 level of significance.
15
Two-Sample Hypothesis Test Concerning Mean: Paired t-test
PAIRED OBSERVATION
ത 𝑑0
𝑑−
Formula: 𝑡= 𝑆𝑑
ൗ 𝑛
Problem:
To test the effectiveness of the teaching
method, a random sample of students
were taken. Their scores before (pre-test)
and scores after (post test) the teaching
process were recorded as follows:
Test an appropriate hypothesis for this data
using 0.01 level of significance.
16
Two-Sample Hypothesis Test Concerning Mean: Paired t-test
CONFIDENCE INTERVAL: PAIRED OBSERVATION
Two-Sample Hypothesis Test Concerning Mean: Paired t-test
CONFIDENCE INTERVAL: PAIRED OBSERVATION
Two-Sample Hypothesis Test Concerning Variances
TEST OF EQUALITY OF VARIANCES
For independent random samples of size n1 and n2, respectively, from the two populations, the f-
value for testing 𝜎1 2 = 𝜎2 2 is the ratio
𝒔𝟏 𝟐
f=
𝒔𝟐 𝟐
Critical Region:
One-sided alternatives:
For 𝜎1 2 < 𝜎2 2 , f < f1-α (υ1, υ2 )
For 𝜎1 2 > 𝜎2 2 f > f1-α (υ1, υ2 )
Two-sided alternative: 𝜎1 2 ≠ 𝜎2 2 , the critical regions is f < f1-α/2 (υ1, υ2 ) or f > fα/2 (υ1, υ2 ).
Two-Sample Hypothesis Test Concerning Variances
𝒔𝟏 𝟐
TEST OF EQUALITY OF VARIANCES f=
𝒔𝟐 𝟐
Given Data: Hypothesis:
nCF = 25 nAF = 25 H0 : 𝜎1 2 = 𝜎2 2
𝐻1 : 𝜎1 2 ≠ 𝜎2 2
σCF = 1.5% σAF = 1.25%
𝑠 2 2 = 6,147,935.6 n2 = 12
Hypothesis:
𝐻0 : 𝜎1 2 = 𝜎2 2 𝐻1 : 𝜎1 2 ≠ 𝜎2 2
𝒔𝟏 𝟐
Solution: f =
𝒔𝟏 𝟐
Is it a correct assumption, 𝜎 2 1 ≠ 𝜎 2 2?
16
Two-Sample Hypothesis Test Concerning Variances
𝒔𝟏 𝟐
TEST OF EQUALITY OF VARIANCES f=
𝒔𝟐 𝟐
Given Data: α = 0.05
𝑠 2 1 = 62,005,060 n1 = 16
𝑠 2 2 = 6,147,935.6 n2 = 12
Hypothesis:
𝐻0 : 𝜎1 2 = 𝜎2 2 𝐻1 : 𝜎1 2 ≠ 𝜎2 2
𝒔𝟏 𝟐
Solution: f =
𝒔𝟏 𝟐
22
Two-Sample Hypothesis Test Concerning Variances
𝒔𝟏 𝟐
TEST OF EQUALITY OF VARIANCES f=
𝒔𝟐 𝟐
Two-sided alternative: 𝜎1 2 ≠ 𝜎2 2 ,
the critical regions is f < f1-α/2 (υ1, υ2 ) or
f > fα/2 (υ1, υ2 ).
Two-Sample Hypothesis Test Concerning Two Proportions
Given Data:
xU = 63 xSU = 59
nU = 100 nSU = 125
α = 0.01
Hypothesis:
H0 : pU = pSU H0 : pU - pSU = 0
H1 : pU ≠ pSU H1 : pU - pSU ≠ 0