Presentation is loading. Please wait.

Presentation is loading. Please wait.

Estimating

Similar presentations


Presentation on theme: "Estimating "β€” Presentation transcript:

1 Estimating 𝑝 In the Binomial Distribution
The binomial distribution is completely determined by the number of trials 𝑛 and the probability 𝑝 of success on a single trial. For most experiments, the number of trials is chosen in advance and the distribution is completely determined by 𝑝.

2 Estimating 𝑝 In the Binomial Distribution
The binomial distribution is completely determined by the number of trials 𝑛 and the probability 𝑝 of success on a single trial. For most experiments, the number of trials is chosen in advance and the distribution is completely determined by 𝑝. In this section, we will consider the problem of estimating 𝑝 under the assumption that 𝑛 has already been selected. We are using what are called β€œlarge – sample methods”. We will assume that the normal curve is a good approximation to the binomial distribution. We will also use sample estimates for the standard deviation.

3 Estimating 𝑝 In the Binomial Distribution
The binomial distribution is completely determined by the number of trials 𝑛 and the probability 𝑝 of success on a single trial. For most experiments, the number of trials is chosen in advance and the distribution is completely determined by 𝑝. In this section, we will consider the problem of estimating 𝑝 under the assumption that 𝑛 has already been selected. We are using what are called β€œlarge – sample methods”. We will assume that the normal curve is a good approximation to the binomial distribution. We will also use sample estimates for the standard deviation. Again, these methods are proven to be quite good when : 𝑛𝑝>5 , π‘›π‘ž>5 , where π‘ž=1βˆ’π‘

4 Estimating 𝑝 In the Binomial Distribution
The binomial distribution is completely determined by the number of trials 𝑛 and the probability 𝑝 of success on a single trial. For most experiments, the number of trials is chosen in advance and the distribution is completely determined by 𝑝. In this section, we will consider the problem of estimating 𝑝 under the assumption that 𝑛 has already been selected. We are using what are called β€œlarge – sample methods”. We will assume that the normal curve is a good approximation to the binomial distribution. We will also use sample estimates for the standard deviation. Again, these methods are proven to be quite good when : 𝑛𝑝>5 , π‘›π‘ž>5 , where π‘ž=1βˆ’π‘ Point estimates for 𝑝 and π‘ž are : 𝑝 = π‘Ÿ 𝑛 π‘ž =1βˆ’ 𝑝 - where 𝑛= number of trials and π‘Ÿ= number of successes

5 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ?

6 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? 1. First estimate 𝑝 for the entire student body 𝑝 = π‘Ÿ 𝑛 = = this is the point estimate for 𝑝

7 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? 1. First estimate 𝑝 for the entire student body 𝑝 = π‘Ÿ 𝑛 = = this is the point estimate for 𝑝 2. Like our other sections, we need to factor in some margin of error

8 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? 1. First estimate 𝑝 for the entire student body 𝑝 = π‘Ÿ 𝑛 = = this is the point estimate for 𝑝 2. Like our other sections, we need to factor in some margin of error -- in this case, the margin of error = 𝑝 βˆ’π‘

9 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? 1. First estimate 𝑝 for the entire student body 𝑝 = π‘Ÿ 𝑛 = = this is the point estimate for 𝑝 2. Like our other sections, we need to factor in some margin of error -- in this case, the margin of error = 𝑝 βˆ’π‘ 3. In large samples, the distribution of 𝑝 is well approximated by a normal curve with mean πœ‡=𝑝 AND standard error 𝜎= π‘π‘ž 𝑛

10 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? 1. First estimate 𝑝 for the entire student body 𝑝 = π‘Ÿ 𝑛 = = this is the point estimate for 𝑝 2. Like our other sections, we need to factor in some margin of error -- in this case, the margin of error = 𝑝 βˆ’π‘ 3. In large samples, the distribution of 𝑝 is well approximated by a normal curve with mean πœ‡=𝑝 AND standard error 𝜎= π‘π‘ž 𝑛 4. Our bounds then become 𝑃 βˆ’π‘§ 𝑐 π‘π‘ž 𝑛 < 𝑝 βˆ’π‘< 𝑧 𝑐 π‘π‘ž 𝑛 =𝑐

11 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? Confidence interval for 𝑝 : 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 where 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 OR 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛

12 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? Confidence interval for 𝑝 : 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 where 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 OR 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 Find a 99% confidence interval for 𝑝 in our example

13 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? Confidence interval for 𝑝 : 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 where 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 OR 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 Find a 99% confidence interval for 𝑝 in our example 𝑧 0.99 =2.58 ( from the critical value table – level of confidence = 0.99 )

14 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? Confidence interval for 𝑝 : 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 where 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 OR 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 Find a 99% confidence interval for 𝑝 in our example 𝑧 0.99 =2.58 ( from the critical value table – level of confidence = 0.99 ) 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 = βˆ’ = =0.0395

15 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? Confidence interval for 𝑝 : 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 where 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 OR 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 Find a 99% confidence interval for 𝑝 in our example 𝑧 0.99 =2.58 ( from the critical value table – level of confidence = 0.99 ) 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 = βˆ’ = =0.0395 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 0.75βˆ’0.0395<𝑝< 0.71<𝑝<0.79

