Chapter 3 SSCM1103
Chapter 3 SSCM1103
Chapter 3 SSCM1103
𝜎1 2 𝜎2 2
• Solve for (𝜇1 −𝜇2 );(𝜇1 −𝜇2 ) = (𝑋ത1 − 𝑋ത2 ) − 𝑍( + )
𝑛1 𝑛2
The 100(1-𝛼)% confidence interval for the population mean 𝜇;
𝑃 𝐿 ≤ (𝜇1 −𝜇2 ) ≤ 𝑈 = 1 − 𝛼 with
𝜎1 2 𝜎2 2 𝜎1 2 𝜎2 2
L is(𝑋ത1 − 𝑋ത2 ) − 𝑍( + ) and U is(𝑋ത1 − 𝑋ത2 ) + 𝑍( + )
𝑛1 𝑛2 𝑛1 𝑛2
• Three cases we need to consider
1. When the population variances are known
The 100(1-𝛼)% CI for the difference of population means(𝜇1 −𝜇2 ) is
𝝈𝟏 𝟐 𝝈𝟐 𝟐 𝝈𝟏 𝟐 𝝈𝟐 𝟐
(ഥ ഥ𝟐 ) − 𝒛𝜶
𝒙𝟏 − 𝒙 + ≤ (𝝁𝟏 −𝝁𝟐 ) ≤ (ഥ ഥ𝟐 ) + 𝒛𝜶/𝟐
𝒙𝟏 − 𝒙 +
𝟐 𝒏𝟏 𝒏𝟐 𝒏𝟏 𝒏𝟐
2. When the population variances are unknown and𝒏𝟏 , 𝒏𝟐 ≥ 𝟑𝟎
The 100(1-𝛼)% CI for the difference of population mean (𝜇1 −𝜇2 ) is
a) 𝜎12 = 𝜎22
𝟏 𝟏 𝟏 𝟏
(ഥ
𝒙𝟏 − 𝒙ഥ𝟐 ) − 𝒛𝜶 𝒔𝒑 + ≤ (𝝁𝟏 −𝝁𝟐 ) ≤ (ഥ ഥ𝟐 ) + 𝒛𝜶/𝟐 𝒔𝒑
𝒙𝟏 − 𝒙 +
𝟐 𝒏𝟏 𝒏𝟐 𝒏𝟏 𝒏𝟐
𝑛1 −1 𝑠12 + 𝑛2 −1 𝑠22
Where 𝒔𝒑 =
𝑛1 +𝑛2 −2
b) 𝜎12 ≠ 𝜎22
𝒔𝟏 𝟐 𝒔 𝟐 𝟐 𝒔𝟏 𝟐 𝒔𝟐 𝟐
(ഥ ഥ 𝟐 ) − 𝒛𝜶
𝒙𝟏 − 𝒙 + ≤ (𝝁𝟏 −𝝁𝟐 ) ≤ (ഥ ഥ𝟐 ) + 𝒛𝜶/𝟐
𝒙𝟏 − 𝒙 +
𝟐 𝒏𝟏 𝒏𝟐 𝒏𝟏 𝒏𝟐
𝑛1 −1 𝑠12 + 𝑛2 −1 𝑠22
Where 𝒔𝒑 =
𝑛1 +𝑛2 −2
b) 𝜎12 ≠ 𝜎22
𝒔𝟏 𝟐 𝒔𝟐 𝟐 𝒔𝟏 𝟐 𝒔𝟐 𝟐
(ഥ ഥ𝟐 ) − 𝒕𝜶,𝝂
𝒙𝟏 − 𝒙 + ≤ (𝝁𝟏 −𝝁𝟐 ) ≤ (ഥ ഥ𝟐 ) + 𝒕𝜶,𝝂
𝒙𝟏 − 𝒙 +
𝟐 𝒏𝟏 𝒏𝟐 𝟐 𝒏𝟏 𝒏𝟐
𝟐 𝟐 𝟐
𝒔𝟏 𝒔𝟐
+
𝒏𝟏 𝒏𝟐
Where 𝝂 = 𝟐 𝟐 𝟐
𝒔𝟐
𝟏 𝒔𝟐
𝒏𝟏 𝒏𝟐
+
𝒏𝟏 −𝟏 𝒏𝟐 −𝟏
Exercises
• A car reviewer is comparing the total repair costs incurred during the
first three years on two mid-sized cars, the Adria and the Wanem.
Random samples of 16 Adria and nine Wanem are taken. All 25 cars
are three years old and have similar mileages. The mean of repair
costs for the 16 Adria cars is RM5,000 for the first three years with a
standard deviation of RM800.For the nine Wanem cars, the mean is
RM7,700 with a standard deviation of RM1,000. Assume that the
repair costs follow a normal distribution with the same population
variance. Construct a 90% confidence interval for the difference
between the two populations means.
𝟏 𝟏 𝟏 𝟏
(ഥ ഥ𝟐 ) − 𝒕𝜶,𝒏
𝒙𝟏 − 𝒙 +𝒏 −𝟐 𝒔𝒑 + ≤ (𝝁𝟏 −𝝁𝟐 ) ≤ (ഥ ഥ𝟐 ) 𝒕𝜶,𝒏
𝒙𝟏 − 𝒙 +𝒏 −𝟐 𝒔𝒑 +
𝟐 𝟏 𝟐 𝒏𝟏 𝒏𝟐 𝟐 𝟏 𝟐 𝒏𝟏 𝒏𝟐
𝑛1 −1 𝑠12 + 𝑛2 −1 𝑠22
Where 𝒔𝒑 =
𝑛1 +𝑛2 −2
• A process engineer is comparing two different etching solutions for
removing silicon from the back of wafers. The etch rates follow a
normal distribution and have equal population variances of 0.352 .
Below are the observed etch rates from 10 wafers for each solution.
Solution 1 Solution 2
9.7 10.1
9.3 10.5
9.1 10.6
9.5 10.3
10.0 10.3
10.5 9.9
10.2 10.1
9.9 10.2
10.3 10.3
10.1 10.1
• Find a 90% for the difference in mean etch rates.
• Construct CI for the difference in mean etch rates if we do not know
the population variances and assume that both populations have an
unequal variances.
Confidence Interval for Proportion
• The best estimator for population proportion 𝜋 is the sample mean 𝑃
• As we have learnt in the previous chapter, the sampling distribution of
𝜋(1−𝜋)
sample proportion, P~𝑁 𝜋,
𝑛 𝑃−𝜋
• Thus, we transform to Z distribution using this formula; 𝑍 =
𝜋(1−𝜋)
𝑛
𝜋(1−𝜋)
• Solve for 𝜋;𝜋 = 𝑃 − 𝑍 . Since the population proportion is
𝑛
unknown, thus replace 𝜋 with P instead.
𝜋1 (1−𝜋1 ) 𝜋2 (1−𝜋2 )
• Solve for(𝜋1 − 𝜋2 );(𝜋1 − 𝜋2 ) = (𝑃1 − 𝑃2 ) − 𝑍 + . Since the
𝑛1 𝑛2
population proportion is unknown, thus replace 𝜋 with P instead.
• The 100(1-𝛼)% confidence interval for the difference of population
proportions(𝜋1 − 𝜋2 );
𝑃 𝐿 ≤ (𝜋1 − 𝜋2 ) ≤ 𝑈 = 1 − 𝛼 with
𝑃1 (1−𝑃1 ) 𝑃2 (1−𝑃2 ) 𝑃1 (1−𝑃1 ) 𝑃2 (1−𝑃2 )
L is (𝑃1 −𝑃2 ) − 𝑍 + and U is (𝑃1 −𝑃2 ) + 𝑍 +
𝑛1 𝑛2 𝑛1 𝑛2
• Thus,
𝑃1 (1 − 𝑃1 ) 𝑃2 (1 − 𝑃2 ) 𝑃1 (1 − 𝑃1 ) 𝑃2 (1 − 𝑃2 )
(𝑃1 −𝑃2 ) − 𝑍 + ≤ (𝜋1 − 𝜋2 ) ≤ (𝑃1 −𝑃2 ) + 𝑍 +
𝑛1 𝑛2 𝑛1 𝑛2
Exercise
• A survey conducted by independent Engineering Education Research
Unit found that among teenagers aged 17 to 19, 20% of school girls
and 25% of school boys wanted to study in engineering discipline.
Suppose that these percentages are based on random samples of 501
school girls and 500 school boys. Determine a 90% CI for the
difference between the proportions of all school girls and all school
boys who would like to study in engineering discipline.
Confidence Interval for Variance
• Involves Chi-Square Distribution.
• The graph is skewed to the right and takes only positive values
2
• 𝜒𝛼,𝜐 denotes the number along the horizontal axis that cuts off to its
left an area of 𝛼 under the chi-square distribution with 𝜐 degrees of
freedom.
• So the probability 𝑃 𝜒 2 > 𝜒𝛼,𝜐
2
= 𝛼 can be found from the statistical
table.
𝑛−1 𝑠2
• Recall 𝜒 2 = is distributed as 𝜒 2 with 𝑛 − 1 degrees of
𝜎2
freedom.
• To construct the confidence interval;
2 2
𝑃 𝜒1−𝛼/2 ≤ 𝜒 2 ≤ 𝜒𝛼/2 =1−𝛼
2 𝑛 − 1 𝑠2 2
𝑃 𝜒1−𝛼/2 ≤ 2
≤ 𝜒𝛼/2 = 1 − 𝛼
𝜎
𝒏−𝟏 𝒔𝟐 𝒏−𝟏 𝒔𝟐
≤ 𝝈𝟐 ≤ .
𝝌𝟐𝜶 𝝌𝟐 𝜶
,𝒏−𝟏 𝟏− ,𝒏−𝟏
𝟐 𝟐
Exercises
• A random sample of 13 bolts is selected and the inside diameter is
measured. The sample standard deviation of the bolt inside diameter
is 0.018mm. Construct a 90% CI for the standard deviation.
• An optical firm is concerned about the variability of the refractive
index of a typical glass when its employee grinds it into lenses. The
refractive index is approximately normally distributed. A random
sample of 15 glasses is drawn from a large shipment which give a
variance of 1.5 × 10−4 refractive index. Construct a 95% CI for the
standard deviation of refractive index of all glasses.
Confidence Interval for Variances
• Involves F distribution.
• It is used in two-sample situations to draw inferences about the
population variances.
• Let say there are two independent random variables U and V having
chi-square distribution with v1 and v2 degrees of freedom,
respectively. Then
𝑈/𝜈1
𝐹=
𝑉/𝜈2
• Then random variable F~𝐹𝛼,𝜈1 𝜈2 with 𝑃 𝐹 > 𝐹𝛼,𝜈1 𝜈2 = 𝛼 , can be
found from the statistical table.
• The sampling distribution of F statistics is
𝑆22 /𝜎22
F= 2 2
𝑆1 /𝜎1
is distributed as 𝐹 with 𝑛2 − 1 and 𝑛1 − 1 degrees of freedom.
• Thus, the confidence interval
𝑃 𝑓1−𝛼/2,𝑛2 −1,𝑛1 −1 ≤ 𝐹 ≤ 𝑓𝛼/2,𝑛2 −1,𝑛1 −1 = 1 − 𝛼
𝑆22 /𝜎22
𝑃 𝑓1−𝛼/2,𝑛2 −1,𝑛1 −1 ≤ 2 2 ≤ 𝑓𝛼/2,𝑛2 −1,𝑛1 −1 = 1 − 𝛼
𝑆1 /𝜎1
𝟏
Using 𝑭𝟏−𝜶/𝟐,𝒏𝟏 −𝟏,𝒏𝟐 −𝟏 =
𝑭𝜶/𝟐,𝒏𝟐 −𝟏,𝒏𝟏 −𝟏