Professional Documents
Culture Documents
Economics
Vũ Võ
vu.vo@ueh.edu.vn
10-1
Chapter 10
Two-Sample Hypothesis Tests
Chapter Contents
10-2
Chapter 10
Chapter Learning Objectives (LOs)
10-3
Chapter 10
Chapter Learning Objectives (LOs), continued
10-4
Chapter 10
10.1 Two-Sample Tests
What Is a Two-Sample Test?
• A two-sample test compares two sample estimates with each
other.
• A one-sample test compares a sample estimate to a non-sample
benchmark.
10-5
Chapter 10
10.1 Two-Sample Tests (continued)
Basis of Two-Sample Tests (continued)
• If the two sample statistics differ by more than the amount
attributable to chance, then we conclude that the samples came
from populations with different parameter values.
10-6
Chapter 10
10.1 Two-Sample Tests (continued, 2)
Test Procedure
10-7
Chapter 10
10.2 Comparing Two Means:
Independent Samples
• When the variances are known, use the normal distribution for the
test (assuming a normal population). The test statistic is:
10-9
Chapter 10
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued).
10-10
Chapter 10
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 2).
10-11
Chapter 10
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 3).
• 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
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 5).
10-14
Chapter 10
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 6).
10-15
Chapter 10
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 7).
10-16
Chapter 10
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 8).
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
LO10-2: Explain the assumptions underlying the
two-sample test of means (continued, 9).
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-20
Chapter 10
LO10-3: Construct a confidence interval for µ1 − µ2
(continued).
10-21
Chapter 10
LO10-3: Construct a confidence interval for µ1 − µ2
(continued, 2).
10-23
Chapter 10
LO10-3: Construct a confidence interval for µ1 − µ2
(continued, 4).
Example (Marketing Teams) (continued)
The confidence interval is
Because this confidence interval does not include zero, we can say with 90
percent confidence that there is a difference between the means (i.e., the
virtual team’s mean differs from the face-to-face team’s mean). If we had not
assumed equal variances, the results would be the same in this case because
the samples are large and of similar size, and the variances do not differ
greatly. But when you have small, unequal sample sizes or unequal variances,
the methods can yield different conclusions.
10-24
Chapter 10
LO10-3: Construct a confidence interval for µ1 − µ2
(continued, 5).
Note:
10-25
Chapter 10
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-26
Chapter 10
LO10-4: Recognize paired data and be able to perform a
paired t test (continued).
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-27
Chapter 10
LO10-4: Recognize paired data and be able to perform a
paired t test (continued, 2).
Paired t Test
Because the population variance of d is unknown, we will do a
paired t test using Student’s t with n − 1 degrees of freedom to
compare the sample mean difference ̅ with a hypothesized
difference μd (usually μd = 0). The test statistic is really a one-
sample t test, just like those in Chapter 9.
10-28
Chapter 10
LO10-4: Recognize paired data and be able to perform a
paired t test (continued, 3).
10-29
Chapter 10
LO10-4: Recognize paired data and be able to perform a
paired t test (continued, 4).
10-30
Chapter 10
10.5 Comparing Two Proportions
10-31
Chapter 10
LO10-5: Perform a test to compare two proportions
using z (continued).
Testing for Zero Difference: π1 − π2 = 0 (continued)
Sample Proportions
10-32
Chapter 10
LO10-5: Perform a test to compare two proportions
using z (continued, 2).
Testing for Zero Difference: π1 − π2 = 0 (continued)
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-33
Chapter 10
LO10-5: Perform a test to compare two proportions
using z (continued, 3).
Testing for Zero Difference: π1 − π2 = 0 (continued)
Test Statistic
• If the samples are large, p1 – p2 may be assumed normally
distributed.
• The test statistic is the difference of the sample proportions divided
by the standard error of the difference.
• The standard error is calculated by using the pooled proportion.
• The test statistic for the hypothesis π1 − π2 = 0 is:
10-34
Chapter 10
LO10-5: Perform a test to compare two proportions
using z (continued, 4).
10-35
Chapter 10
10.5 Comparing Two Proportions
(continued)
LO10-6: Check whether normality may be assumed for
two proportions.
Testing for Zero Difference: π1 − π2 = 0 (continued)
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-36
Chapter 10
LO10-6: Check whether normality may be assumed for
two proportions (continued).
10-37
Chapter 10
10.6 Confidence Interval for the Difference
of Two Proportions π1 − π2
LO10-7: Construct a confidence interval for π1 − π2.
10-38
Chapter 10
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-39
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued).
The F Test
• The test statistic is the ratio of the sample variances:
10-40
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 2).
The F Test (continued)
10-41
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 3).
10-42
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 4).
The F Test: Critical Values (continued)
10-43
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 5).
Comparison of Variances: Two Tailed Test
10-44
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 6).
10-45
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 7).
10-46
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 8).
10-47
Chapter 10
LO10-8: Carry out a test of two variances using the
F distribution (continued, 9).
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 α/2 instead of the
chosen α.
10-48