
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Chapter 9 Comparing Two Groups January 8, 2009 1
of seed produces a better yield per acre? 2
Mexico vs. the United States, or the likelihood of developing cancer between females and males. 2 When comparing two treatment groups in exper- imental design or two populations in sample sur- veys, we may use
Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 2
When matched pairs are not possible, use independent samples.
Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 4
signed to surgery (radical prostatectomy) or control.
Treatment # Group died survived sample size death rate 1 control 31 317 n 1 = 348 2 surgery 16 331 n 2 = 347
Let p 1 be the population proportion of the
from prostate cancer.
group who would die (within 6.2 years) from prostate cancer. To be continued below. 2
What is a reasonable point estimate of (p 1 − p 2 )?
μpˆ 1 −pˆ 2 = μpˆ 1 − μpˆ 2 = p 1 − p 2 ; i.e., population mean difference between two sample
Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 5
proportions is the same as the difference between the two population proportions.
For independent or nearly independent observations,
σp^2 ˆ 1 −pˆ 2 = σ^2 pˆ 1 + σp^2 ˆ 2 = p 1 (1 − p 1 )/n 1 + p 2 (1 − p 2 )/n 2 , and hence σpˆ 1 −pˆ 2 =
√ p 1 (1 − p 1 )/n 1 + p 2 (1 − p 2 )/n 2.
Suppose all observations are independent or nearly in- dependent (and the sample sizes are reasonably large). Then, by the Central Limit Theorem, (1) [ˆp 1 −pˆ 2 −(p 1 −p 2 )]/
√ p 1 (1 − p 1 )/n 1 + p 2 (1 − p 2 )/n 2 approx. ∼
two samples, and (2) A confidence interval on unknown, fixed (p 1 −p 2 ) is pˆ 1 − pˆ 2 ± z
√ p ˆ 1 (1 − pˆ 1 )/n 1 + ˆp 2 (1 − pˆ 2 )/n 2 ,
Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 7
NOT for the remaining 95.7% of patients. (c) Check the assumptions for constructing a confi- dence interval. (d) Construct a 95% confidence interval on (p 1 −p 2 ). t-table, p. A Confidence Level 80% 90% 95% 98% 99% 99.8% Right-Tail Probability df .. t. 100 t. 050 t. 025 t. 010 t. 005 t. 001
. ... ... ... ... ... ... 50 1.299 1.676 2.009 2.403 2.678 3. 60 1.296 1.671 2.000 2.390 2.660 3. 80 1.292 1.664 1.990 2.374 2.639 3. 100 1.290 1.660 1.984 2.364 2.626 3. ∞ 1.282 1.645 1.960 2.326 2.576 3. (e) State the Layman’s interpretation and the math- ematically rigorous interpretation of your above confidence interval.
confident that the difference in population death rates of control and surgery is between 0.58% and 8.02%.
Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 8
many times to construct many 95% confidence intervals on (p 1 −p 2 ), the difference in population death rates of control and surgery, then approxi- mately 95% of these 95% confidence intervals will contain the true value of (p 1 − p 2 ). 2
Again, assume the observations are independent or nearly independent. What is a reasonable point estimate of (p 1 − p 2 )? What is the overall sample proportion of successes? Under H 0 , the standard deviation of (ˆp 1 − pˆ 2 ) is √ p 0 (1^ −^ p 0 )/n 1 +^ p 0 (1^ −^ p 0 )/n 2 , which is estimated by √p ˆ(1 − pˆ)(1/n 1 + 1/n 2 ). Recall: If all observations are independent or nearly in-
Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 10
whether or not aspirin reduces the likelihood of a heart attack in this population, in comparison to a placebo.
heart attack Treatment # Group yes no sample size sample proportion of heart attacks 1 placebo 189 10,845 n 1 = 11, 034 2 aspirin 104 10,933 n 2 = 11, 037 total 293 21,778 22,
(a) State the notation.
users who would suffer a heart attack. Let p 2 be the population proportion of
(b) State the hypotheses. (c) Check the assumptions for performing a signifi- cance test (i.e., hypothesis test). (d) Determine the point estimate of (p 1 − p 2 ).
Section 9.2 Quantitative Response: How Can We Compare Two Means? January 8, 2009 11
(f ) Determine the P -value. (g) State the conclusion in statistical terms and in regular English. We conclude that use of aspirin results in a lower likelihood of a heart attack in this population of male physicians aged 40 to 84 in the United States, in comparison to a placebo. 2
Construct independent t-test and independent t-confidence interval.
Section 9.2 Quantitative Response: How Can We Compare Two Means? January 8, 2009 13
It can be shown that since the samples are independent or nearly independent, then σ (^) X¯ 1 − X¯ 2 = √ σ 12 /n 1 + σ^22 /n 2.
For the rest of this section, assume that all observa- tions in the samples are independent or nearly independent, and both σ 1 and σ 2 are finite.
If n 1 and n 2 are both large (usually n 1 ≥ 30 and n 2 ≥ 30 , if none of the tails of the two distribution are too heavy), or if the two populations are approximately normal, then
is approximately standard normal, and T = X¯ (^1) √− X¯ 2 − (μ 1 − μ 2 )
Section 9.2 Quantitative Response: How Can We Compare Two Means? January 8, 2009 14
X¯ 1 − X¯ 2 ± t
√√√ √√√ √^ s
(^21) n 1 +^
s^22 n 2.
similar and n 1 and n 2 are close, then the degrees of
the degrees of freedom can be approximated
Listed in your textbook is a very ugly but more accu- rate formula for degrees of freedom, so we simply will use the above approximation. How can we verify the normality assumption?
was conducted to determine whether zinc supple- mentation during pregnancy results in babies with
Section 9.2 Quantitative Response: How Can We Compare Two Means? January 8, 2009 16
(c) State the hypotheses.
(e) Determine the estimated number of degrees of freedom. (f ) Determine the P -value.
Section 9.2 Quantitative Response: How Can We Compare Two Means? January 8, 2009 17
t-table, p. A Confidence Level 80% 90% 95% 98% 99% 99.8% Right-Tail Probability df. t. 100 t. 050 t. 025 t. 010 t. 005 t. 001 .. ... ... ... ... ... ... 50 1.299 1.676 2.009 2.403 2.678 3. 60 1.296 1.671 2.000 2.390 2.660 3. 80 1.292 1.664 1.990 2.374 2.639 3. 100 1.290 1.660 1.984 2.364 2.626 3. ∞ 1.282 1.645 1.960 2.326 2.576 3. Standard normal table, pp. A1–A z. .00 .01 .02 .03 .04 .05 .06 .07 .08. .. ... ... ... ... ... ... ... ... ... ... − 2. 2 .0139 .0136 .0132 .0129 .0125 .0122 .0119 .0116 .0113. − 2. 1 .0179 .0174 .0170 .0166 .0162 .0158 .0154 .0150 .0146. − (^2) ... 0 .0228 .0222 .0217 .0212 .0207 .0202 .0197 .0192 .0188.
. ... ... ... ... ... ... ... ... ... ... (g) State the conclusion in statistical terms and in regular English. We conclude that zinc supplementation during pregnancy among zinc-deficient mothers results in babies with increased mean weight at birth, in comparison to a placebo.
Section 9.4 How Can We Analyze Dependent Samples? January 8, 2009 19
tion mean birth weights between placebo-users and zinc-users among zinc-deficient mothers, then approximately 99% of these 99% confidence inter- vals will contain the true value of (μ 1 − μ 2 ). (i) Construct a 99% confidence interval on (μ 2 − μ 1 ). 2
Here, we pair the observations. Construct paired-t test and paired-t confidence inter- val. What are some examples of paired observations? We assume the pairs of observations are independent or nearly independent, but we do NOT necessarily have independence within a pair.
Section 9.4 How Can We Analyze Dependent Samples? January 8, 2009 20
Let d be the (observation in sample #1) − (observa- tion in sample #2). Again, we make inferences on the difference between two means, (μ 1 − μ 2 ), or the mean difference, μd. What is a reasonable point estimate of μd?
(1) The observations are reasonably paired. (2) The differences are independent or nearly in- dependent (and σd is finite).
the distribution of the differences is too heavy),
Then, the standardized test statistic is ( X¯d − μd)/(sd/√n) approx. ∼ tn− 1. Confidence interval on μd is X¯d ± tn− 1 sd/√n.