Chap 010
Chap 010
Chap 010
McGraw-Hill/Irwin Copyright © 2015 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 10
Two-Sample Hypothesis Tests
Chapter Contents
10-2
Chapter 10
Two-Sample Hypothesis Tests
10-3
Chapter 10
Two-Sample Hypothesis Tests
proportions.
LO10-7: Construct a confidence interval for π1− π2
LO10-8: Carry out a test of two variances using the
F distribution.
10-4
Chapter 10
10.1 Two-Sample Tests
10-5
Chapter 10
10.1 Two-Sample Tests
10-6
Chapter 10
10.1 Two-Sample Tests
Test Procedure
10-7
Chapter 10
LO10-1 10.2 Comparing Two Means:
Independent Samples
LO10-1: Recognize and perform a test for two means.
Format of Hypotheses
10-9
Chapter 10
LO10-2 10.2 Comparing Two Means:
Independent Samples
Case 2: Unknown Variances, Assumed Equal
• Since the variances are unknown, they must be estimated
and the Student’s t distribution is used to test the means.
• Assuming the population variances are equal, s12 and s22
can be used to estimate a common pooled variance sp2.
10-10
Chapter 10
LO10-2 10.2 Comparing Two Means:
Independent Samples
Case 3: Unknown Variances, Assumed Unequal
10-11
Chapter 10
LO10-2 10.2 Comparing Two Means:
Independent Samples
Case 3: Unknown Variances, Assumed Unequal
• Welch-Satterthwaite test
• If the population variances 12 and 22 are known, then use
the normal distribution.
• If population variances are unknown and estimated using
s12 and s22, then use the Students t distribution
10-13
Chapter 10
10.2 Comparing Two Means:
Independent Samples
10-14
Chapter 10
10.2 Comparing Two Means:
Independent Samples
Steps in Testing Two Means (See text for examples)
• Step 1: State the hypotheses
• Step 2: Specify the decision rule
Choose (the level of significance) and determine the critical
value(s).
• Step 3: Calculate the Test Statistic
• Step 4: Make the decision Reject H0 if the test statistic falls in the
rejection region(s) as defined by the critical value(s).
• Step 5: Take action based on the decision.
10-15
Chapter 10
10.2 Comparing Two Means:
Independent Samples
10-16
Chapter 10
10.2 Comparing Two Means:
Independent Samples
Large Samples
• For unknown variances, if both samples are large (n1 30 and
n2 30) and the population is not badly skewed, use the following
formula with appendix C.
10-17
Chapter 10
10.2 Comparing Two Means:
Independent Samples
Caution: Three Issues
2. Are the sample sizes large (n 30)?
If samples are small, the mean is not a reliable indicator of central
tendency and the test may lack power.
3. Is the difference important as well as significant?
A small difference in means or proportions could be significant if
the sample size is large.
10-18
Chapter 10
LO10-3 10.3 Confidence Interval for the
Difference of Two Means 1 - 2
LO10-3: Construct a confidence interval for 1 − 2
10-19
Chapter 10
LO10-3 10.3 Confidence Interval for the
Difference of Two Means 1 - 2
LO10-3: Construct a confidence interval for 1 − 2
10-20
Chapter 10
LO10-3 10.3 Confidence Interval for the
Difference of Two Means 1 - 2
10-21
Chapter 10
LO10-3 10.3 Confidence Interval for the
Difference of Two Means 1 - 2
LO10-3: Construct a confidence interval for 1 − 2
10-22
Chapter 10
LO10-4 10.4 Comparing Two Means:
Paired Samples
LO10-4: Recognize paired data and be able to perform a
paired t test.
Paired Data
• Data occurs in matched pairs when the same item is
observed twice but under different circumstances.
• For example, blood pressure is taken before and after
a treatment is given.
• Paired data are typically displayed in columns.
10-23
Chapter 10
LO10-4 10.4 Comparing Two Means:
Paired Samples
Paired t Test
• Paired data typically come from a before/after
experiment.
• In the paired t test, the difference between x1 and x2 is
measured as d = x1 – x2
• The mean and standard deviation for the differences d
are given below.
10-24
Chapter 10
LO10-4 10.4 Comparing Two Means:
Paired Samples
Paired t Test
• The test statistic is just for a one-sample t-test.
10-25
Chapter 10
LO10-4 10.4 Comparing Two Means:
Paired Samples
Steps in Testing Paired Data
10-26
Chapter 10
LO10-4 10.4 Comparing Two Means:
Paired Samples
Analogy to Confidence Interval
10-27
Chapter 10
LO10-5 10.5 Comparing Two Proportions
10-28
Chapter 10
LO10-5 10.5 Comparing Two Proportions
Sample Proportions
10-29
Chapter 10
LO10-5 10.5 Comparing Two Proportions
Pooled Proportion
• If H0 is true, there is no difference between
1 and 2, so the samples are pooled (or averaged) in
order to estimate the common population proportion.
10-30
Chapter 10
LO10-5 10.5 Comparing Two Proportions
Test Statistic
10-31
Chapter 10
LO10-5 10.5 Comparing Two Proportions
Test Statistic
10-32
Chapter 10
LO10-5 10.5 Comparing Two Proportions
10-33
Chapter 10
LO10-6 10.5 Comparing Two Proportions
LO10-6: Check whether normality may be assumed for two
proportions.
Testing for Zero Difference: 1 - 2 = 0
Checking for Normality
• We have assumed a normal distribution for the statistic p1 – p2.
• This assumption can be checked.
• For a test of two proportions, the criterion for normality is n 10
and n(1 − ) 10 for each sample, using each sample proportion in
place of .
• If either sample proportion is not normal, their difference cannot
safely be assumed normal.
• The sample size rule of thumb is equivalent to requiring that each
sample contains at least 10 “successes” and at least 10 “failures.”
10-34
Chapter 10
10.5 Comparing Two Proportions
10-35
Chapter 10
LO10-7 10.6 Confidence Interval for the
Difference of Two Proportions 1 - 2
LO10-7: Construct a confidence interval for 1 - 2.
10-36
Chapter 10
LO10-8 10.7 Comparing Two Variances
LO10-8: Carry out a test of two variances using the
F distribution
Format of Hypotheses
• To test whether two population means are equal, we may also
need to test whether two population variances are equal.
10-37
Chapter 10
LO10-8 10.7 Comparing Two Variances
The F Test
• The test statistic is the ratio of the sample variances:
10-38
Chapter 10
LO10-8 10.7 Comparing Two Variances
The F Test
10-39
Chapter 10
LO10-8 10.7 Comparing Two Variances
The F Test: Critical Values
10-40
Chapter 10
LO10-8 10.7 Comparing Two Variances
The F Test: Critical Values
10-41
Chapter 10
LO10-8 10.7 Comparing Two Variances
Comparison of Variances: Two Tailed Test
10-42
Chapter 10
LO10-8 10.7 Comparing Two Variances
Comparison of Variances: Two Tailed Test
10-43
Chapter 10
LO10-8 10.7 Comparing Two Variances
10-44
Chapter 10
LO10-8 10.7 Comparing Two Variances
Comparison of Variances: One Tailed Test
10-45
Chapter 10
LO10-8 10.7 Comparing Two Variances
Folded F Test
• We can make the two-tailed test for equal variances
into a right-tailed test, so it is easier to look up the
critical values in Appendix F. This method requires that
we put the larger observed variance in the numerator,
and then look up the critical value for αy2 instead of the
chosen α.
10-46
Chapter 10
LO10-8 10.7 Comparing Two Variances
Assumptions of the F Test
• The F test assumes that the populations being sampled are
normal.
• It is sensitive to non-normality of the sampled populations.
• MINITAB reports both the F test and an alternative Levene’s test
and p-values.
10-47