Lecture 25 - Inferential Statistics: Extensive Guide to Confidence Intervals for Proportions and Means
The Paradigm of Inferential Statistics
Transition from Descriptive to Inferential Statistics:
Descriptive statistics involve collecting data and computing basic measures such as means (), proportions (), and standard deviations ().
Inferential statistics shift the focus to using these sample statistics to make authoritative statements about a population parameter.
Two Primary Methods of Statistical Inference:
Hypothesis Testing: Evaluates the plausibility of a single hypothesized value of a parameter. This is often called point estimation because it focuses on a specific point.
Confidence Intervals: Calculates a range of plausible values that the population parameter might take. This is referred to as interval estimation.
Key Population Parameters:
The two primary parameters of interest are the population mean () and the population proportion ( or ).
Distinction between Statistics and Parameters: It is critical to distinguish between sample statistics (e.g., sample proportion) and population parameters. The purpose of this study is to use sample statistics to estimate population parameters.
Confidence Intervals for Population Proportion: A Comprehensive Recap
The General Formula for Proportion CI:
Components Defined:
Sample Estimate (): The proportion observed in the sample data.
Multiplier (): A value determined by the desired confidence level, sourced from the standard normal (z) table.
Standard Error (): Measures the variability of the sample proportion across different samples.
Margin of Error: The product of the multiplier and the standard error ().
Conservative Margin of Error:
Derived from lectures 6 and 7, this is calculated as .
Common Multipliers () for the Normal Distribution:
90% Confidence:
95% Confidence:
Interpretation of Confidence:
In frequentist theory, being "95% confident" means that if the sampling process were repeated 100 times, approximately 95 of those computed intervals would capture the true population proportion.
It is an objective reality based on long-run sampling, not a subjective feeling.
Theoretical Assumptions for Proportion Confidence Intervals
1. Representativeness: The sample must be representative of the population of interest. Using non-probability sampling methods generally results in invalid ("nonsense") data.
2. Independence: Samples must be collected independently. Probability-based (random) sampling usually satisfies this requirement by default.
3. Large Sample Size Conditions: The sample size must be large enough to satisfy:
n \times \hat{p} > 10
n \times (1 - \hat{p}) > 10
Example Case (Alien Survey Data):
,
Check 1: (which is > 10).
Check 2: (which is > 10).
Conclusion: The assumption for sample size is met.
Confidence Intervals for Population Mean
Structure of the Formula:
The structure is identical to that of proportions: .
Formula:
Components Defined:
Sample Mean (): The statistic used to estimate the population mean ().
Sample Standard Deviation (): Used to calculate the standard error.
Sample Size (): Number of observations in the sample.
Standard Error for Means: .
t-Multiplier (): Obtained from Student's t-distribution rather than the normal (z) distribution.
The Student’s t-Distribution
Characteristics:
Bell-shaped and centered at zero.
More spread out than the normal distribution with "wider tails" to account for increased uncertainty when using sample standard deviation.
Degrees of Freedom ():
Determined by .
The multiplier depends on both the degrees of freedom and the confidence level.
Finding the t-Multiplier:
Using a t-table, align the (rows) with the confidence level (columns).
Example: For a 99% CI with 15 degrees of freedom (), the multiplier is .
Relationship to Normal Distribution: As , the t-distribution becomes narrower and effectively identical to the standard normal distribution. For infinite degrees of freedom, a 90% level yields a multiplier of and 95% yields .
Practical Application: Human Body Temperature
Background: An observational study from the Journal of Statistical Education tested if average human body temperature is actually .
Sample Data:
Calculation Walkthrough (95% CI):
Find df: .
Find Multiplier (): From the table, for at 95% confidence, .
Standard Error: .
Margin of Error: .
Lower Bound:
Upper Bound:
Resulting Interval:
Interpretation: We are 95% confident that the population average of human body temperatures is between and .
Comparison to Excel: Excel is more precise than the table. While we used , Excel uses , leading to very slight differences in limits.
Relationship Between Hypothesis Tests and Confidence Intervals
Consistency: The two methods are mathematically related and consistent with each other.
In the body temperature example, the null hypothesis () was rejected.
Correspondingly, the value falls outside the 95% confidence interval ( to ).
Direct Linkage: A confidence level of corresponds directly to a significance level of . For instance, a 95% CI () will exclude any null hypothesis value that would be rejected by a two-tailed test at the level.
Proportion Caveat: This strict consistency holds perfectly for means. For proportions, the standard error formulas slightly differ (Hypothesis tests use the hypothesized , while CI uses sample ), but results remain generally consistent.
Assumptions for Confidence Intervals of Means
1. Representativeness: Sample must be representative of the population.
2. Independence: Data points must be independent (random sampling).
3. Large Sample Size:
General rule: .
If n < 30: You must either assume the population is normally distributed or verify that the sample data is fairly unimodal and symmetric without extreme outliers.
Questions & Discussion
Q: Do we use the sample proportion or population proportion in the CI?
Response: We use the sample proportion () because the population proportion is the unknown parameter we are trying to estimate. It’s a subtle but vital distinction.
Q: Should we calculate the body temperature CI together as a class or individually?
Response: The class voted to calculate it together. The resulting range was approximately to .
Q: What is the correct way to start the interpretation?
Response: Always start with "We are [X]% confident that…". Ensure you mention the "population average" or "population mean" and define the context (e.g., body temperatures). Avoid terms like "sure" or "likely."