16 Estimating 𝑝 In the Binomial Distribution
EXAMPLE : Suppose 800 students are selected at random from a student body of 20,000 and that they are each given a shot to prevent a certain type of flu. These 800 students are then exposed to the flu, and 600 of them do not get the flu. What is the probability 𝑝 that the shot will be successful for any single student selected at random from the entire population of 20,000 students ? Confidence interval for 𝑝 : 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 where 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 OR 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 Find a 99% confidence interval for 𝑝 in our example 𝑧 0.99 =2.58 ( from the critical value table – level of confidence = 0.99 ) 𝐸= 𝑧 𝑐 𝑝 (1βˆ’ 𝑝 ) 𝑛 = βˆ’ = =0.0395 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 0.75βˆ’0.0395<𝑝< 0.71<𝑝<0.79 We are 99% confident that the probability a flu shot will be effective for a student selected at random is between 0.71 and 0.79

17 Estimating 𝑝 In the Binomial Distribution
EXAMPLE #2 : A random sample of 188 books purchased at a local bookstore showed that 66 of the books were murder mysteries. Let 𝑝 represent the proportion of books sold by this store that are murder mysteries. Find a 90% confidence interval for 𝑝.

18 Estimating 𝑝 In the Binomial Distribution
EXAMPLE #2 : A random sample of 188 books purchased at a local bookstore showed that 66 of the books were murder mysteries. Let 𝑝 represent the proportion of books sold by this store that are murder mysteries. Find a 90% confidence interval for 𝑝. SOLUTION : Find the point estimate 𝑝 = π‘Ÿ 𝑛 = =0.35 π‘ž =1βˆ’ 𝑝 =1βˆ’0.35=0.65

19 Estimating 𝑝 In the Binomial Distribution
EXAMPLE #2 : A random sample of 188 books purchased at a local bookstore showed that 66 of the books were murder mysteries. Let 𝑝 represent the proportion of books sold by this store that are murder mysteries. Find a 90% confidence interval for 𝑝. SOLUTION : 1. Find the point estimate 𝑝 = π‘Ÿ 𝑛 = =0.35 π‘ž =1βˆ’ 𝑝 =1βˆ’0.35=0.65 2. Find 𝑧 𝑐 𝑧 𝑐 = ( from table when 𝑐=0.90 )

20 Estimating 𝑝 In the Binomial Distribution
EXAMPLE #2 : A random sample of 188 books purchased at a local bookstore showed that 66 of the books were murder mysteries. Let 𝑝 represent the proportion of books sold by this store that are murder mysteries. Find a 90% confidence interval for 𝑝. SOLUTION : 1. Find the point estimate 𝑝 = π‘Ÿ 𝑛 = =0.35 π‘ž =1βˆ’ 𝑝 =1βˆ’0.35=0.65 2. Find 𝑧 𝑐 𝑧 𝑐 = ( from table when 𝑐=0.90 ) 3. Find 𝐸 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 = (0.35)(0.65) 188 = =0.058

21 Estimating 𝑝 In the Binomial Distribution
EXAMPLE #2 : A random sample of 188 books purchased at a local bookstore showed that 66 of the books were murder mysteries. Let 𝑝 represent the proportion of books sold by this store that are murder mysteries. Find a 90% confidence interval for 𝑝. SOLUTION : 1. Find the point estimate 𝑝 = π‘Ÿ 𝑛 = =0.35 π‘ž =1βˆ’ 𝑝 =1βˆ’0.35=0.65 2. Find 𝑧 𝑐 𝑧 𝑐 = ( from table when 𝑐=0.90 ) 3. Find 𝐸 𝐸= 𝑧 𝑐 𝑝 π‘ž 𝑛 = (0.35)(0.65) 188 = =0.058 4. Find the confidence interval 𝑝 βˆ’πΈ<𝑝< 𝑝 +𝐸 0.35βˆ’0.058<𝑝< 0.29<𝑝<0.41

22 Estimating 𝑝 In the Binomial Distribution
How to Find Sample Size 𝑛 for Estimating a Proportion 𝑝 𝑛=𝑝(1βˆ’π‘) 𝑧 𝑐 𝐸 if you have a preliminary estimate for 𝑝 𝑛= 𝑧 𝑐 𝐸 if you do not have a preliminary estimate for 𝑝 where 𝐸= specified maximal error of estimate 𝑧 𝑐 = critical value from the normal distribution for the desired confidence level c. Also : increase sample size 𝑛 to ensure that 𝑛𝑝>5 and π‘›π‘ž>5

23 Estimating 𝑝 In the Binomial Distribution
How to Find Sample Size 𝑛 for Estimating a Proportion 𝑝 𝑛=𝑝(1βˆ’π‘) 𝑧 𝑐 𝐸 if you have a preliminary estimate for 𝑝 𝑛= 𝑧 𝑐 𝐸 if you do not have a preliminary estimate for 𝑝 where 𝐸= specified maximal error of estimate 𝑧 𝑐 = critical value from the normal distribution for the desired confidence level c. Also : increase sample size 𝑛 to ensure that 𝑛𝑝>5 and π‘›π‘ž>5 Find the sample size needed if there is no preliminary estimate for 𝑝 for 95% confidence level that is not in error by 0.01 either way.

24 Estimating 𝑝 In the Binomial Distribution
How to Find Sample Size 𝑛 for Estimating a Proportion 𝑝 𝑛=𝑝(1βˆ’π‘) 𝑧 𝑐 𝐸 if you have a preliminary estimate for 𝑝 𝑛= 𝑧 𝑐 𝐸 if you do not have a preliminary estimate for 𝑝 where 𝐸= specified maximal error of estimate 𝑧 𝑐 = critical value from the normal distribution for the desired confidence level c. Also : increase sample size 𝑛 to ensure that 𝑛𝑝>5 and π‘›π‘ž>5 Find the sample size needed if there is no preliminary estimate for 𝑝 for 95% confidence level that is not in error by 0.01 either way. 𝑛= 𝑧 𝑐 𝐸 2 = = ,416 =9604


Download ppt "Estimating "

Similar presentations


Ads by Google