8.4: two-proportion inference tests

21
Objective: To test claims about inferences for two proportions, under specific conditions 8.4: TWO-PROPORTION INFERENCE TESTS

description

8.4: two-proportion inference tests. Objective: To test claims about inferences for two proportions, under specific conditions. The standard deviation of the difference between two proportions. - PowerPoint PPT Presentation

Transcript of 8.4: two-proportion inference tests

Page 1: 8.4: two-proportion inference tests

Objective: To test claims about inferences for two proportions, under specific conditions

8.4: TWO-PROPORTION INFERENCE TESTS

Page 2: 8.4: two-proportion inference tests

• Proportions observed in independent random samples are independent. Thus, we can add their variances. So…

• The standard deviation of the difference between two sample proportions is

• Thus, the standard error is

THE STANDARD DEVIATION OF THE DIFFERENCE BETWEEN TWO

PROPORTIONS

1 1 2 21 2

1 2

ˆ ˆ p q p qSD p pn n

1 1 2 21 2

1 2

ˆ ˆ ˆ ˆˆ ˆ p q p qSE p pn n

Remember it’s always a +

Page 3: 8.4: two-proportion inference tests

• Independence Assumptions:• Randomization Condition: The data in each group

should be drawn independently and at random from a homogeneous population or generated by a randomized comparative experiment.

• The 10% Condition: If the data are sampled without replacement, the sample should not exceed 10% of the population.

• Independent Groups Assumption: The two groups we’re comparing must be independent of each other.

ASSUMPTIONS & CONDITIONS

Page 4: 8.4: two-proportion inference tests

• Sample Size Assumption:

• Each of the groups must be big enough…

• Success/Failure Condition: Both groups are big enough that at least 10 successes and at least 10 failures have been observed in each.

ASSUMPTIONS & CONDITIONS

Page 5: 8.4: two-proportion inference tests

• When the conditions are met, we are ready to find the confidence interval for the difference of two proportions:

• The confidence interval is

where

• The critical value z* depends on the particular confidence level, C, that you specify.

TWO-PROPORTION Z-INTERVAL

1 2 1 2ˆ ˆ ˆ ˆp p z SE p p

1 1 2 21 2

1 2

ˆ ˆ ˆ ˆˆ ˆ p q p qSE p pn n

Page 6: 8.4: two-proportion inference tests

1. Check Conditions and show that you have checked these!• Randomization Condition: The data in each group

should be drawn independently and at random from a homogeneous population or generated by a randomized comparative experiment.

• The 10% Condition: If the data are sampled without replacement, the sample should not exceed 10% of the population.

• Independent Groups Assumption: The two groups we’re comparing must be independent of each other.

• Success/Failure Condition: Both groups are big enough that at least 10 successes and at least 10 failures have been observed in each.

STEPS FOR TWO-PROPORTION Z-INTERVAL

Page 7: 8.4: two-proportion inference tests

2. State the test you are about to conduct Ex) Two-Proportion z-Interval

4. Calculate your z-interval

5. State your conclusion IN CONTEXT.We are 95% confident that the support group

program could raise the proportion of smokers who manage to quit using the parch by between 2 and 22 percentage points.

STEPS FOR TWO PROPORTION Z-INTERVAL

(CONT.)

Page 8: 8.4: two-proportion inference tests

The table below describes the effect of preschool on later use of social services:

Set up a 95% confidences interval. Interpret your results.

TWO-PROPORTION Z-INTERVAL EXAMPLE

Page 9: 8.4: two-proportion inference tests

TWO-PROPORTION Z-INTERVAL EXAMPLE (CONT.)

Page 10: 8.4: two-proportion inference tests

• The typical hypothesis test for the difference in two proportions is the one of no difference (when they are equal). In symbols, H0: p1 – p2 = 0.

• Since we are hypothesizing that there is no difference between the two proportions, that means that the standard deviations for each proportion are the same.

• Since this is the case, we combine (pool) the counts to get one overall proportion.

POOLING P

Page 11: 8.4: two-proportion inference tests

• The pooled proportion is

• where and

• If the numbers of successes are not whole numbers, round them first. (This is the only time you should round values in the middle of a calculation.)

