WK10 - Statistical inference: population proportion: Confidence interval for a proportion
Proportions: Statistical Inference
Introduction to Proportions
- Quantitative variables can be analyzed to determine if values exceed a threshold.
- Focus shifts to the proportion of individuals or objects with a specific characteristic.
- "Successes" represent individuals with the characteristic of interest.
- The population proportion is denoted as P.
Point Estimate and Sampling Distribution
- Objective: to set up statistical inference for proportion, determining point estimate and sampling distribution.
- x: Number of successes in a sample.
- n: Total number of units in a sample.
- The point estimate of the population proportion: p^=nx. p^ is a single best guess for the true population proportion P.
Examples of Calculating Sample Proportion
- Example 1: 107 out of 130 students think A.
- p^=130107≈0.823, or 82.3%.
- Example 2: 848 out of 1000 people think B.
- p^=1000848=0.848, or 84.8%.
- Example 3: 58 out of 125 scientists were successful.
- p^=12558=0.464, or 46.4%.
Sampling Distribution of Proportions
- p^ depends on the sample; to assess its reliability, we examine the sampling distribution of proportions.
- Repeated samples of the same size are taken.
- The mean of sample proportions approaches the population proportion P as sample size increases.
- The standard deviation of the distribution of sample proportions: nP(1−P).
Large Sample Size and Normality
- For large n, the sampling distribution of p^ is approximately normal.
- Mean: P.
- Standard Deviation: nP(1−P).
- Due to not knowing P, p^ is used as an estimate in the standard error calculation.
- Standard Error: np^(1−p^).
- This allows the use of Z procedures.
Confidence Interval for Population Proportion
- General Formula: Point Estimate ± (Multiplier × Standard Error).
- Point Estimate: Sample proportion p^.
- Multiplier: Critical value Z∗ from the standard normal distribution for the desired confidence level.
- Confidence Interval Formula: p^±Z∗np^(1−p^).
- Conditions:
- n×p^≥15.
- n×(1−p^)≥15.
- Both conditions correspond to having at least 15 successes and 15 failures in the sample.
Adjustments for Small Sample Sizes: Plus Four Method
- Rationale: Large sample confidence intervals can be unstable and inaccurate with small samples.
- Method: Add four imaginary observations - two successes and two failures - to stabilize inferences.
- Adjusted point estimate: p~=n+4x+2.
- Adjusted confidence interval formula: p~±Z∗n+4p~(1−p~).
- Conditions for using the plus four method:
- Sample size n≥10.
- Confidence level C≥90%.
Example 1: Firstborn Children Gender
- Context: Investigate if boys are more likely to be born.
- Data: 25,468 firstborn children in the USA in 2005, with 13,973 being boys.
- Parameter of interest: Proportion of firstborn boys in the USA in 2005.
- Confidence level: 95%.
- Calculations:
- p^=2546813973≈0.548.
- n×p^=25468×0.548≈13957. (Number of successes).
- n×(1−p^)=25468×(1−0.548)≈11511. (Number of failures).
- Both values (13957, 11511) are significantly greater than 15, so the large sample approach can be used.
- Z∗ for a 95% confidence level: 1.96.
- Confidence Interval: 0.548±1.96254680.548(1−0.548).
- Result: (0.542, 0.554).
- Conclusion: We are 95% confident that the proportion of firstborn boys is between 54.2% and 55.4%.
- Since the entire interval is above 0.5 (50%), there's evidence to suggest that more boys than girls are born.
Example 2: Whelks Drilling into Mussels
- Context: Investigating the proportion of whelks that spontaneously drill into mussels.
- Data: 98 whelks, with 9 drilling into mussels.
- Confidence level: 95%.
- Calculations:
- p^=989≈0.092.
- n×p^=98×0.092=9. (Number of successes).
- n×(1−p^)=98×(1−0.092)≈89. (Number of failures).
- Since n \times \hat{p} = 9 < 15, the large sample method is not suitable.
- Using the plus four method:
- p~=98+49+2=10211≈0.108.
- Z∗ for a 95% confidence level: 1.96.
- Confidence Interval: 0.108±1.961020.108(1−0.108).
- Result: (0.045, 0.171).
- Conclusion: We are 95% confident that the proportion of whelks drilling into mussels is between 4.5% and 17.1%.
Summary of Conditions
- Large Sample Confidence Interval for Proportion:
- n×p^≥15 and n×(1−p^)≥15.
- Plus Four Method Confidence Interval for Proportion:
- Sample size n≥10.
- Confidence level C≥90%.