Statistics: Confidence Intervals and Margin of Error
Confidence Level and Interval
- Confidence Level: Specifies the degree of certainty (e.g., 95% confidence). This means we are 95% confident that the true population parameter lies within the interval we construct.
- Example: Shannon's coach wants 95% confidence that Emily averages 10 assists per set.
- Confidence Interval: Given an average claim (10 assists/set), the confidence interval might range between 9 and 11 assists.
- Unknown Standard Deviation: When population standard deviation (c3) is unknown, we use the sample standard deviation instead.
Margin of Error
- Margin of Error Formula:
- Where:
- E is the margin of error
- t is the t-value from the t-distribution based on confidence level and degrees of freedom
- s is the sample standard deviation
- n is the sample size
Degrees of Freedom
- Definition: The number of observations (n) that are free to vary. Calculated as:
- Example: For 6 tests, if 5 scores are free, the degrees of freedom is 5. It relates to how the remaining score is determined based on desired average.
Example Calculation: Confidence Interval for Sleeping Bags
Scenario: Prices of sleeping bags keep you warm between 20 and 45 degrees Fahrenheit.
Given Data:
- Sample standard deviation (s) = $28.97
- Mean price = $83.75
- Sample size (n) = 20
- Confidence level = 90%
Steps:
- Find degrees of freedom:
- Find the t-value for 90% confidence and df = 19 (from t-table):
- Calculate margin of error:
- Construct confidence interval:
- 83.75 \pm 11.2
- ext{Interval} = (72.55, 94.95)
Interpretation: With 90% confidence, the mean price of all sleeping bags is between $72.55 and $94.95.
Higher Confidence Levels
- Implication: Increasing confidence level (e.g., 99%) results in a wider confidence interval, as a greater spread reduces the risk of misrepresenting the true population value.
- Example for 99% Confidence:
- New alpha level = 0.01
- Find t-value for df = 19 and 99% confidence:
- New margin of error then calculated leading to a wider interval.
Sample Size Estimation
- Formula:
- Where:
- z is the z-value corresponding to the desired confidence level
- c3 is population standard deviation (not known), use sample standard deviation if unavailable
- E is the margin of error
- Rule of Thumb: Always aim for a sample size of at least 30 for sufficient data representation.