the practice of statistics third edition chapter 13: comparing two population parameters copyright...

35
The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Upload: adela-edwards

Post on 01-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

The Practice of StatisticsThird Edition

Chapter 13:Comparing Two Population Parameters

Copyright © 2008 by W. H. Freeman & Company

Daniel S. Yates

Page 2: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Section 13.2Comparing Two Proportions

By using inference procedures on two proportions from the two groups of interest, we can compare two populations.

Remember that inference procedures for a single proportion relied on the sampling distribution of phat.

Similarly, inference procedures for two proportions rely on the sampling distribution of phat1- phat2.

Page 3: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

The rules of Random Variables are used to get the center and spread of the Sampling Distribution of phat1- phat2

Page 4: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 5: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Example 13.9 How much does Preschool Help?

• 49 out of 61 who did not attend preschool needed social services as adults

• 38 out of 62 who attended preschool needed social services as adults

• Construct and interpret a 95% Confidence Interval that for the difference between the proportions (did not attend – attended).

Page 6: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Steps

1) ParameterIdentify the populations and the parameters.

2) Check the conditions for BOTH proportions.3) Calculations4) Interpretation

Page 7: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Interpretation

• We are 95% confident that the percent needing social services is somewhere between 3.3% and 34.7% lower among people who attended preschool.

OR• We are 95% confident that the percent needing

social services is somewhere between 3.3% and 34.7% higher among people who did not attend preschool.

Page 8: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 9: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 10: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Combined Sample Proportion

This is the overall sample proportion used to estimate the single population parameter p.

1 2c

1 2

X Xcount of successes in both samples combinedp̂

count of individuals in both samples combined n n

Page 11: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 12: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

How much does Preschool Help?Again!

• 49 out of 61 who did not attend preschool needed social services as adults

• 38 out of 62 who attended preschool needed social services as adults

• Is there strong evidence to support the claim that those that did not attend preschool have greater need for social services as adults?

Page 13: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

1) HypothesesIdentify the parameters. State the

hypotheses and the procedure name.

Ho: p1= p2 or, equivalently Ho: p1- p2 = 0

Ha: p1 > p2 Ha: p1- p2 > 0

2) Check the conditions for BOTH proportions.3) Calculations4) Interpretation

Page 14: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Interpretation

The P-value, .0102, tell us that it is very unlikely that we would obtain a difference in sample proportions as large as we did if the null hypothesis is true. Therefore, we reject the null hypothesis and conclude that there is strong evidence to support the claim that those that did not attend preschool have greater need for social services as adults

Page 15: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Computer Output for 2 Proportion Z-Test

Page 16: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Note that this is not the same as matched pairs. There is no matching here. The samples are independent and may even be different sizes.

Section 13.1 Comparing Two Means

Page 17: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Matched Pairs vs. Two Sample

• P.781 Ex 13.1

Page 18: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 19: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 20: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Calcium and Blood PressureDoes increasing the amount of calcium in our diet reduce blood pressure?

Randomized Comparative Experiment Results

The response variable is the decrease in systolic (top number) bp.

Calcium Group

7 -4 18 17 -3 -5 1 10 11 -2

Placebo Group

-1 12 -1 -3 3 -5 5 2 -11 -1 -3

Page 21: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Calcium and Blood Pressure

Summary Stats

Group Treatment n xbar s

1 Calcium 10 5.000 8.743

2 Placebo 11 -0.273 5.901

The calcium group shows a 5 point decrease in bp.The placebo group shows a slight increase in bp.

Page 22: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Calcium and Blood Pressure

We want to calculate a 90% CI for the differences in systolic blood pressure between the two groups.

1) Parameter: Identify the populations and the parameters. 2) Check the conditions for BOTH samples.3) Calculations4) Interpretation

Page 23: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

SRS

• Since the 21 subjects are not an SRS, it may be difficult to generalize our findings to all healthy black men.

• However, the random assignment of subjects to treatments should help ensure that any significant differences in mean bp between the two groups is due to the treatments.

Page 24: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Checking for Non-Normality with NPP’s

There are no outliers and no departures from Normality that prevent use of t procedures.

Page 25: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Independence

• Because of the randomization, we are willing to regard the calcium and placebo groups as two independent samples. We are not sampling without replacement from a population of interest in this case.

Page 26: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

CalculationsUse 2-Samp T Int on calculatorFill in formula for CIEstimate ± (Critical Value)(St Dev of Statistic)

Note that the calculator tells you the df and it is not a whole number! You do not have to figure out t*. Just leave it as t*. However, do note the df on your paper.

2 21 2

1 2

1 2

s s(x x ) t *

n n

Page 27: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Interpretation

• We are 90% confident that the true mean difference in systolic blood pressure between the two groups is between -.4767 and 11.022.

• Would we reject the null hypothesis that the two groups have the same mean systolic blood pressures?

Page 28: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

Calcium and Blood Pressure

Now, we want to test if the differences in systolic blood pressure between the two groups is significant.

1) Parameter: Identify the populations and the parameters. 2) Check the conditions for BOTH samples.3) Calculations4) Interpretation

Page 29: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates

1) HypothesesIdentify the parameters. State the

hypotheses and the procedure name.

Ho: μ1= μ 2 or, equivalently Ho: μ 1- μ 2 = 0

Ha: μ 1 > μ 2 Ha: μ 1- μ 2 > 0

2) Check the conditions for BOTH samples.3) Calculations4) Interpretation

Page 30: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 31: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 32: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 33: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 34: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates
Page 35: The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates