Chapter 10: Comparing Two Populations or Treatments
Comparing Two Populations or Treatments
- Chapter 10 Lessons Overview * Lesson 10.1: Estimating a Difference Between Two Proportions (Page 590). * Lesson 10.2: Testing a Claim about a Difference Between Two Proportions (Page 599). * Lesson 10.3: Estimating a Difference Between Two Means (Page 610). * Lesson 10.4: Testing a Claim about a Difference Between Two Means (Page 620). * Lesson 10.5: Paired Data: Estimating a Mean Difference (Page 631). * Lesson 10.6: Paired Data: Testing a Claim about a Mean Difference (Page 641).
Estimating a Difference Between Two Proportions
Goal of the Lesson * Estimate the difference $p_1 - p_2$ between the proportions of successes in Population 1 and Population 2. * The ideal strategy is to take a separate random sample from each population and use the difference between sample proportions as the point estimate.
Describing the Sampling Distribution of * Let be the proportion of successes in an SRS of size $n_1$ from a large population with proportion $p_1$. * Let be the proportion of successes in an SRS of size $n_2$ from a large population with proportion $p_2$. * Shape: Approximately normal if $n_1p_1$, $n_1(1-p_1)$, $n_2p_2$, and $n_2(1-p_2)$ are all at least $10$. * Mean: . * Standard Deviation:
Conditions for Constructing a Confidence Interval for $p_1 - p_2$ * Random: Data must come from separate random samples from the two populations of interest or from two groups in a randomized experiment. * Large Counts: The counts of "successes" and "failures" in each sample or group (, , , and ) must all be at least $10$. * Application Note: Because $p_1$ and $p_2$ are unknown when estimating, use observed sample proportions and to check the Large Counts condition. Observed counts should be rounded to the nearest integer.
Importance of Random Condition * Random sampling allows for the generalization of results to the populations of interest. * Random assignment in an experiment permits cause-and-effect conclusions.
Two-Sample z Interval for a Difference Between Two Proportions
General Formula for Confidence Intervals * *
Standard Error of * Since $p_1$ and $p_2$ are unknown parameters, they are replaced with and to calculate the standard error ($SE$):
Calculating the C% Confidence Interval * If conditions are met, the interval is: * is the critical value for the standard normal distribution with $C\%$ of its area between and .
Example: Facebook usage (Teens vs. Adults) * Data: SRS of $1502$ U.S. adults (69% use Facebook); SRS of $743$ U.S. teens (51% use Facebook). * Parameters: = proportion of all U.S. adults using Facebook; = proportion of all U.S. teens using Facebook. * Large Counts Check: * Adult successes: * Adult failures: * Teen successes: * Teen failures: * All counts . * Calculation (95% CI): * *
Interpreting the Confidence Interval * Standard Sentence: "We are 95% confident that the interval from 0.137 to 0.223 captures the true difference in the proportion of all U.S. adults and teens who use Facebook." * Plain Language Sentence: "The interval suggests that adult Facebook use is between 13.7 and 22.3 percentage points greater than teen Facebook use in the United States." * Switching Order: If the order was switched (Teens - Adults), the interval would be . Both are correct if the order of subtraction is defined.
The Four-Step Process for Inference
Step 1: STATE * State the parameters you want to estimate and the confidence level.
Step 2: PLAN * Identify the methodology (e.g., Two-sample z interval for ) and check the Random and Large Counts conditions.
Step 3: DO * Perform calculations to find the point estimate, margin of error, and final interval.
Step 4: CONCLUDE * Interpret the interval in context, including the descriptive second sentence regarding the size and direction of the difference.
Example: President Trump Approval Rating (Jan 2017 to Oct 2019) * Problem: Poll of $1525$ adults in Jan 2017 ($686$ approved); poll of $1526$ adults in Oct 2019 ($595$ approved). Construct 90% CI for change ($p_{19} - p_{17}$). * STATE: 90% CI for . * PLAN: Two-sample z interval. Random: separate random samples. Large Counts: $595, 931, 686, 839$ are all . * DO: . * * * CONCLUDE: We are 90% confident that the change in proportion of approval was between a decrease of 3.1 and 8.9 percentage points. Note: This differs from identifying a percentage decrease ($6/45 = 13.3\%$ decrease compared to 6 percentage points).
Testing a Claim about a Difference Between Two Proportions
Introduction to Significance Tests * Tests determine if an observed difference reflects an actual population difference or chance variation. * Null Hypothesis ($H_0$): $H_0: p_1 - p_2 = 0$ (or $H_0: p_1 = p_2$). * Alternative Hypothesis ($H_a$): Can be $p_1 - p_2 > 0$, $p_1 - p_2 < 0$, or .
Conditions for Significance Tests * Same as confidence intervals: Random and Large Counts.
Standardized Test Statistic (z) * z = \frac{\text{statistic} - \text{null value}}{\text{standard deviation of statistic}}} * In a significance test, we assume $H_0$ is true ($p_1 = p_2$). Therefore, we do not use separate sample proportions in the denominator for standard deviation.
Combined (Pooled) Sample Proportion ($p_c$) * Combine data from both samples to estimate the common proportion ($p_c$): * Test Statistic Formula:
Example: Children Eating Breakfast * Data: School 1 (SRS $n=80$, $61$ ate); School 2 (SRS $n=150$, $124$ ate). * Hypotheses: $H_0: p_1 - p_2 = 0$; . * Calculations: * . * . * * P-value: Using Table A or technology for a two-sided test: . * Conclusion: With a P-value of 0.2420 > , fail to reject $H_0$. There is not convincing evidence of a difference.
Inference for Randomized Experiments
Comparison to Random Sampling * Experiments often use recruited volunteers rather than random selection. * Random assignment to treatments allows for cause-and-effect conclusions applicable to "people like those in the study."
Example: Financial Incentives to Quit Smoking * Study: GM sponsored study; 878 volunteers. * Groups: 439 assigned to $750 incentivized group ($15\%$ quit); 439 assigned to traditional group ($5\%$ quit). * Hypotheses: $H_0: p_F - p_T = 0$; $H_a: p_F - p_T > 0$ at . * Calculations: * * * P-value: Approximately 0. * Conclusion: Reject $H_0$. There is convincing evidence that financial incentives help employees like these quit smoking. * Type I Error Risk: Rejecting $H_0$ when it is true would mean spending money on an ineffective method.
Simulation-Based Inference * Researchers can simulate repeating the random assignment many times under the assumption that the null hypothesis is true (the treatment has no effect). * If the observed difference (e.g., 0.10) never or rarely occurs in simulations (e.g., 0 times in 500 repetitions), the result is statistically significant (Estimated P-value ).
Technology Corner: Calculations for Two Proportions
Applet Usage (One Categorical Variable, Multiple Groups) 1. Choose "Two-way table" input. 2. Enter variable and group names. 3. Input success and failure counts. 4. Select "2-sample z interval" or "2-sample z test". 5. Note: Set preferences to proportions if output is in percentages.
TI-83/84 Calculator Usage * Confidence Intervals: STAT TESTS B: 2-PropZInt. Enter inputs (). $x$ values must be integers. * Significance Tests: STAT TESTS 6: 2-PropZTest. Enter inputs and select alternative hypothesis orientation (, $< p_2$, or $> p_2$). Highlight "Calculate" or "Draw".