Professional Documents
Culture Documents
1 Confidence Intervals
Winter 2021
Mon: 4:30-6:20pm
Wed: 5:00-6:50pm
Professor: Clarence Au
Date: Apr 5th, 2021
Learning Objectives
10.1 Construct, interpret, and solve problems involving confidence
intervals for proportions.
10.2 Identify the relationship between sample size and a confidence
interval.
10.3 Compute sample sizes for confidence intervals for proportions.
10.4 State and check the assumptions for confidence intervals.
Textbook
Ch 11 p. 337 – 349
Practice Questions
Exercises Ch 11 #1, 3, 5, 7, 9, 11, 21, 23, 27, 29, 33, 41, 47, 55
Proportion - Example
https://student.desmos.com/activitybuilder/student-greeting/6015df355e2b940b5e464e46
Proportions – Point Estimate
p= ?
Proportion - Example
p= ?
R CODE
n<-516
p.hat<-289/n
q.hat<-1-p.hat
SE<-sqrt(p.hat*q.hat/n)
Problem: when you don’t know p, you can’t know how far away is.
A Range of Proportions
lower , upper
Interpreting Confidence Intervals
95/100 chance that the sample will hit the real population
proportion will fall between 0.5172 and 0.6028
Assumptions and Conditions
In a random sample of 1050 adult Canadians there are 556 people that were
willing to pay more for products with social and environmental benefits.
1. What is a 99% confidence interval for the proportion?
p hat = 556/1050, q hat = 1 – 556/1050, z* (based on 99%) = 2.575
SE = 0.015
= (0.4898, 0.5692)
2. How can we interpret the 99% confidence interval?
99% confidence that real population proportion will fall between 0.4898 and
0.5692
R CODE
n<-1050
p.hat<-556/n
q.hat<-1-p.hat
SE<-sqrt(p.hat*q.hat/n)
z.crit<-qnorm(0.99/2+0.5, 0, 1, lower.tail=TRUE)
p.hat-z.crit*SE
p.hat+z.crit*SE
Margin of Error
Considering the 95% confidence interval created for the proportion of voters.
1. If we wanted to be 98% confident, would our confidence interval need to be
wider or narrower?
- Wider interval
2. If we wanted to reduce the margin of error would our level of confidence be higher
or lower?
- Narrower reducing z* value, confidence level decrease
3. If we had sampled more people would the margin of error be larger or smaller?
- n increase, narrow, margin of error is smaller
Margin of Error
• It is the size of the sample that will control the width of the
confidence interval because the sample size n is proportional to
the reciprocal of the squared ME.
• To get an interval that is more precise without giving up
confidence we can choose a larger sample size!
• The sample size should be decided when the study is being
designed so that you can obtain your desired level of
confidence.
Margin of Error
R CODE
p.hat<-289/516
q.hat<-1-p.hat
ME <- 0.05
z.crit<-qnorm(0.95/2+0.5, 0, 1, lower.tail=TRUE)
n<-(z.crit/ME)^2*p.hat*q.hat
Determining the Sample Size - Unknown