Confidence intervals Flashcards
Module 12: Handout 23, 24, 25
Why do we even need the sample proportion?
We need it because we might not know the data for the population proportion. So, we must have an unbiased estimator sample proportion to best estimate the population proportion.
What is a confidence interval? (in easy terms)
It tells us how close the sample proportion is to the population proportion when we do not know the population proportion.
Confidence interval definition
Simply, a range of values over which a population statistic occurs with a certain probability
What is the first thing you need to construct a confidence interval?
A confidence level
What is a confidence level?
The percentage by which we are confident that the confidence interval will contain the population proportion.
what is another word for population?
true
Confidence level example
If i choose a 90% confidence level, then 90% of the time our confidence interval will contain the true proportion
Confidence interval steps
1) Choose confidence level
2) Know associated critical z-score
3) calculate the margin of error (E)
4) Confidence interval is then the interval ((p hat) minus (E), (p hat) plus (E))
Finding critical z-score steps
1) Take the complement of the confidence level aka the alpha (a)
1. 1) complement of 90% is 10%, a=10%
2) Divide alpha in half (a/2 = 10%/2 = 5%)
3) Take complement of a/2 (Complement of 5% is 95%)
4) Use calc invnorm and calculate (invnorm(0.95))=1.645
What is alpha?
The complement percentage of the confidence level, such as how the complement of 90% is 10%, so 10% = alpha
Invnorm on calc
“2nd” “vars” “3” aka invnorm
Margin of error formula
E = (associated critical z-score) times (square root ((p hat times q hat)/(n))
(A1) Example question about students emailing teacher
A teacher wants to know the # of his students that send him at least 1 email. He picks 40 of his students at random and checks to see how many of the 40 sent him an email. Suppose 14 have sent him an email.
(A2) What is the sample proportion?
Sample proportion or (p hat) equals 14/40 which equals 0.35 or 35%, since 14 students out of the 40 students sent him an email
(A3) What confidence level does the teacher choose?
He chooses 90% confidence level
(A4) What is the associated critical z-score if the confidence level is 90%?
The complement of 90% is 10%. Now divide 10% in half = 5%. The complement of 5% is 95%. So then use calc invnorm(0.95) and the answer is 1.645
(A5) What is q hat?
It is the complement of the sample proportion. So the complement of 35% is 65%
(A6) Now what is the margin of error aka E?
I multiply (1.645) and the square root of ((0.35 times 0.65) divided by (40)) = 0.124 = E
(A7) What is the confidence interval?
[{(p hat) minus (E)} comma {(p hat) plus (E)}] which is (0.35-0.124, 0.35+0.124) = (0.226, 0.474) or 0.226 < p < 0.474
(A8) What is the answer?
The teacher can be 90% confident that the percentage of his students (the population) sending him an email is on the interval from 22.6% to 47.4%