Docsity

Confidence Intervals: Estimating Parameters with Uncertainty, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
STAT 515 -- Chapter 7: Confidence Intervals
• With a point estimate, we used a single number to
estimate a parameter.
• We can also use a set of numbers to serve as
ā€œreasonableā€ estimates for the parameter.
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 μ.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Confidence Intervals: Estimating Parameters with Uncertainty and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

STAT 515 -- Chapter 7: Confidence Intervals

  • With a point estimate, we used a single number to estimate a parameter.
  • We can also use a set of numbers to serve as ā€œreasonableā€ estimates for the parameter.

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.

  • Values in the interval are considered ā€œreasonableā€ values for the 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?

  • If we took many samples and computed many 95% CIs, then about 95% of them would contain μ.

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).

  • For a 90% CI, we use t.05 (8 d.f.) = 1.86.
  • For a 99% CI, we use t.005 (8 d.f.) = 3.355.

90% CI:

99% CI:

Note tradeoff: If we want a higher confidence level, then the interval gets wider (less precise).

Confidence Interval for a Proportion

  • We want to know how much of a population has a certain characteristic.
  • The proportion (always between 0 and 1) of individuals with a characteristic is the same as the probability of a random individual having the characteristic.

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

  • how to check this?) s = 0.9 pounds, so s^2 = n = 9. Find 95% CI for σ^2.

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?