Title: Chapter 3 Tests of Hypotheses for Two Samples
1Chapter 3 Tests of Hypotheses for Two Samples
2Agenda
- Inference for a difference in means (variance
known) - Inference for the difference in means ( variance
unknown) - Paired t-test
- Inference on the variances
- Inference on the proportions
3Inference for a Difference in Means of Two
Normal Distributions, Variances Known
Two independent populations.
4Inference for a Difference in Means of Two
Normal Distributions, Variances Known
Assumptions
5Inference for a Difference in Means of Two
Normal Distributions, Variances Known
6Inference for a Difference in Means of Two
Normal Distributions, Variances Known
1. Hypothesis Tests
7Example 1
8Example 1
9Example 1
10Inference for a Difference in Means of Two
Normal Distributions, Variances Known
2. Choice of Sample Size
Use of Operating Characteristic Curves
Two-sided alternative
One-sided alternative
11Inference for a Difference in Means of Two
Normal Distributions, Variances Known
2. Choice of Sample Size
Sample Size Formulas
Two-sided alternative
12Inference for a Difference in Means of Two
Normal Distributions, Variances Known
2. Choice of Sample Size
Sample Size Formulas
One-sided alternative
13Example 2
1
14Inference for a Difference in Means of Two
Normal Distributions, Variances Known
3. Identifying Cause and Effect
- When statistical significance is observed in a
randomized experiment, the experimenter can be
confident in the conclusion that it was the
difference in treatments that resulted in the
difference in response. - That is, we can be confident that a
cause-and-effect relationship has been found.
15Inference for a Difference in Means of Two
Normal Distributions, Variances Known
4. Confidence Interval
Definition
16Example 3
17Example 3
18Inference for a Difference in Means of Two
Normal Distributions, Variances Known
Choice of Sample Size
Where E limit error in estimating µ1 µ2 by
the different of sample means at 100(1- ?)
confidence
19Inference for a Difference in Means of Two
Normal Distributions, Variances Known
One-Sided Confidence Bounds
Upper Confidence Bound
Lower Confidence Bound
20Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
1. Hypotheses Tests
Case 1
We wish to test
21Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
1. Hypotheses Tests
Case 1
The pooled estimator of ?2
22Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
1. Hypotheses Tests
Case 1
23Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
Definition The Two-Sample or Pooled t-Test
24Example 4
25Example 4
4
26Example 4
27Example 4
28Normal probability plot and comparative box plot
for the catalyst yield data in Example 4. (a)
Normal probability plot, (b) Box plots.
29Minitab Practice for Example 4
- Data file example3_4.xls
- Menu ? Stat ? Basic statistics ? 2 sample t ?
select Samples in different columns ?check
Assume equal variances ?options - Confident level 95
- Test mean 0.0
- Alternative not equal
-
30Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
1. Hypotheses Tests for a Difference in Means,
Variances Unknown
Case 2
is distributed approximately as t with degrees of
freedom given by
31Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
1. Hypotheses Tests for a Difference in Means,
Variances Unknown
Case 2
32Example 5
33Example 5
Normal probability plot of the arsenic
concentration data from Example 5.
34Example 5
35Example 5
36Minitab Practice for Example 5
- Data file Example 3_5.xls
- Menu ? Stat ? Basic statistics ? 2 sample t ?
select Samples in different columns ?do not
check Assume equal variances ?options - Confident level 95
- Test mean 0.0
- Alternative not equal
37Inference for a Difference in Means of Two
Normal Distributions, Variances Unknown
3. Choice of Sample Size
Two-sided alternative
38Example 6
39Minitab Practice for Example 6
- Output sample size n ?
- Menu ? Stat ? Power and Sample Size ? 2 sample t
? - Different 4
- Power value 0.85
- Sigma 2.7
- Options ? Alternative not equal
- Significant level 0.05
-
404. Confidence Interval on the Difference in Means
Case 1
41Example 7
42Example 7
43Example 7
44Example 7
454. Confidence Interval on the Difference in Means
Case 2
Definition
46Paired t-Test
- A special case of the two-sample t-tests of
Section 10-3 occurs when the 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. - The test procedure consists of analyzing the
differences between hardness readings on each
specimen.
47Paired t-Test
The Paired t-Test
48Example 8
49Example 8
50Example 8
51Paired t-Test
Paired Versus Unpaired Comparisons
52Paired t-Test
A Confidence Interval for ?D
Definition
53Example 9
54Example 9
55Inferences on the Variances of Two Normal
Populations
1. The F Distribution
We wish to test the hypotheses
- The development of a test procedure for these
hypotheses requires a new probability
distribution, the F distribution.
56Inferences on the Variances of Two Normal
Populations
1. The F Distribution
57Inferences on the Variances of Two Normal
Populations
1. The F Distribution
58Inferences on the Variances of Two Normal
Populations
1. The F Distribution
The lower-tail percentage points f?-1,u,? can be
found as follows.
59Inferences on the Variances of Two Normal
Populations
2. Hypothesis Tests on the Ratio of Two Variances
60Inferences on the Variances of Two Normal
Populations
3. Hypothesis Tests on the Ratio of Two Variances
61Example 10
62Example 10
63Example 10
64Inferences on the Variances of Two Normal
Populations
4. ?-Error and Choice of Sample Size
65Example 11
66Inferences on the Variances of Two Normal
Populations
5. Confidence Interval on the Ratio of Two
Variances
67Example 12
68Example 12
69Example 12
70Inference on Two Population Proportions
1. Large-Sample Test for H0 p1 p2
We wish to test the hypotheses
71Inference on Two Population Proportions
1. Large-Sample Test for H0 p1 p2
The following test statistic is distributed
approximately as standard normal and is the basis
of the test
72Inference on Two Population Proportions
1. Large-Sample Test for H0 p1 p2
73Example 13
74Example 13
75Example 13
76Minitab Practice for Example 13
- Menu ? Stat ? Basic Statistics ? 2 proportions ?
Select Summarized Data - First sample trials 100 successes 27
- Second sample trials 100 successes 19
- Sigma 2.7
- Options ? Alternative not equal
- Confidence level 95
- Test difference 0.0
77Inference on Two Population Proportions
2. ?-Error and Choice of Sample Size
78Inference on Two Population Proportions
2. ?-Error and Choice of Sample Size
79Inference on Two Population Proportions
2. ?-Error and Choice of Sample Size
80Inference on Two Population Proportions
3. Confidence Interval for p1 p2
81Example 14
82Example 14