






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







STAT 515 -- Chapter 7: Confidence Intervals
Example: Assume we have a sample of size 100 from a population with Ļ = 0.1.
From CLT:
Empirical Rule: If we take many samples, calculating X
each time, then about 95% of the values of X
will be between:
Therefore:
This interval is called an approximate 95% āconfidence intervalā for μ.
Confidence Interval: An interval (along with a level of confidence) used to estimate a parameter.
Confidence level: The percentage of all CIs (if we took many samples, each time computing the CI) that contain the true parameter.
Note: The endpoints of the CI are statistics, calculated from sample data. (The endpoints are random, not the parameter!)
In general, if X
is normally distributed, then in 100(1 ā α)% of samples, the interval
will contain μ.
Note: zα/2 = the z-value with α/2 area to the right:
100(1 ā α)% CI for μ: X
± z (^) α/2( Ļ^ / n )
Question: What does 95% confidence mean here, exactly?
The fact that contains μ āwith 95% confidenceā implies the method used would capture μ 95% of the time, if we did this over many samples.
Picture:
A WRONG statement: āThere is .95 probability that μ is between 2.81 and 4.19.ā Wrong! μ is not random ā μ doesnāt change from sample to sample. Itās either between 2.81 and 4.19 or itās not.
Level of Confidence
Recall example: 95% CI for μ was (2.81, 4.19).
90% CI:
Note tradeoff: If we want a higher confidence level, then the interval gets wider (less precise).
Confidence Interval for a Proportion
Estimating proportion is equivalent to estimating the binomial probability p.
Point estimate of p is the sample proportion:
Example 2: We wish to estimate the probability that a randomly selected part in a shipment will be defective. Take a random sample of 79 parts, and find 4 defective parts. Find a 95% CI for p.
Confidence Interval for the Variance Ļ^2 (or for s.d. Ļ)
Recall that if the data are normally distributed,
2
( 1 )^2 Ļ
n ā s has a Ļ^2 sampling distribution with ( n ā 1) d.f.
This can be used to develop a (1 ā α)100% CI for Ļ^2 :
Example: Trout data example (assume data are normal
95% CI for Ļ:
Sample Size Determination
Note that the bound (or margin of error) B of a CI equals half its width.
For the CI for the mean (with Ļ known), this is:
For the CI for the proportion, this is:
Note: When the sample size n is bigger, the CI is narrower (more precise).
We often want to determine what sample size we need to achieve a pre-specified margin of error and level of confidence. Solving for n :
CI for mean:
CI for proportion:
Note: Always round n up to the next largest integer.
These formulas involve Ļ, p and q , which are usually unknown in practice. We typically guess them based on prior knowledge ā often we use p = 0.5, q = 0.5.
Example 1: How many patients do we need for a blood pressure study? We want a 90% CI for mean systolic blood pressure reduction, with a margin of error of 5 mmHg. We believe that Ļ = 10 mmHg.
Example 2: Pollsters want a 95% CI for the proportion of voters supporting President Bush. They want a 3% margin of error ( B = .03). What sample size do they need?