MHB What is the formula for determining the length of a confidence interval?

Click For Summary
To determine the length of a confidence interval for a proportion, the formula used is L = 2 * (σ * z) / √n, where σ is the estimated standard deviation of the proportion. For proportions, the estimated standard deviation is σₚ = √(p̂(1 - p̂)), requiring that n * p̂ > 10 and n * (1 - p̂) > 10 for reliability. When aiming for a maximum length L_max of 0.03 at a confidence level of 95% (z = 1.96), the sample size n can be calculated using the rearranged formula n ≥ (153664 * p̂(1 - p̂)) / 9. The discussion confirms the maximum length as L_max = 0.03. Understanding these calculations is crucial for establishing accurate confidence intervals in research.
mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :o

A research institute wants to establish a confidence interval for the quota of working people in a city. Let $\hat{p}_n $ be the estimated quota, based on a sample of size $n$. It is assumed that $n> 30$.
How can one determine the length of the confidence interval?

Generally this is equal to $L = 2 \cdot \frac{\sigma \cdot z}{\sqrt{n}}$, right?

Do you have to use the $\hat{p}_n$ in the formula in this case? But how?

(Wondering)
 
Physics news on Phys.org
Hey mathmari! (Wave)

The distribution of a proportion is a special case.
It has a z-distribution with an estimated standard deviation $\sigma_{\hat{p}_n} = \sqrt{\hat{p}_n(1-\hat{p}_n)}$.
And we should have $n \hat{p}_n > 10$ and $n (1 − \hat{p}_n) > 10$ to ensure it is sufficiently reliable.
 
I like Serena said:
The distribution of a proportion is a special case.
It has a z-distribution with an estimated standard deviation $\sigma_{\hat{p}_n} = \sqrt{\hat{p}_n(1-\hat{p}_n)}$.
And we should have $n \hat{p}_n > 10$ and $n (1 − \hat{p}_n) > 10$ to ensure it is sufficiently reliable.

Ah ok!

So, the length is equal to $$L = 2 \cdot \frac{\sigma_{\hat{p}_n} \cdot z}{\sqrt{n}}= 2 \cdot \frac{ \sqrt{\hat{p}_n(1-\hat{p}_n)} \cdot z}{\sqrt{n}}$$ where $z$ depends on the confidence level $1-\alpha$, right? (Wondering)
Suppose that $1-\alpha=0.95$. I want to determine $n$ so that the length of confidence interval is not bigger that $L_{\text{max}}=0.03$.

We have that $z =1.96$.

Then $$L_{\text{max}}=0.03 \Rightarrow 2 \cdot \frac{ \sqrt{\hat{p}_n(1-\hat{p}_n)} \cdot 1.96}{\sqrt{n}}\leq 0.03\Rightarrow \frac{ \sqrt{\hat{p}_n(1-\hat{p}_n)} }{\sqrt{n}}\leq \frac{3}{392} \Rightarrow \frac{ \hat{p}_n(1-\hat{p}_n) }{n}\leq \frac{9}{153664}\Rightarrow n\geq \frac{153664\hat{p}_n(1-\hat{p}_n)}{9}$$ right? We cannot continue from here, can we? (Wondering)
 
Last edited by a moderator:
Indeed. (Nod)
Btw, do we have $L_{\text{max}}=0.04$ or $L_{\text{max}}=0.03$?
 
I like Serena said:
Indeed. (Nod)
Btw, do we have $L_{\text{max}}=0.04$ or $L_{\text{max}}=0.03$?

Oh, it is $L_{\text{max}}=0.03$. (Tmi)
 
First trick I learned this one a long time ago and have used it to entertain and amuse young kids. Ask your friend to write down a three-digit number without showing it to you. Then ask him or her to rearrange the digits to form a new three-digit number. After that, write whichever is the larger number above the other number, and then subtract the smaller from the larger, making sure that you don't see any of the numbers. Then ask the young "victim" to tell you any two of the digits of the...

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
4
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
26
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K