testing hypotheses about a population proportion lecture 29 sections 9.1 – 9.3 tue, oct 23, 2007

36
Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Upload: magdalene-laureen-briggs

Post on 26-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Testing Hypotheses about a Population Proportion

Lecture 29

Sections 9.1 – 9.3

Tue, Oct 23, 2007

Page 2: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Discovering Characteristics of a Population Any question about a population must first

be described in terms of a population parameter.

We will work with the population mean and the population proportion p.

Page 3: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Discovering Characteristics of a Population Then the question about that parameter

generally falls into one of two categories.Estimation

What is the value of the parameter?

Hypothesis testing Does the evidence support or refute a claim about

the value of the parameter?

Page 4: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Examples

If we want to learn about voters’ preferences, how do we phrase the question?What parameter do we use?Do we estimate a parameter or test a

hypothesis?

Page 5: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Example

If we want to learn about the effectiveness of a new drug, how do we phrase the question?What parameter do we use?Do we estimate a parameter or test a

hypothesis?

Page 6: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Example

If we want to find out whether a newborn child is more likely to be male than female, how do we phrase the question?What parameter do we use?Do we estimate a parameter or test a

hypothesis?

Page 7: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Example

A standard assumption is that a newborn baby is as likely to be a boy as to be a girl. However, some people believe that boys are more likely.

Suppose a random sample of 1000 live births shows that 520 are boys and 480 are girls.

We will test the hypothesis that male births are as likely as female births, using these data.

Page 8: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

H0

Page 9: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

H0

Page 10: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

H0

Observed value

Page 11: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

0z

H0

z

Observed value

Page 12: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

0z

Reject

p-value <

H0

z

Page 13: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

0z

H0

Observed value

Page 14: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

0z

H0

z

Observed value

Page 15: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

p-Value Approach

0z

p-value >

H0

Accept

z

Page 16: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

The Steps of Testing a Hypothesis (p-Value Approach) The seven steps:

1. State the null and alternative hypotheses.2. State the significance level.3. State the formula for the test statistic.4. Compute the value of the test statistic.5. Compute the p-value.6. Make a decision.7. State the conclusion.

Page 17: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

The Steps of Testing a Hypothesis (p-Value Approach) See page 566. (Our seven steps are

modified from what is in the book.)

Page 18: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 1: State the Null and Alternative Hypotheses Let p = proportion of live births that are

boys. The null and alternative hypotheses are

H0: p = 0.50.

H1: p > 0.50.

Page 19: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

State the Null and Alternative Hypotheses The null hypothesis should state a

hypothetical value p0 for the population proportion.H0: p = p0.

Page 20: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

State the Null and Alternative Hypotheses The alternative hypothesis must contradict

the null hypothesis in one of three ways:H1: p < p0. (Direction of extreme is left.)

H1: p > p0. (Direction of extreme is right.)

H1: p p0. (Direction of extreme is left and right.)

Page 21: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Explaining the Data

The observation is 520 males out of 1000 births, or 52%. That is, p^ = 0.52.

Since we observed 52%, not 50%, how do we explain the discrepancy?Chance, orThe true proportion is not 50%, but something

larger, maybe 52%.

Page 22: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 2: State the Significance Level

The significance level should be given in the problem.

If it isn’t, then use = 0.05. In this example, we will use = 0.05.

Page 23: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

The Sampling Distribution of p^

To decide whether the sample evidence is significant, we will compare the p-value to .

If p-value < , then we reject H0.

If p-value > , then we reject H0.

Page 24: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

The Sampling Distribution of p^

We know that the sampling distribution of p^ is normal with mean p and standard deviation

Thus, under H0 we assume that p^ has mean p0 and standard deviation:

n

ppp

n

ppp

00ˆ

1

Page 25: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 3: The Test Statistic

Test statistic – The z-score of p^, under the assumption that H0 is true.

Thus,

npp

pppZ

p

p

00

0

ˆ

ˆ

1

ˆˆ

Page 26: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

The Test Statistic

In our example, we compute

Therefore, the test statistic is

.01581.0

1000

50.1)50(.ˆ

p

01581.0

50.0ˆ p

Z

Page 27: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

The Test Statistic

Now, to find the value of the test statistic, all we need to do is to collect the sample data, find p^, and substitute it into the formula for z.

Page 28: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 4: Compute the Test Statistic In the sample, p^ = 0.52. Thus,

265.101581.0

50.052.0

Z

Page 29: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 5: Compute the p-value

To compute the p-value, we must first check whether it is a one-tailed or a two-tailed test.

We will compute the probability that Z would be at least as extreme as the value of our test statistic.

If the test is two-tailed, then we must take into account both tails of the distribution to get the p-value. (Double the value in one tail.)

Page 30: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Compute the p-value

In this example, the test is one-tailed, with the direction of extreme to the right.

So we compute

p-value = P(Z > 1.265) = 0.1029.

Page 31: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Compute the p-value

To find this value, we evaluate

normalcdf(0.52, E99, 0.50, 0.01581)

on the TI-83.

Page 32: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 6: Make a Decision

Since the p-value is greater than , our decision is: Do not reject the null hypothesis.

The decision is stated in statistical jargon.

Page 33: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 2007

Step 7: State the Conclusion

State the conclusion in a sentence: It is not true that more than 50% of live births

are male. The conclusion must state the decision in

the language of the original problem. It should not use statistical jargon.

Page 34: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 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 35: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 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 36: Testing Hypotheses about a Population Proportion Lecture 29 Sections 9.1 – 9.3 Tue, Oct 23, 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

ˆ