οΊPlease Subscribe to this Channel for more solutions and lectures
http://www.youtube.com/onlineteaching
Chapter 9: Inferences from Two Samples
9.3 Two Means, Two Dependent Samples, Matched Pairs
2. Chapter 9: Inferences from Two Samples
9. 1 Two Proportions
9.2 Two Means: Independent Samples
9.3 Two Dependent Samples (Matched Pairs)
9.4 Two Variances or Standard Deviations
2
Objectives:
β’ Test the difference between two proportions.
β’ Test the difference between sample means, using the z test.
β’ Test the difference between two means for independent samples, using the t test.
β’ Test the difference between two means for dependent samples.
β’ Test the difference between two variances or standard deviations.
3. 1. The sample data are dependent (matched pairs).
2. The matched pairs are a simple random sample.
3. Either or both of these conditions are satisfied: The number of pairs of
sample data is large (n > 30) or the pairs of values have differences that are
from a population having a distribution that is approximately normal. These
methods are robust against departures for normality, so the normality
requirement is loose.
3
9.3 Two Means: Two Dependent Samples (Matched Pairs)
1. Verify that the sample data consist of dependent samples (or matched pairs)
2. Find the difference d for each pair of sample values.
3. Find π & π π
4. For hypothesis tests and confidence intervals, use the same t test procedures used for a single
population mean.
5. Because the hypothesis test and confidence interval in this section use the same distribution and
standard error, they are equivalent in the sense that they result in the same conclusions.
4. 4
Will a personβs cholesterol level change if the diet is supplemented by a certain
mineral? Six subjects were pretested, and then they took the mineral supplement for a
2-month period. The results follow in the table. (Cholesterol level is measured in mg /
dL) a) Can it be concluded that the cholesterol level has been changed at Ξ± = 0.10?
Assume the variable is approximately normally distributed. b) Find the 90% confidence
interval for the difference between the means.
Before (ππ) 210 235 208 190 172 244
After (ππ) 190 170 210 188 173 228
Difference d
Before (X1) After (X2) D = X1 β X2 D2
210
235
208
190
172
244
190
170
210
188
173
228
20
65
β2
2
β1
16
400
4225
4
4
1
256
Ξ£ D = 100 Ξ£ D2 = 4890
π· =
π·
π
π π· =
π π·2 β ( π·)2
π(π β 1)
=
6 β 4890 β 1002
6 β 5
= 25.3903
π =
π
π π π· =
(π β π)2
π β 1
=
π π2 β ( π)2
π(π β 1)
TI Calculator:
How to enter data:
1. Stat
2. Edit
3. ClrList π³π & π³π
4. Type in your data in
π³π & π³π
5. π³π β π³π
6. Store in π³π
7. Enter
TI Calculator:
To get the Mean, SD, 5-
number summary
1. Stat
2. Calc
3. Select 1 for 1 variable
4. Type: L3 (second 3)
5. Calculate
=
100
6
= 16.667
Example 1
5. 5
Will a personβs cholesterol level change β¦.b) Find the 90%
confidence interval for the difference between the means.
Step 3: CV: Ξ± = 0.1, df= 6 β 1 = 5
Step 1:
H0: ΞΌD = 0 and H1: ΞΌD οΉ 0 (claim), 2TT
Before (ππ) 210 235 208 190 172 244
After (ππ) 190 170 210 188 173 228
Difference d π· = 16.667, π π· = 25.3903
Step 2:π»πΊ:
π‘ =
π· β ππ·
π π·
π
=
16.667 β 0
25.3903
6
= 1.6079
Step 4: Decision:
a. Do not reject H0
b. The claim is False
c. There is not sufficient
evidence to support the
claim that the mineral
changes a personβs
cholesterol level.
π‘ =
π β ππ
π π
π
TI Calculator:
Matched pair: T β Test
1. Tests
2. T β Test
3. Data
4. Enter ππ =0, List:
π³π = π³π β π³π, Freq:1
5. Choose RTT, LTT, or
2TT
6. Calculate
β π‘ = Β±2.015
π =
π
π
, ππ = π β 1
Example 1 Test
6. 6
Will a personβs cholesterol level change β¦.b) Find the 90%
confidence interval for the difference between the means.
Before (ππ) 210 235 208 190 172 244
After (ππ) 190 170 210 188 173 228
Difference d
π· = 16.667,
π π· = 25.3903
β π)πΈ = 2.015 β
25.3903
6
β 16.667 Β± 20.887
β4.22 < ππ· < 37.554
= 20.887
Since 0 is contained in the interval, the decision is to not reject the
null hypothesis H0: ΞΌD = 0.
π Β± πΈ
πΈ = π‘πΌ
2
π π
π
TI Calculator:
Matched pair: T β Interval
1. Tests
2. T β Interval
3. Data
4. Enter ππ =0, List: π³π(πππππ ππ ππ =
π³π β π³π), Freq:1
5. Calculate
CV: π‘ = Β±2.015
Example 1 CI
7. 7
Data lists ages of actresses when they won Oscars in the category of Best Actress, along with the ages of
actors when they won Oscars in the category of Best Actor. The ages are matched according to the year
that the awards were presented. This is a small random selection of the available data so that we can better
illustrate the procedures of this section. Use the sample data with a 0.05 significance level to test the
claim that for the population of ages of Best Actresses and Best Actors, the differences have a mean less
than 0. Assume the variable is approximately normally distributed.
Example 2
H0: Β΅d = 0, H1: Β΅d < 0, claim, LTT
Calculate: π = β10.2, π π = 14.7
Actress (years) 28 28 31 29 35
Actor (years) 62 37 36 38 29
Difference d β34 β9 β5 β9 6
CV: Ξ± = 0.05, ππ = 5 β 1 = 4
β π‘ = β2.132
=
β10.2
14.7/ 5
= β1.557
Decision:
a. Do not reject H0
b. The claim is False
c. There is not sufficient evidence to support the claim
that for the population of ages of Best Actresses and
Best Actors, the differences have a mean less than 0.
(There is not sufficient evidence to conclude that Best
Actresses are generally younger than Best Actors.)
Step 1: H0 , H1, claim & Tails
Step 2: TS Calculate (TS)
Step 3: CV using Ξ±
Step 4: Make the decision to
a. Reject or not H0
b. The claim is true or false
c. Restate this decision: There is / is not
sufficient evidence to support the claim
thatβ¦
d.f. = π β 1, π =
π
π
π‘ =
π β ππ
π π
π
π π· =
(π β π)2
π β 1
=
π π2 β ( π)2
π(π β 1)
π Β± πΈ πΈ = π‘πΌ
2
π π
π
TS: π‘ =
πβππ
π π
π
8. Data lists ages of actresses when they won Oscars in the category of Best Actress, along with the ages of
actors when they won Oscars in the category of Best Actor. The ages are matched according to the year
that the awards were presented. This is a small random selection of the available data so that we can better
illustrate the procedures of this section. Use the sample data with a 0.05 significance level to test the
claim that for the population of ages of Best Actresses and Best Actors, the differences have a mean less
than 0. Assume the variable is approximately normally distributed. Construct a 90% confidence interval
estimate of Β΅d, which is the mean of the age differences
8
Example 2: P-Value & CI
Calculate: π = β10.2, π π = 14.7
P-Value Method:
T-distribution: the row with df
= 4 TS: t = β1.552
corresponds to an βArea in
One Tailβ that is greater than
0.05 β P-value > 0.05
Technology: P-value = 0.0973.
Actress (years) 28 28 31 29 35
Actor (years) 62 37 36 38 29
Difference d β34 β9 β5 β9 6
πΈ = 2.132
14.7
5
= 14.015853
β10.2 β 14.0159 < ππ < β10.2 + 14.0159
β24.2 < ππ· < 3.8
Since 0 is contained in the interval, the decision is to not reject the null
hypothesis H0: ΞΌD = 0. We have 90% confidence that the limits of β24.2
years and 3.8 years contain the true value of the mean of the age differences.
d.f. = π β 1, π =
π
π π‘ =
π β ππ
π π/ π
π Β± πΈ πΈ = π‘πΌ
2
π π
π
9. 9
A sample of nine local banks shows their deposits (in billions of dollars) 3 years ago and their deposits (in
billions of dollars) today. At a 0.05, can it be concluded that the average in deposits for the banks is
greater today than it was 3 years ago (was the average deposits less 3 years ago)? Use Ξ± = 0.05.
Example 3
H0: ΞΌD = 0 and H1: ΞΌD < 0 , claim, LTT
Calculate: π & π π
π = β1.081, π π = 1.937
CV: Ξ± = 0.05, ππ = 9 β 1 = 8
β π‘ = β1.860
=
β1.081
1.937/ 9
= β1.674
Decision:
a. Do not reject H0
b. The claim is False
c. There is not enough evidence to show that the
deposits have increased over the last 3 years.
Step 1: H0 , H1, claim & Tails
Step 2: TS Calculate (TS)
Step 3: CV using Ξ±
Step 4: Make the decision to
a. Reject or not H0
b. The claim is true or false
c. Restate this decision: There is / is not
sufficient evidence to support the claim
thatβ¦
d.f. = π β 1, π =
π
π
π‘ =
π β ππ
π π/ π
π π· =
(π β π)2
π β 1
=
π π2 β ( π)2
π(π β 1)
π Β± πΈ πΈ = π‘πΌ
2
π π
π
TS: π‘ =
πβππ
π π/ π