Upload
others
View
1
Download
0
Embed Size (px)
Citation preview
Chapter 10: Statistical Inference for Two Samples
10-1 Inference on the Difference in Means of Two Normal Distributions, Variances Known
10-1.1 Hypothesis tests on the difference of means, variances known
10-1.2 Type II error and choice of sample size
10-1.3 Confidence interval on the difference in means, variance known
10-2 Inference on the Difference in Means of Two Normal Distributions, Variance Unknown
10-2.1 Hypothesis tests on the difference of means, variances unknown
10-2.2 Type II error and choice of sample size
10-2.3 Confidence interval on the difference in means, variance unknown
10-3 A Nonparametric Test on the Difference of Two Means
10-4 Paired t-Tests
10-5 Inference on the Variances of Two Normal Populations
10-5.1 F distributions 10-5.2 Hypothesis tests on the ratio of two
variances 10-5.3 Type II error and choice of sample
size 10-5.4 Confidence interval on the ratio of
two variances 10-6 Inference on Two Population Proportions 10-6.1 Large sample tests on the difference
in population proportions 10-6.2 Type II error and choice of sample
size 10-6.3 Confidence interval on the difference
in population proportions 10-7 Summary Table and Roadmap for Inference
Procedures for Two Samples
1
Chapter Learning Objectives After careful study of this chapter you should be able to: 1. Structure comparative experiments involving two samples as
hypothesis tests 2. Test hypotheses and construct confidence intervals on the
difference in means of two normal distributions 3. Test hypotheses and construct confidence intervals on the ratio
of the variances or standard deviations of two normal distributions
4. Test hypotheses and construct confidence intervals on the difference in two population proportions
5. Use the P-value approach for making decisions in hypothesis tests
6. Compute power, Type II error probability, and make sample size decisions for two-sample tests on means, variances & proportions
7. Explain & use the relationship between confidence intervals and hypothesis tests 2
Introduction
3
Difference in Means or Variances of Two Normal Distributions
Figure 10-1: Two independent populations. 4
Difference in Means of Two Normal Distributions - Assumptions
5
Difference in Means of Two Normal Distributions – Z statistic
6
Scott Lalonde
Scott Lalonde
Scott LalondeHas a N(0,1) distribution.
Difference in Means of Two Normal Distributions – Hypothesis Tests
7
Example 10-1
Difference in Means of Two Normal Distributions – Example
8
Scott Lalonde
Scott Lalonde
Scott Lalonde
Scott Lalonde
Scott Lalonde
Scott Lalonde
9
We may solve this problem using the seven-step procedure in Section 9-1.6: 1. Parameters of interest is the difference in the drying times, μ1 – μ2, and Δ0 = 0. 2. H0: μ1 – μ2 = 0 3. H1: μ1 – μ2 > 0 4. Test statistic is:
5. Reject H0 if the P - value is less than 0.05. 6. Compute:
7. Conclude: Since z0 =2.52, the P-value = Therefore we reject H0 at the 95% confidence level. This means that we
conclude adding the new ingredient to the paint reduces drying time.
2
22
1
21
210
0
nn
xxz��
�
���
0059.0)52.2(1 ���
52.2
108
108
0112121220
�
�
���z
Example 10-1 (continued)
�����
�
�
�
�
�����
�����
�
�
�
�
����
2
22
1
21
02
2
22
1
21
02
nn
z
nn
z����
� ��
�����
�
�
�
�
������
2
22
1
21
01
nn
z��
� �
H0: μ1 - μ2 = Δ0 H1: μ1 - μ2 ≠ Δ0
H0: μ1 - μ2 = Δ0 H1: μ1 - μ2 ≤ Δ0
Type II Error Probability, β
Single-tailed:
Two-tailed:
10
Scott Lalonde
Scott Lalonde
Sample Size Formulas for the Difference in Means of Two Normal Distributions
11
Example 10-3
Choice of Sample Size – Example
12
Scott Lalonde
Scott Lalonde
Definition:
C.I. on a Difference in Means, Variances Known
13
Example 10-4
C.I. on a Difference in Means, Variances Known – Example
14
Scott Lalonde
Scott Lalonde
Example 10-4 (continued)
15
C.I. on a Difference in Means, Variances Known – Choice of Sample Size
If we assume equal sample sizes for the two populations, we can determine the sample size, n, required so that the error in estimating μ1 - μ2 will be less than E (the confidence interval half-width) at 100(1-α)% confidence.
16
Scott Lalonde
Upper Confidence Bound
Lower Confidence Bound
C.I. on a Difference in Means, Variances Known – One-Sided Tests
17
18
• General methods in Section 10-2 to deal with the difference between means for two normal populations when the variances are unknown will not be covered. However, paired t-tests will be examined. These are a special case.
• In paired t-tests observations on the two populations of interest are collected in pairs. Each pair of observations, say (X1j , X2j ), is taken under homogeneous conditions, but these conditions may change from one pair to another.
Paired t-tests
19
The Paired t-Test
(10-24)
Example 10-10
21
Example 10-10 (continued)
22
Example 10-10 (continued)
Definition:
Paired t-test confidence interval for μD
(10-25)
Example 10-11
Scott Lalonde
The F Distribution
Inferences on the Variances of Two Normal Populations
Suppose we wish to test the hypotheses:
The development of a test procedure for these hypotheses requires a new probability distribution, the F distribution.
26
(10-26)
Scott Lalonde
The F Distribution (continued)
27
(10-28)
(10-29)
The F Distribution (continued)
28
Scott Lalonde
The lower-tail percentage points f1-�,u,� can be found as follows.
The F Distribution (continued)
The percentage points for f�,�,u can be looked up from Table VI in the Appendix (p. 712).
29
(10-30)
� �� �
� �� �
22
22
21
21
2
22
222
1
21
211
11
11
��
�
�
SS
nSn
nSn
vYuWF �
��
��
��
This is F distribution with n1 degrees of freedom in the numerator and n2 degrees of freedom in the denominator.
If we plug the definition for the chi-squared distribution (Equation 8-17) in for W and Y, the following can be obtained.
The F Distribution (continued)
30
Scott Lalonde
The F Distribution (continued)
31
Hypothesis Tests on the Ratio of Two Variances
32
(10-31)
Scott Lalonde
Example 10-12
Hypothesis Tests on the Ratio of Two Variances - Example
33
Fifteen
34
We may solve this problem using the seven-step procedure in Section 9-1.6: 1. Parameters of interest are the variances of the oxide thicknesses, σ12 and
σ22. We assume that thicknesses are normal random variables. 2. H0: σ12 = σ22 3. H1: σ12 ≠ σ22 4. Test statistic is:
5. Reject H0 if f0 > f0.025, 15,15 =2.86 or if f0 < f0.975, 15,15 = 1/2.86 =0.35. 6. Compute:
7. Conclude: Since 0.35 < 0.85< 2.86, we cannot reject H0 at the 95% confidence level. This means there is no strong evidence either gas results is a smaller variance.
22
21
0 ssf �
85.054.484.3
13.296.1
2
2
22
21
0 ���� ssf
Example 10-12 (continued)
Scott Lalonde
C.I. on the Ratio of Two Variances
35
(10-33)
Example 10-14
C.I. on the Ratio of Two Variances - Example
36
Example 10-14 (continued)
37
10-33
Example 10-14 (continued)
38
10-30
Scott Lalonde
Scott Lalonde
Scott Lalonde