Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10...

30
Confidence Intervals Chapter 19

Transcript of Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10...

Page 1: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Confidence Intervals

Chapter 19

Page 2: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Rate your confidenceRate your confidence0 - 1000 - 100

• Name Mr. Holloway’s age within 10 years?• within 5 years?• within 1 year?

• Shooting a basketball at a wading pool, will make basket?

• Shooting the ball at a large trash can, will make basket?

• Shooting the ball at a carnival, will make basket?

Page 3: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

What happens to your confidence as the interval gets smaller?

The larger your confidence, the wider the interval.

Page 4: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Point Estimate

• Use a singlesingle statistic based on sample data to estimate a population parameter

• Simplest approach

• But not always very precise due to variationvariation in the sampling distribution

Page 5: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Confidence intervalsConfidence intervals

• Are used to estimate the unknown population parameter

• Formula:

estimate + margin of error

Page 6: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Margin of errorMargin of error

• Shows how accurate we believe our estimate is

• The smaller the margin of error, the more precisemore precise our estimate of the true parameter

• Formula:

statistic theof

deviation standard

value

criticalME

Page 7: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

• Found from the confidence level• The upper z-score with probability p lying to

its right under the standard normal curve

Confidence level tail area z*

.05 1.645

.025 1.96

.005 2.576

Critical value (z*)Critical value (z*)

.05

z*=1.645

.025

z*=1.96

.005

z*=2.57690%95%99%

Page 8: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

For the sampling distribution of ,

and for large* n the sampling distribution of p is approximately normal.

pp ˆ

n

ppp

)1(ˆ

* np 10 and n(1-p) 10

Recall

Page 9: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Confidence interval for a Confidence interval for a population proportion:population proportion:

n

ppzp

)1(*ˆ

estimate

Critical value

Standard deviation of the statistic

Margin of error

Page 10: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Standard Error

n

ppp

)1(ˆ

n

ppSE

)ˆ1(ˆ

• The standard error of a statistic is the estimated standard deviation of the statistic, using the sample values since we don’t know the true population values.

• For sample proportions, the standard deviation of the sampling distribution is

• This means that the standard error of the sample proportion is

Page 11: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

So our confidence interval is So our confidence interval is actually:actually:

n

ppzp

)ˆ1(ˆ*ˆ

estimate

Critical value

Standard error

Margin of error

Page 12: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Assumptions:

• Assumptions for inference with proportions:– Data values must be independent– Large enough sample for the sampling

distribution to be approximately normal

• We can’t actually check all of the assumptions, so we check related conditions

Page 13: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Conditions:

• SRS

• n<10% of the population

• At least10 Successes/Failures

10)ˆ1( and 10ˆ pnpn

Page 14: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Example• For a project, a student randomly sampled 182 other

students at a large university to determine if the majority of students were in favor of a proposal to build a parking garage. He found that 75 were in favor of the proposal. Use a 95% confidence interval to estimate the proportion of the student body in favor of the proposal.

• Define the Parameter of interest

– Let p = the true proportion of all students at the university that favor the proposal.

Page 15: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Example - Conditions

• We are told that he took a random sample.

• 182 students is certainly less than 10% of all students at a large university

• Our sampling distribution is approximately normal because

1075182

75182ˆ

pn

10107182

107182)ˆ1(

pn

Page 16: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Example - Calculations

• We will use a 1-proportion z-interval to approximate the true proportion of students who favor the proposal.

• A 95% confidence interval for p can be found using

4121.0182

75ˆ p

Error ofMargin Estimate

SEzp *ˆ

Page 17: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Example – Calculations (continued)

SEzp *ˆ

n

ppp

)ˆ1(ˆ96.1ˆ

182

)4121.01(4121.096.14121.0

07151.04121.0

The 95% confidence interval for p is

( 0.3406 , 0.4836 )

Page 18: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Example – Conclusion

We are 95% confident that the true proportion of students at this university that support the proposal to build a new parking garage on campus is between 0.3406 and 0.4836.

Page 19: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Confidence levelConfidence level

• Is the success rate of the method used to construct the interval

• Using this method, ____% of the time the intervals constructed will contain the true population parameter

Page 20: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

What does it mean to be 95% What does it mean to be 95% confident?confident?

• 95% chance that p is contained in the confidence interval

• The probability that the interval contains p is 95%

• The method used to construct the interval will produce intervals that contain p 95% of the time.

Page 21: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Example – Interpretation of the confidence level

If we were to repeat this process many times, 95% of the confidence intervals we constructed would capture the true proportion of students at this university that support the proposal to build a new parking garage on campus.

Note: You only need to interpret the confidence level if it you are specifically asked to.

Page 22: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Interpreting a confidence interval:Interpreting a confidence interval:

We are ________% confident that the true proportion of context is between ______ and ______.

Page 23: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Interpreting the confidence level:Interpreting the confidence level:

If we were to repeat this process many times, ________% of the confidence intervals we constructed would capture the true proportion of context.

Page 24: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

A May 2000 Gallup Poll found that 38% of a random sample of 1012 adults said that they believe in ghosts. Find a 95% confidence interval for the true proportion of adults who believe in ghosts.

Page 25: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Conditions:

•Have an SRS of adults

•1012 adults is certainly <10% of adults

•We have at least 10 successes & 10 failures, so the sampling distribution is approximately normal

Step 2: check conditions!

p = the true proportion of all adults that believe in ghosts Step 1: define parameter!

1044.627)62(.1012)ˆ1(

1056.384)38(.1012ˆ

pn

pn

Page 26: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

41,.35.

1012

)62(.38.96.138.

ˆ1ˆ*ˆ

n

ppzp

We are 95% confident that the true proportion of adults who believe in ghosts is between .35 and .41

Step 3: do the calculations

Step 4: conclusion in context

Page 27: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Another Gallop Poll is taken in order to measure the proportion of adults who approve of attempts to clone humans. What sample size is necessary to be within + 0.04 of the true proportion of adults who approve of attempts to clone humans with a 95% Confidence Interval?

To find sample size:

However, since we have not yet taken a sample, we do not know a p-hat (or p) to use!

n

ppz

ˆ1ˆ*ME

Page 28: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

What p-hat (p) do you use when trying to find the sample size for a given margin of error?

.1(.9) = .09

.2(.8) = .16

.3(.7) = .21

.4(.6) = .24

.5(.5) = .25

By using .5 for p-hat, we are using the worst-case scenario and using the largest SD in our calculations.

Page 29: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

Another Gallop Poll is taken in order to measure the proportion of adults who approve of attempts to clone humans. What sample size is necessary to be within + 0.04 of the true proportion of adults who approve of attempts to clone humans with a 95% Confidence Interval?

60125.600

25.

96.1

04.

5.5.

96.1

04.

5.5.96.104.

1*ME

2

n

n

n

n

n

ppz

Use p-hat = .5

Divide by 1.96

Square both sides

Round up on sample size

Page 30: Confidence Intervals Chapter 19. Rate your confidence 0 - 100 Name Mr. Holloways age within 10 years? within 5 years? within 1 year? Shooting a basketball.

How can you make the margin of How can you make the margin of error smaller?error smaller?• z* smaller

(lower confidence level)

• p smaller

• n larger(to cut the margin of error in half, n

must be 4 times as big)

Really cannot change!