POOLING P (CONT.)

1 2

1 2

ˆ pooledSuccess Successp

n n

1 1 1ˆSuccess n p 2 2 2ˆSuccess n p

Page 12: 8.4: two-proportion inference tests

• We then put this pooled value into the formula, substituting it for both sample proportions in the standard error formula:

• We’ll reject our null hypothesis if we see a large enough difference in the two proportions.

• How can we decide whether the difference we see is large?• Just compare it with its standard deviation.

• Unlike previous hypothesis testing situations, the null hypothesis doesn’t provide a standard deviation, so we’ll use a standard error (here, pooled).

POOLING P (CONT.)

1 21 2

ˆ ˆ ˆ ˆˆ ˆ pooled pooled pooled pooled

pooled

p q p qSE p p

n n

Page 13: 8.4: two-proportion inference tests

• The conditions for the two-proportion z-test are the same as for the two-proportion z-interval.

• We are testing the hypothesis H0: p1 – p2 = 0, or, equivalently, H0: p1 = p2.

• Because we hypothesize that the proportions are equal, we pool them to find

TWO-PROPORTION Z-TEST

1 2

1 2

ˆ pooledSuccess Successp

n n

Page 14: 8.4: two-proportion inference tests

• We use the pooled value to estimate the standard error:

• Now we find the test statistic:

• When the conditions are met and the null hypothesis is true, this statistic follows the standard Normal model, so we can use that model to obtain a P-value.

TWO-PROPORTION Z-TEST (CONT.)

1 21 2

ˆ ˆ ˆ ˆˆ ˆ pooled pooled pooled pooled

pooled

p q p qSE p p

n n

1 2

1 2

ˆ ˆ( ) 0ˆ ˆ( )pooled

p pzSE p p

Page 15: 8.4: two-proportion inference tests

1. Check Conditions and show that you have checked these!• Randomization Condition: The data in each group

should be drawn independently and at random from a homogeneous population or generated by a randomized comparative experiment.

• The 10% Condition: If the data are sampled without replacement, the sample should not exceed 10% of the population.

• Independent Groups Assumption: The two groups we’re comparing must be independent of each other.

• Success/Failure Condition: Both groups are big enough that at least 10 successes and at least 10 failures have been observed in each.

STEPS FOR TWO-PROPORTION Z-TESTS

Page 16: 8.4: two-proportion inference tests

2. State the test you are about to conduct Ex) Two-proportion z-test

3. Set up your hypothesesH0:HA:

4. Calculate your test statistic

5. Draw a picture of your desired area under the t-model, and calculate your P-value.

STEPS FOR TWO-PROPORTION Z-TESTS

(CONT.)

Page 17: 8.4: two-proportion inference tests

6. Make your conclusion.

STEPS FOR TWO-PROPORTION Z-TESTS

(CONT.)

P-Value Action ConclusionLow Reject H0 The sample

mean is sufficient evidence to conclude HA in context.

High Fail to reject H0

The sample mean does not provide us with sufficient evidence to conclude HA in context.

Page 18: 8.4: two-proportion inference tests

• Stat TESTS

• 6: 2-PropZTest

• Enter values

• Calculate

CALCULATOR TIPS

Page 19: 8.4: two-proportion inference tests

High levels of cholesterol in the blood are associated with higher risk of heart attacks. Will using a drug to lower blood cholesterol reduce heart attacks? The Helsinki Heart Study looked at this question. Middle-aged men were assigned at random to one of two treatments: 2051 men took the drug gemfibrozil to reduce their cholesterol levels, and a control group of 2030 men took a placebo. During the next five years, 56 men in the gemfibrozil group and 84 men in the placebo group had heart attacks. What are the proportions and is the benefit of the drug statistically significant?

TWO-PROPORTION Z-TEST EXAMPLE

Page 20: 8.4: two-proportion inference tests

TWO-PROPORTION Z-TEST EXAMPLE (CONT.)

Page 21: 8.4: two-proportion inference tests

• Day 1: 8.4 Book Page # 1, 7, 9, 18

• Day 2: 8.4 Book Page # 3, 10, 20, 22

ASSIGNMENTS