Notes
Confidence intervals for $p$
Point estimate $\pm$ margin of error:
- Conditions: random sample, 10% condition ($n \le 10\%$ of the population), large counts ($n\hat p \ge 10$ and $n(1 - \hat p) \ge 10$).
- $z^* = 1.645$ for 90%, $1.96$ for 95%, $2.576$ for 99%.
- Interpretation: "We are 95% confident that the interval from ___ to ___ captures the true proportion of [context]."
- Confidence level meaning: if we took many samples and built an interval from each, about 95% of them would capture $p$.
- Larger $n$ makes the margin of error smaller; higher confidence makes it bigger.
Significance tests for $p$
1. State: $H_0: p = p_0$ and $H_a: p >, <, \ne p_0$, with $\alpha$ and a definition of $p$. 2. Plan: one-sample $z$ test; check conditions using $p_0$. 3. Do: $\displaystyle z = \frac{\hat p - p_0}{\sqrt{p_0(1 - p_0)/n}}$ and the p-value. 4. Conclude: if p-value $< \alpha$, reject $H_0$; there is convincing evidence for $H_a$. Otherwise fail to reject.
- p-value: the probability of getting a result at least as extreme as the one observed, assuming $H_0$ is true.
- Type I error: reject a true $H_0$ (probability $\alpha$). Type II error: fail to reject a false $H_0$. Power $= 1 - P(\text{Type II})$; it goes up with larger $n$ or larger $\alpha$.
Two proportions
- Interval: $\displaystyle (\hat p_1 - \hat p_2) \pm z^*\sqrt{\frac{\hat p_1(1 - \hat p_1)}{n_1} + \frac{\hat p_2(1 - \hat p_2)}{n_2}}$.
- Test of $H_0: p_1 = p_2$ uses the pooled proportion $\displaystyle \hat p_c = \frac{x_1 + x_2}{n_1 + n_2}$.
- If an interval for $p_1 - p_2$ contains 0, there's no convincing evidence of a difference.
Chi-square tests for two-way tables
- Homogeneity: several populations or treatments, one categorical variable. Independence: one sample, two categorical variables.
- Expected count $\displaystyle = \frac{\text{row total} \times \text{column total}}{\text{table total}}$; all expected counts should be at least 5.
- $\displaystyle \chi^2 = \sum \frac{(\text{observed} - \text{expected})^2}{\text{expected}}$ with $df = (\text{rows} - 1)(\text{columns} - 1)$.
Topics in this unit
Each topic has its own short notes and practice.
- 3.1Estimators
- 3.2Sampling Distributions for Sample Proportions
- 3.3Constructing a Confidence Interval for a Population Proportion
- 3.4Justifying a Claim Based on a Confidence Interval for a Population Proportion
- 3.5Setting Up a Test for a Population Proportion
- 3.6p-Values
- 3.7Carrying Out a Test for a Population Proportion
- 3.8Potential Errors When Performing Tests
- 3.9Sampling Distributions for the Difference Between Sample Proportions
- 3.10Constructing a Confidence Interval for the Difference Between Two Population Proportions
- 3.11Justifying a Claim Based on a Confidence Interval for the Difference Between Two Population Proportions
- 3.12Setting Up a Test for the Difference Between Two Population Proportions
- 3.13Carrying Out a Test for the Difference Between Two Population Proportions
- 3.14Setting Up a Chi-Square Test for Homogeneity or Independence
- 3.15Carrying Out a Chi-Square Test for Homogeneity or Independence
Practice
$\displaystyle \frac{220}{400} = 0.55$.
The margin of error has $\displaystyle \sqrt n$ in the denominator.
Half the width: $\displaystyle \frac{0.50 - 0.42}{2} = 0.04$.
A p-value is computed assuming the null hypothesis is true.
Type I means rejecting a true null hypothesis.
0 is a plausible value for the difference.
$(3 - 1)(4 - 1) = 6$.
More data makes it easier to detect a false null hypothesis.
Free response
Write your answer first, then open the scoring guide.
Free-response question
A company claims 20% of its customers buy a warranty. In a random sample of 250 customers, 38 bought one. Is this convincing evidence that fewer than 20% buy a warranty? Use $\alpha = 0.05$.
(a) State the hypotheses and check the conditions.
Show the answer and scoring guide
$H_0: p = 0.20$, $H_a: p < 0.20$, where $p$ is the true proportion of all customers who buy a warranty. Random sample; 250 is less than 10% of all customers (assumed); $250(0.2) = 50 \ge 10$ and $250(0.8) = 200 \ge 10$.
Check off the points you earned:
(b) Calculate the test statistic and p-value.
Show the answer and scoring guide
$\displaystyle \hat p = \frac{38}{250} = 0.152$. $\displaystyle z = \frac{0.152 - 0.20}{\sqrt{0.2(0.8)/250}} = \frac{-0.048}{0.0253} \approx -1.90$. p-value $\approx 0.029$.
Check off the points you earned:
(c) State a conclusion in context.
Show the answer and scoring guide
Because $0.029 < 0.05$, reject $H_0$. There is convincing evidence that fewer than 20% of all the company's customers buy a warranty.
Check off the points you earned: