Lecture - 3 (With Ink)
Lecture - 3 (With Ink)
MSC 600
Quantitative Methods
Dilcu Barnes (Email: [email protected])
• Expected Value
)
√
2 2
( 𝜎 1) ( 𝜎 2 )
𝜎 𝑥 −𝑥 = +
1 2
𝑛1 𝑛2
where: 1 = standard deviation of population 1
2 = standard deviation of population 2
n1 = sample size from population 1
n2 = sample size from population 2
Hypothesis Tests on the Difference in Means, Variances 5
Known
Null hypothesis: H0: 1 2 = 0
X1 X 2 0
Z0
Test statistic: 12 2
2
n1 n2
Confidence Interval on a Difference in Means, Variances6
Known
If and are the means of independent random samples of
sizes n1 and n2 from two independent normal populations
with known variance and , respectively, a 100(1 )
confidence interval for 1 2 is
12 22 12 22
x1 x2 z /2 1 2 x1 x 2 z / 2
n1 n2 n1 n2
12 22
1 2 x1 x2 z
n1 n2
12 22
x1 x2 z 1 2
n1 n2
Example_1 8
Sample #1 Sample #2
Par, Inc. Rap, Ltd.
Based on data from previous driving distance tests, the two population
standard deviations are known with s 1 = 15 yards and s 2 = 20 yards.
Let us develop a 95% confidence interval estimate of the difference
between the mean driving distances of the two brands of golf ball.
Solution 9
Solution 10
Example_2 11
where – gives the lower limit and + gives the upper limit of
the interval.
Two Sample t-Test 15
(n1 1) S12 ( n2 1) S 22
S 2p
n1 n2 2
The quantity
X 1 X 2 (1 2 )
T
1 1
Sp
n1 n2
s1 2.39 s2 2.98
Solution 19
Solution 20
Hypotheses Tests on the Difference in Means, Variances Unknown21
Case 2:
2 2
1 2
If H0: 1 2 0 is true, the statistic
X1 X 2 0
T0*
S12 S 22
n1 n2
n1 1 n2 1
Hypotheses Tests on the Difference in Means, Variances Unknown22
Case 2:
2 2
1 2
• Interval Estimate
√
2 2
( 𝑠1 ) ( 𝑠2 )
𝑥1 − 𝑥 2 ± 𝑡 𝛼/ 2 +
𝑛1 𝑛2
( )
2 2 2
( 𝑠1 ) (𝑠2 )
+
𝑛1 𝑛2
𝑑𝑓 =
( ) ( )
2 2 2 2
1 ( 𝑠1 ) 1 ( 𝑠2 )
+
𝑛1 − 1 𝑛1 𝑛2 − 1 𝑛2
Example_4 23
D 0
T0
Test statistic: SD / n
t0 t ,n 1
H1: D 0 Probability above t0
Null hypothesis: H : 2 2
0 1 2
H1 : 12 2
2
f 0 f /2, n1 1, n2 1 or f 0 f1 /2, n1 1, n2 1
H1 : 12 2
2
f 0 f , n1 1, n2 1
H1 : 12 2
2
f 0 f1 , n1 1, n2 1
Example_8 38
Ifs12 and
2
s2 are the sample variances of random samples
of sizes n1 and n2, respectively, from two independent
2
normal populations
1 22 with unknown variances and ,
2 2
thena1 /
100(1
2 a)% confidence interval on the ratio
is s2 2 s2
1 f1 /2, n2 1, n1 1 1 1 f /2 , n2 1, n1 1
s22 22 s22
f /2,n2 1,n1 1 f/2, n2 1, n1 1
Proportions
Suppose that two independent random samples of
and are taken from two populations, and let and
represent the number of observations that belong
to the class of interest in samples 1 and 2,
respectively. Furthermore, suppose that the
normal approximation to the binomial is applied
to each population, so the estimators of the
population proportions and have approximate
normal distributions.
Large-Sample Test on the Difference in Population 42
Proportions
We wish to test the hypotheses:
H 0 : p1 p2
H1 : p1 p2
The following test statistic is distributed
approximately as standard normal and is the basis
of the test:
Pˆ P ˆ (p p )
Z 1 2 1 2
p1 (1 p1 ) p (1 p2 )
2
n1 n2
Large-Sample Test on the Difference in Population 43
Proportions
Null hypothesis: H0: p1 p2
Pˆ1 Pˆ2
Test statistic:Z 0
1 1
Pˆ (1 Pˆ )
n1 n2
Rejection Criterion
Alternative P-Value for Fixed-Level Tests
Hypothesis
H1 : p 1 p 2 Probability above |z0| z0 > za/2 or z0 < -za/2
and
probability below -|
z0|.
P = 2[1 - (|z0|)]
Population Proportion
If and are the sample proportions of observations in two
independent random samples of sizes n1 and n2 that belong to a
class of interest, an approximate two-sided 100(1 a)%
confidence interval on the difference in the true proportions p1
p2 is
pˆ1 (1 pˆ1 ) pˆ 2 (1 pˆ 2 )
pˆ1 pˆ 2 z/2
n1 n2
pˆ1 (1 pˆ1 ) pˆ 2 (1 pˆ 2 )
p1 p2 pˆ1 pˆ 2 z/2
n1 n2