testing hypotheses about a population proportion lecture 30 sections 9.3 wed, oct 24, 2007

30
Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Upload: whitney-little

Post on 13-Jan-2016

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Testing Hypotheses about a Population Proportion

Lecture 30

Sections 9.3

Wed, Oct 24, 2007

Page 2: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Summary

1. H0: p = 0.50

H1: p > 0.502. = 0.05.3. Test statistic:

4. z = (0.52 – 0.50)/0.0158 = 1.26.5. p-value = P(Z > 1.26) = 0.1038.

6. Do not reject H0.7. It is not true that more than 50% of live births are male.

n

pp

ppZ

00

0

1

ˆ

Page 3: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Beforecollecting

data

Summary

1. H0: p = 0.50

H1: p > 0.502. = 0.05.3. Test statistic:

4. z = (0.52 – 0.50)/0.0158 = 1.26.5. p-value = P(Z > 1.26) = 0.1038.

6. Do not reject H0.7. It is not true that more than 50% of live births are male.

n

pp

ppZ

00

0

1

ˆ

Page 4: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Aftercollecting

data

Summary

1. H0: p = 0.50

H1: p > 0.502. = 0.05.3. Test statistic:

4. z = (0.52 – 0.50)/0.0158 = 1.26.5. p-value = P(Z > 1.26) = 0.1038.

6. Do not reject H0.7. It is not true that more than 50% of live births are male.

n

pp

ppZ

00

0

1

ˆ

Page 5: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Case Study 11

Male births vs. female births.

Page 6: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Testing Hypotheses on the TI-83 The TI-83 has special functions designed

for hypothesis testing. Press STAT. Select the TESTS menu. Select 1-PropZTest… Press ENTER.

A window with several items appears.

Page 7: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Testing Hypotheses on the TI-83 Enter the value of p0. Press ENTER and the

down arrow. Enter the numerator x of p^. Press ENTER and

the down arrow. Enter the sample size n. Press ENTER and the

down arrow. Select the type of alternative hypothesis. Press

the down arrow. Select Calculate. Press ENTER.

Page 8: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Testing Hypotheses on the TI-83 The display shows

The title “1-PropZTest”The alternative hypothesis.The value of the test statistic Z.The p-value.The value of p^.The sample size.

We are interested in the p-value.

Page 9: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Case Study 12

A recent study has shown that moderate exercise helps reduce the risk of catching a cold.

53 subjects were assigned to an exercise group that did moderate exercise.

62 subjects did only stretching exercises. In the first group, only 5 caught a cold. In the second group, 20 caught a cold.

Page 10: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Case Study 12

Use the TI-83 to test the hypothesis that a person who gets moderate exercise has less than a 1 in 3 chance of catching a cold.

Page 11: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

The p-Value Approach

p-Value approach.Compute the p-value of the statistic.Report the p-value. If is specified, then report the decision.

Page 12: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Two Approaches for Hypothesis Testing Classical approach.

Specify .Determine the critical value and the rejection

region.See whether the statistic falls in the rejection

region.Report the decision.

Page 13: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

H0

Page 14: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

H0

Page 15: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

0z

c

H0

Critical value

Page 16: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

0z

c

Rejection RegionAcceptance Region

H0

Page 17: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

0z

c

Rejection RegionAcceptance Region

H0

Page 18: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

0z

c

Rejection RegionAcceptance Region

Reject

z

H0

Page 19: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

0z

c

Rejection RegionAcceptance Region

H0

Page 20: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Classical Approach

0z

c

Rejection RegionAcceptance Region

Accept

z

H0

Page 21: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

The Classical Approach

The seven steps 1. State the null and alternative hypotheses. 2. State the significance level. 3. Write the formula for the test statistic. 4. State the decision rule. 5. Compute the value of the test statistic. 6. State the decision. 7. State the conclusion.

(Do not compute the p-value.)

Page 22: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

The Classical Approach

The seven steps 1. State the null and alternative hypotheses. 2. State the significance level. 3. Write the formula for the test statistic. 4. State the decision rule. 5. Compute the value of the test statistic. 6. State the decision. 7. State the conclusion.

(Do not compute the p-value.)

Beforecollecting

data

Page 23: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

The Classical Approach

The seven steps 1. State the null and alternative hypotheses. 2. State the significance level. 3. Write the formula for the test statistic. 4. State the decision rule. 5. Compute the value of the test statistic. 6. State the decision. 7. State the conclusion.

(Do not compute the p-value.)

Aftercollecting

data

Page 24: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Example of the Classical Approach

Test the hypothesis that there are more male births than female births.

Let p = the proportion of live births that are male.

Step 1: State the hypotheses.H0: p = 0.50

H1: p > 0.50

Page 25: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Example of the Classical Approach

Step 2: State the significance level.Let = 0.05.

Step 3: Define the test statistic.

npp

ppppZ

p )1(

ˆˆ

00

0

ˆ

0

Page 26: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Example of the Classical Approach Step 4: State the decision rule.

Find the critical value.On the standard scale, the value z0 = 1.645

cuts off an upper tail of area 0.05. This is a normal percentile problem. Use invNorm(0.95) on the TI-83 or use the table.

Therefore, we will reject H0 if z > 1.645.

The decision rule

Page 27: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Example of the Classical Approach Step 5: Compute the value of the test

statistic.

.265.101581.0

50.052.0

.01581.01000

)50.0)(50.0(1 00

z

n

pp

Page 28: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Example of the Classical Approach

Step 6: State the decision.Because z < 1.645, our decision is to accept H0.

Step 7: State the conclusion.The proportion of male births is not greater

than the proportion of female births.

Page 29: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Summary

H0: p = 0.50

H1: p > 0.50 = 0.05. Test statistic:

Reject H0 if z > 1.645.

Accept H0. The proportion of male births is the same as the

proportion of female births.

npp

ppppZ

p )1(

ˆˆ

00

0

ˆ

0

.265.101581.0

50.052.0

z

Page 30: Testing Hypotheses about a Population Proportion Lecture 30 Sections 9.3 Wed, Oct 24, 2007

Case Study 12

Use the TI-83 and the classical approach to test the hypothesis that a person who gets moderate exercise has less than a 1 in 3 chance of catching a cold.