الوحدة ٤ · الاستدلال الإحصائي للنسب والمتوسطات والانحدار
📌 AP Statistics Unit 4 — Statistical Inference25–35% of exam · Confidence intervals · Significance tests · Proportions & means · Chi-square & regression slope · Type I/II errors & Power
Statistical inference draws conclusions about unknown population parameters from sample data. The two primary pillars are confidence intervals (estimating unknown parameters with a margin of error) and significance tests (assessing empirical evidence regarding claims). Always follow the 4-step process: State, Plan, Do, Conclude.
Construct confidence intervals using the standard anatomy \(\text{statistic} \pm (\text{critical value})(\text{standard error})\), articulate formal contextual interpretations, and evaluate the logic of significance testing.
منحنى التوزيع الطبيعي المعياري والمساحة المظللة تحت المنحنى في الوحدة أربعة · الاستدلال الإحصائي للنسب والمتوسطات والانحدار. N(0, 1)N(0,1) ، P(Z >= 1.28) approximately 0.1003P(Z≥1.28)≈0.1003شجرة الاحتمالات لتجربتين مستقلتين وتطبيق قاعدة ضرب احتمالات الفروع في الوحدة أربعة · الاستدلال الإحصائي للنسب والمتوسطات والانحدار.
Formal Interpretation of Confidence Interval (Mandatory Rubric Structure):
'We are C% confident that the interval from [lower bound] to [upper bound] captures the true [population parameter in context with units].'
Formal Interpretation of Confidence Level C%:
'If we were to take many random samples of the same size from this population and construct a C% confidence interval from each sample, about C% of the resulting intervals would capture the true [population parameter in context].'
Notice: The true parameter is a fixed constant; the interval is the random variable whose boundaries change from sample to sample.
⊙ مستكشف · هامش الخطأ مقابل حجم العينة
تفاعلي
إحصاءة العينة وفترة الثقة الناتجة
الكمية
القيمة
SE = \(s / \sqrt{n}\)\(2.400\)
هامش الخطأ \((z* \approx 1.96)\)\(4.70\)
95% CI\((69.30, 78.70)\)
حرّك \(n\) إلى see هامش الخطأ shrink في التناسب إلى \(1/\sqrt{n}\). إلى halve هامش الخطأ، you يحتاج أربعة مرات عينة حجم.
◆ Why It Works — First-Principles Derivation (Unit 4 · Statistical Inference: Proportions, Means & Slopes)
Why Variance Scales as \(a^2\) and Independent Variances Always Add: By definition, \(\operatorname{Var}(Y) = \mathbb{E}[(Y - \mu_Y)^2]\). For \(Y = aX - bW\) with independent \(X, W\), subtracting its mean \(\mu_Y = a\mu_X - b\mu_W\) gives:
Because independence implies \(\operatorname{Cov}(X, W) = 0\), the cross term vanishes and \((-b)^2 = +b^2\), proving \(\operatorname{Var}(aX - bW) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(W)\). Uncertainty compounds whether random variables are added or subtracted.
المستوى ١ (التأسيس) — مثال محلول
المسألة. A 95% confidence interval for the proportion of registered voters who support an education bond is \((0.52, 0.58)\). Interpret this interval in context, and determine whether there is convincing evidence that a majority supports the bond.
▸ عرض خطوات الحل بالتفصيل
Interpretation: We are 95% confident that the interval from 0.52 to 0.58 (or 52% to 58%) captures the true proportion of all registered voters in the district who support the bond.
Conclusion: Yes, because the entire 95% confidence interval lies strictly above 0.50 (50%), there is convincing statistical evidence that a majority of registered voters support the bond.
Worked Example \(B\) — Unit 4 · Statistical Inference: Proportions, Means & Slopes (Medium Application)
المسألة. A social scientist is investigating the relationship between the number of hours spent studying per week (X) and the final exam score (Y) for a group of \( n=100 \) students. The least-squares regression line is given by \( \hat{y} = 55.2 + 8.5x \). The standard error of the slope is \( SE_b = 1.2 \). The researcher wants to construct a \( 95\% \) confidence interval for the true slope of the regression line. What is the value of the t-score used for this confidence interval?
▸ عرض خطوات الحل بالتفصيل
The problem asks for the t-score used to construct a \( 95\% \) confidence interval for the true slope of a regression line. The degrees of freedom for a simple linear regression are \( df = n - 2 \), where \( n \) is the number of data points. In this case, \( n = 100 \), so \( df = 100 - 2 = 98 \). We need to find the t-score such that \( 95\% \) of the area under the t-distribution curve with \( 98 \) degrees of freedom is between \( -t \) and \( t \). This means that \( 2.5\% \) of the area is in each tail (\( \alpha/2 = 0.025 \)). Looking up the t-table or using statistical software for \( df = 98 \) and \( \alpha/2 = 0.025 \), we find the t-score to be approximately \( 1.984 \). The value \( 1.645 \) corresponds to the z-score for \( 90\% \) confidence. The value \( 1.960 \) corresponds to the z-score for \( 95\% \) confidence, which is often used as an approximation for large sample sizes, but the t-score is more accurate. The value \( 2.576 \) corresponds to the z-score for \( 99\% \) confidence.
Error Diagnosis — Common Student Traps vs. Exam-Board Method (Unit 4 · Statistical Inference: Proportions, Means & Slopes)
Using \(\sigma / n\) instead of \(\sigma / \sqrt{n}\) for \(\bar{X}\)
Confuses the variance of the sample mean \(\sigma^2/n\) with its standard error.
Take the square root: \(\text{SE}(\bar{X}) = \sigma / \sqrt{n}\).
Accepting \(H_0\) with certainty when \(p > \alpha\)
Absence of sufficient evidence against \(H_0\) does not prove \(H_0\) is true.
Write in context: "There is insufficient evidence at the \(\alpha\) level to reject \(H_0\)."
▲ Exam Pacing & Verification Strategy — Unit 4 · Statistical Inference: Proportions, Means & Slopes
Exam Marking Tip (College Board AP Statistics): Always state the distribution parameters explicitly (e.g., \(X \sim \operatorname{N}(\mu, \sigma^2)\) or \(\bar{X} \sim \operatorname{N}(\mu, \sigma^2/n)\)) and sketch a quick shaded bell curve before standardizing to \(z = \dfrac{x - \mu}{\sigma}\). This secures the method mark even if a rounding slip occurs later.
Level 1 · Foundations
A random sample of 100 high school seniors finds that 64 plan to attend a four-year college. Construct a 95% confidence interval for the true population proportion \(p\) of seniors attending a four-year college.
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \(\hat{p} = \frac{64}{100} = 0.64\) ، \(z^* = 1.96\) لتبسيط الخطوة.
Level 2 · Medium — Inference Taxonomy for Proportions & Means: Conditions & Test Statistics
Select and execute inference procedures for single proportions, differences of proportions, single means, paired differences, and differences of independent means.
● Inference Procedures Taxonomy: Formula & Condition Guide
Parameter
Procedure Name
Test Statistic Formula
Key Assumptions & Conditions
One Proportion \(p\)
1-Prop \(z\)-Test / Interval
\[ z = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1-p_0)}{n}}} \]
Random sample; 10% condition (\(10n \le N\)); Large Counts: \(np_0 \ge 10, n(1-p_0) \ge 10\).
Independent random samples; 10% condition for both; Both populations normal or \(n_1, n_2 \ge 30\). (Degrees of freedom via calculator or conservative \(df = \min(n_1-1, n_2-1)\)).
المستوى ٢ (المتوسط) — مثال محلول
المسألة. A factory claims its candy machines produce bags with an average weight of 50.0 grams. A consumer group tests \(H_0: \mu = 50.0\) vs \(H_a: \mu < 50.0\) using an SRS of 25 bags, finding \(\bar{x} = 49.2\text{ g}\) and \(s = 1.5\text{ g}\). Compute the \(t\) test statistic and conclude at \(\alpha = 0.05\).
2. p-value & Conclusion: From the \(t\)-distribution with \(df = 24\), \(P(T < -2.67) \approx 0.0067\). Because the p-value \(0.0067 < \alpha = 0.05\), we reject \(H_0\). There is convincing statistical evidence that the true mean weight of candy bags is less than 50.0 grams.
Level 2 · Medium
A significance test produces a test statistic of \(z = 2.15\) for a two-sided test \(H_0: p = 0.40\) vs \(H_a: p \neq 0.40\). What is the p-value, and what decision is made at \(\alpha = 0.05\)?
💡 Hint 1 of 3
تلميح للحل: استخدم العلاقة \(P(Z > 2.15) = 1 - 0.9842\) لتبسيط الخطوة.
💡 Hint 2 of 3
Since the alternative hypothesis is two-sided (\( eq\)), multiply by 2: \(\text{p-value} = 2 \times 0.0158 = \mathbf{0.0316}\).
💡 Hint 3 of 3
Because \(\text{p-value} = 0.0316 < \alpha\), we reject \(H_0\). There is convincing statistical evidence that the true population proportion differs from 0.40.
For a standard normal distribution, \(P(Z > 2.15) = 1 - 0.9842 = 0.0158\).
Since the alternative hypothesis is two-sided (\(
eq\)), multiply by 2: \[ \text{p-value} = 2 \times 0.0158 = \mathbf{0.0316}. \]
Because \(\text{p-value} = 0.0316 < \alpha = 0.05\), we reject \(H_0\). There is convincing statistical evidence that the true population proportion differs from 0.40.
Level 3 · Advanced — Chi-Square Tests, Linear Regression Slope Inference, Type I/II Errors & Power
Conduct chi-square goodness-of-fit, homogeneity, and independence tests, execute inference for linear regression slopes, and analyze Type I error, Type II error, and statistical power.
The Chi-square test statistic measures the discrepancy between observed counts \(O\) and expected counts \(E\):
\[ \chi^2 = \sum \frac{(O - E)^2}{E}. \]
Goodness-of-Fit Test: Tests if a single categorical variable follows a specified distribution. \(df = k - 1\) (where \(k\) is the number of categories).
Test of Homogeneity: Tests whether the distribution of a single categorical variable is identical across multiple independent populations/treatments. \(df = (r - 1)(c - 1)\).
Test of Independence / Association: Tests whether there is an association between two categorical variables within a single sample. \(df = (r - 1)(c - 1)\).
Expected Counts Formula: For two-way tables: \[ E = \frac{(\text{Row Total}) \times (\text{Column Total})}{\text{Table Total}}. \]
Condition: All expected counts must be at least 5 (\(E_i \ge 5\)). Observed counts can be less than 5.
● Inference for Linear Regression Slope \(\beta\)
The population model is \(y = \alpha + \beta x + \epsilon\), where residuals \(\epsilon \sim N(0, \sigma)\). The sample line is \(\hat{y} = b_0 + b_1 x\):
Hypotheses: \(H_0: \beta = 0\) (no linear relationship) vs \(H_a: \beta \neq 0\) (or \(<, >\)).
Test Statistic: \[ t = \frac{b_1 - 0}{\text{SE}_{b_1}} \quad \text{with } df = n - 2. \]
Standard Error of Slope: \[ \text{SE}_{b_1} = \frac{s_e}{s_x \sqrt{n - 1}}. \]
Conditions (LINER): Linear relationship, Independent observations, Normal residuals, Equal residual variance, Random sampling.
● Decision Errors & Statistical Power \((1 - \beta)\)
Truth About Reality
Decision: Reject \(H_0\)
Decision: Fail to Reject \(H_0\)
\(H_0\) is True
Type I Error: Probability = \(\alpha\) (Significance level). False positive.
Correct Decision: Probability = \(1 - \alpha\).
\(H_0\) is False (\(H_a\) is True)
Correct Decision: Power = \(1 - \beta\). Rejecting a false null.
Type II Error: Probability = \(\beta\). False negative.
Four Ways to Increase Statistical Power:
Increase Sample Size \(n\): Decreases standard error, narrowing distributions and increasing power.
Increase Significance Level \(\alpha\): Expands the rejection region, making it easier to reject \(H_0\).
Increase Effect Size (True Difference): A true parameter further from the null value is easier to detect.
Decrease Standard Deviation \(\sigma\): Controlling extraneous variation reduces noise and increases power.
⚠️ Unit 4 Traps & AP Exam Pitfalls
NEVER Say 'Accept H₀': We never prove the null hypothesis is true; we only 'fail to reject \(H_0\)' due to lack of evidence. Writing 'accept \(H_0\)' loses credit on AP rubrics.
Hypotheses Must Use Parameter Notation: Always write hypotheses using population parameters (\(\mu\) or \(p\)), NEVER sample statistics (\(\bar{x}\) or \(\hat{p}\)). Writing \(H_0: \bar{x} = 5\) receives an immediate deduction.
Pooled Proportion Usage: The combined (pooled) sample proportion \(\hat{p}_c\) is used ONLY for 2-proportion \(z\)-tests where \(p_1 = p_2\) is assumed; it is NEVER used for 2-proportion \(z\)-intervals!
Chi-Square Counts Condition: The condition is that all expected counts \(E\) must be at least 5. It is completely acceptable for some observed counts \(O\) to be less than 5.
Paired t vs Two-Sample t: If data come from the same subjects (before/after) or matched pairs, you MUST use a paired t-test on differences (\(df = n - 1\)). Using a two-sample t-test is a fundamental design error.
المستوى ٣ (المتقدم) — مثال محلول
المسألة. A computer printout for a linear regression model yields: Predictor: Constant Coef = 12.4, SE = 2.1; Slope Coef = 3.65, SE = 0.73, t = 5.00, p = 0.0001 with \(n = 20\). Test \(H_0: \beta = 0\) vs \(H_a: \beta \neq 0\) at \(\alpha = 0.01\).
▸ عرض خطوات الحل بالتفصيل
1. Hypotheses: \[ H_0: \beta = 0 \quad \text{vs.} \quad H_a: \beta \neq 0, \] where \(\beta\) is the true slope of the population regression line relating the explanatory and response variables.
2. Test Statistic & Degrees of Freedom: \[ t = \frac{b_1 - 0}{\text{SE}_{b_1}} = \frac{3.65}{0.73} = 5.00 \quad (df = n - 2 = 20 - 2 = 18). \]
3. Conclusion: Because the p-value \(0.0001 < \alpha = 0.01\), we reject \(H_0\). There is convincing statistical evidence of a linear relationship between the explanatory variable and the response variable in the population.
Level 3 · Advanced
Ten athletes participate in a vertical jump training program. Their jump heights (in inches) before and after the program are recorded. To test whether the program increased jump height, explain why a paired t-test is appropriate rather than a two-sample t-test, state the null and alternative hypotheses, and specify the degrees of freedom.
💡 Hint 1 of 3
Why Paired: The observations are paired on the same subjects (before and after measurements on each athlete). The two samples are dependent, not independent.
💡 Hint 2 of 3
Hypotheses: Letting \(\mu_d = \mu_{\text{after}} - \mu_{\text{before}}\) be the true mean difference in jump height: \(H_0: \mu_d = 0 \quad \text{vs.} \quad H_a: \mu_d > 0\).
💡 Hint 3 of 3
Degrees of Freedom: Since this is a one-sample test on differences: \(df = n - 1 = 10 - 1\).
Why Paired: The observations are paired on the same subjects (before and after measurements on each athlete). The two samples are dependent, not independent.
Hypotheses: Letting \(\mu_d = \mu_{\text{after}} - \mu_{\text{before}}\) be the true mean difference in jump height: \[ H_0: \mu_d = 0 \quad \text{vs.} \quad H_a: \mu_d > 0. \]
Degrees of Freedom: Since this is a one-sample test on differences: \[ df = n - 1 = 10 - 1 = \mathbf{9}. \]
[Practice 4 · Hard] A national polling organization is conducting a survey to estimate the proportion of registered voters in a large metropolitan area who support a particular ballot initiative. They plan to use a 95% confidence interval for the population proportion. The organization wants to ensure that the margin of error for this estimate does not exceed 2.5 percentage points. If they anticipate that the sample proportion will be close to 0.5 (the most conservative estimate for planning purposes), what is the minimum sample size, \( n \), they must obtain to achieve this margin of error?
💡 Hint 1 of 3
The formula for the margin of error (ME) of a confidence interval for a population proportion is given by \( \text{ME} = z^* \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \), where \( z^* \) is the critical value for the desired confidence level, \( \hat{p} \) is the sample proportion, and \( n \) is the sample size.
💡 Hint 2 of 3
For a 95% confidence level, the critical value \( z^* \) is approximately 1.96. The desired margin of error is 2.5 percentage points, which is 0.025 in decimal form.
💡 Hint 3 of 3
Since the sample size must be a whole number, and we need to ensure the margin of error is *at most* 0.025, we must round up to the next integer. Therefore, the minimum sample size required is 1537.
The formula for the margin of error (ME) of a confidence interval for a population proportion is given by \( \text{ME} = z^* \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \), where \( z^* \) is the critical value for the desired confidence level, \( \hat{p} \) is the sample proportion, and \( n \) is the sample size.
For a 95% confidence level, the critical value \( z^* \) is approximately 1.96.
The desired margin of error is 2.5 percentage points, which is 0.025 in decimal form.
To ensure the margin of error does not exceed 0.025, we set up the inequality:
\( 1.96 \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} \le 0.025 \).
To find the minimum sample size, we use the most conservative estimate for \( \hat{p} \), which is 0.5. Substituting this value:
\( 1.96 \sqrt{\frac{0.5(1-0.5)}{n}} \le 0.025 \)
\( 1.96 \sqrt{\frac{0.25}{n}} \le 0.025 \)
Now, we solve for \( n \):
Square both sides:
\( (1.96)^2 \left( \frac{0.25}{n} \right) \le (0.025)^2 \)
\( 3.8416 \left( \frac{0.25}{n} \right) \le 0.000625 \)
\( \frac{0.9604}{n} \le 0.000625 \)
Multiply both sides by \( n \) and divide by 0.000625:
\( n \ge \frac{0.9604}{0.000625} \)
\( n \ge 1536.64 \)
Since the sample size must be a whole number, and we need to ensure the margin of error is *at most* 0.025, we must round up to the next integer. Therefore, the minimum sample size required is 1537.
Common errors include rounding down, using an incorrect z-score, or not using the most conservative estimate for \( \hat{p} \). For example, if \( \hat{p} = 0.4 \), then \( n \ge \frac{(1.96)^2 \times 0.4 \times 0.6}{(0.025)^2} \approx 1475 \), which would not guarantee the margin of error for \( \hat{p} = 0.5 \).
A study investigates the effectiveness of a new teaching method by comparing the test scores of students who used the new method versus those who used the traditional method. The results are summarized in a two-way table. If the table has \( 4 \) rows and \( 3 \) columns, what is the degrees of freedom (df) for a chi-square test of homogeneity?
💡 Hint 1 of 3
For a chi-square test of homogeneity or independence with a two-way table, the degrees of freedom (df) are calculated using the formula: \( \text{df} = (r-1)(c-1) \), where \( r \) is the number of rows and \( c \) is the number of columns.
💡 Hint 2 of 3
تلميح للحل: استخدم العلاقة \(r = 4\) ، \(c = 3\) ، \(\text{df} = (4-1)(3-1) = (3)(2)\) لتبسيط الخطوة.
💡 Hint 3 of 3
وبالتالي، the degrees of freedom are 6.
For a chi-square test of homogeneity or independence with a two-way table, the degrees of freedom (df) are calculated using the formula: \( \text{df} = (r-1)(c-1) \), where \( r \) is the number of rows and \( c \) is the number of columns.
In this case, the number of rows is \( r = 4 \) and the number of columns is \( c = 3 \).
Substituting these values into the formula:
\( \text{df} = (4-1)(3-1) = (3)(2) = 6 \).
Therefore, the degrees of freedom are 6.
الوحدة ٤ · الاستدلال الإحصائي للنسب والمتوسطات والانحدار — مهمة استقصائية من ٩ نقاط
9 نقاط
الآلة الحاسبة مسموحة
في دراسة ضبط الجودة (الوحدة ٤ · الاستدلال الإحصائي للنسب والمتوسطات والانحدار)، أعطت عينة عشوائية حجمها \(n = 55\) متوسطاً \(\bar{x} = 56\) وانحرافاً معيارياً \(s = 8\) من مجتمع يتبع تقريباً التوزيع الطبيعي.
(a)3 نقطة
تحقّق من شروط الاستدلال الإحصائي حول متوسط المجتمع \(\mu\).
معيار التصحيح والإجابة النموذجية
[M1]يتحقّق من العشوائية وشرط الاستقلالية 10%(2 نقطة)
[A1]يطبّق مبرهنة النهاية المركزية لأن n = 55 >= 30(1 نقطة)