Docsity

Comparing Two Groups - Elementary Statistics | MATH 220, Study notes of Statistics

Toggle sidebar
bg1
Chapter 9 Comparing Two Groups January 8, 2009 1
9 Comparing Two Groups
••We may wish to compare two treatment groups
in experimental design.
Example: In the agricultural setting, which type
of seed produces a better yield per acre?
2
Example: Which of two drugs is better?
2
•• We may wish to compare two populations in
sample surveys.
Example: Compare the heights of females in
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Comparing Two Groups - Elementary Statistics | MATH 220 and more Study notes Statistics in PDF only on Docsity!

Chapter 9 Comparing Two Groups January 8, 2009 1

9 Comparing Two Groups

•• We may wish to compare two treatment groups

in experimental design.

Example: In the agricultural setting, which type

of seed produces a better yield per acre? 2

Example: Which of two drugs is better?

•• We may wish to compare two populations in

sample surveys.

Example: Compare the heights of females in

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

(a) Independent samples (sections 9.1 and

9.2), OR

(b) Dependent samples (matched pairs)

– IDEAL (section 9.4).

Example: Matched pairs (from section 4.4).

When matched pairs are not possible, use independent samples.

Example: Independent samples (from section

9.1 Categorical Response: How Can

We Compare Two Proportions?

Z-test and Z-confidence interval on

the difference between two

population proportions, (p 1 − p 2 )

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

control group who would die (within 6.2 years)

from prostate cancer.

Let p 2 be the population proportion of the surgery

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. ∼

N (0, 1), if there are at least 5 successes

and at least 5 failures in each of the

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.

Layman’s interpretation: We are 95%

confident that the difference in population death rates of control and surgery is between 0.58% and 8.02%.

Mathematically rigorous interpre-

Section 9.1Two Proportions? Categorical Response: How Can We Compare January 8, 2009 8

tation: If we repeat the sampling procedure

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

Hypothesis Testing on (p 1 − p 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.

Let p 1 be the population proportion of placebo

users who would suffer a heart attack. Let p 2 be the population proportion of

aspirin users who would suffer a heart attack.

(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 ).

(e) Determine the value of the standardized

test statistic.

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

Note: For a two-sided test, the P -value is twice the

tail probability of the appropriate one-sided test.

9.2 Quantitative Response: How

Can We Compare Two Means?

In this section, we focus on independent

observations, not matched pairs.

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

Z = X¯√^1 −σ^ X 21 ¯/n^2 − 1 (+μσ^122 −/nμ^22 ) NOT PRACTICAL

for inference

is approximately standard normal, and T = X¯ (^1) √− X¯ 2 − (μ 1 − μ 2 )

s^21 /n 1 + s^22 /n 2 PRACTICAL

is approximately t distributed, so a confidence

Section 9.2 Quantitative Response: How Can We Compare Two Means? January 8, 2009 14

interval on (μ 1 − μ 2 ) is

X¯ 1 − X¯ 2 ± t

√√√ √√√ √^ s

(^21) n 1 +^

s^22 n 2.

Degrees of freedom: When s 1 and s 2 are

similar and n 1 and n 2 are close, then the degrees of

freedom is close to (n 1 + n 2 − 2). Otherwise,

the degrees of freedom can be approximated

conservatively by the smaller of (n 1 − 1) and

(n 2 − 1).

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?

Again, the t procedures are robust.

Example: A study of zinc-deficient mothers

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

weight in the zinc-supplemented group.

Let μ 2 = unknown population mean birth

weight in the placebo group.

(c) State the hypotheses.

(d) Determine the value of the standardized

test statistic.

Let X¯ 1 = sample mean birth weight in the

zinc-supplemented group.

Let X¯ 2 = sample mean birth weight in the

placebo group.

(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

9.4 How Can We Analyze Dependent

Samples?

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?

Assumptions:

(1) The observations are reasonably paired. (2) The differences are independent or nearly in- dependent (and σd is finite).

(3) n is large (usually n ≥ 30 , if neither tail of

the distribution of the differences is too heavy),

or the differences are approximately

normal.

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.