Credit Sprint / Study guides / Statistics Unit 3

Credit Sprint's Guide to AP® Statistics, Unit 3: Inference for Categorical Data: Proportions

AP® weight 15–25%

Unit 3 is where statistics becomes inference. You learn the sampling distribution of a sample proportion, then build confidence intervals and carry out significance tests for one proportion, two proportions and (with chi-square) the relationship between categorical variables.

Bigger samples, narrower sampling distributions small n large n center = p or μ (unbiased) SD of p̂ = √[p(1−p)/n] · SD of x̄ = σ/√n

What you need to know

  • A statistic estimates a parameter. An estimator is unbiased if the center of its sampling distribution equals the parameter. The sample proportion p̂ is an unbiased estimator of p. Variability comes from sampling, and larger samples reduce variability.
  • The sampling distribution of p̂ has mean p and standard deviation √[p(1 − p) ÷ n]. It is approximately normal when np ≥ 10 and n(1 − p) ≥ 10 (the large counts condition), and the standard deviation formula needs the sample to be less than 10% of the population when sampling without replacement.
  • A confidence interval for p is p̂ ± z* · √[p̂(1 − p̂) ÷ n]. Conditions: random sample, 10% condition, and at least 10 successes and 10 failures in the sample. The interval is a set of plausible values for the parameter.
  • Interpret a confidence level correctly: if we took many random samples and built an interval from each, about 95% of those intervals would capture the true proportion. Interpret an interval by saying: we are 95% confident that the true proportion of [population] who [characteristic] is between __ and __.
  • The margin of error shrinks when the sample size grows and grows when the confidence level grows. To cut the margin of error in half you need about four times the sample size. You can use a confidence interval to justify a claim: if a hypothesized value is outside the interval, it is not plausible.
  • A significance test begins with H₀ (a parameter equals a value) and Hₐ (the claim, either one-sided or two-sided). The test statistic z = (p̂ − p₀) ÷ √[p₀(1 − p₀) ÷ n] measures how far the sample result is from the null value in standard deviations.
  • The p-value is the probability, assuming H₀ is true, of getting a sample result at least as extreme as the one observed. A small p-value is evidence against H₀. Compare it to the significance level α; if p < α, reject H₀ and conclude there is convincing evidence for Hₐ in context.
  • A conclusion should state the decision, link it to the p-value, and refer to context: 'Because p = 0.02 < 0.05, we reject H₀. There is convincing evidence that the true proportion of ... is greater than ...'. Never say you 'proved' H₀. A large p-value means not enough evidence, not that H₀ is true.
  • A Type I error is rejecting a true H₀ (probability α). A Type II error is failing to reject a false H₀. Power is the probability of correctly rejecting a false H₀; it rises with larger sample size, larger α and a larger true effect.
  • For two proportions, the standard deviation of p̂₁ − p̂₂ is √[p₁(1 − p₁)/n₁ + p₂(1 − p₂)/n₂]. A two-proportion z-interval uses unpooled standard error. A two-proportion z-test uses a pooled proportion, p̂c = (x₁ + x₂) ÷ (n₁ + n₂), because H₀ says the proportions are equal.
  • Check the conditions for each group: independent random samples or randomized groups, and at least 10 successes and 10 failures in each group. If the interval for p₁ − p₂ contains 0, there is no convincing evidence of a difference.
  • A chi-square test for homogeneity compares the distribution of a categorical variable across several populations or treatment groups. A chi-square test for independence checks for an association between two categorical variables in one population. Expected count = (row total × column total) ÷ table total, and df = (rows − 1)(columns − 1). Conditions: random, and all expected counts at least 5.
  • The chi-square statistic is χ² = Σ (observed − expected)² ÷ expected. A large χ² and a small p-value mean the observed counts are far from what H₀ predicts, so there is convincing evidence of a difference in distributions or an association.

Exam traps

Watch forThe test uses p₀ (the null value) in the standard deviation; the interval uses p̂.
Watch forA 95% confidence level is about the method, not a 95% chance that this one interval contains p. The parameter is fixed; the interval is what varies.
Watch forFail to reject H₀ does not mean H₀ is true. It means the data do not give convincing evidence against it.
Watch forStatistical significance is not practical importance. A huge sample can make a tiny difference significant.
Watch forA pooled proportion is used for the two-proportion test but not for the two-proportion interval.
Watch forChi-square tests use counts, never percentages, and they cannot tell you the direction of the association; look at which cells contribute the most.

Key terms

  • Estimator: A rule or statistic used to estimate a parameter.
  • Unbiased estimator: A statistic whose sampling distribution is centered at the parameter it estimates.
  • Sampling distribution: The distribution of values a statistic takes over all possible samples of the same size.
  • Sampling variability: The way a statistic varies from sample to sample.
  • Sample proportion p̂: The number of successes in a sample divided by the sample size.
  • Standard error: An estimate of the standard deviation of a statistic, computed from sample data.
  • Large counts condition: np ≥ 10 and n(1 − p) ≥ 10 (or at least 10 successes and failures in the sample) for a normal model.
  • 10% condition: When sampling without replacement, the sample should be less than 10% of the population so observations are nearly independent.
  • Confidence interval: An interval of plausible values for a parameter, built from sample data.
  • Confidence level: The percent of intervals from repeated random samples that would capture the true parameter.
  • Critical value z*: The z-value that captures the middle C% of a standard normal distribution.
  • Margin of error: The critical value times the standard error; half the width of an interval.
  • Null hypothesis H₀: The claim of no difference or no effect, assumed true when computing the p-value.
  • Alternative hypothesis Hₐ: The claim we look for evidence to support; it can be one-sided or two-sided.
  • Test statistic: A number that measures how far the sample result is from the null value, in standard errors.
  • p-value: The probability, if H₀ is true, of a result at least as extreme as the one observed.

Practice questions

Five of the 108 Unit 3 questions in Credit Sprint. Every choice is explained in the app.

1. Which statement is the correct interpretation of a 95% confidence interval for a population proportion, such as (0.42, 0.50)?
  1. We are 95% confident that the true proportion is between 0.42 and 0.50.
  2. 95% of all sample proportions fall between 0.42 and 0.50.
  3. 95% of the population has a value between 0.42 and 0.50.
  4. There is a 95% probability that the sample proportion is between 0.42 and 0.50.
Show answer

We are 95% confident that the true proportion is between 0.42 and 0.50.. The interval gives plausible values for the parameter, and the 95% describes the success rate of the method over many samples.

2. A random sample of 20 students has 3 who prefer online classes. Why is a one-proportion z-interval not appropriate?
  1. The sample is too large
  2. Proportions cannot be estimated from samples
  3. The sample is random
  4. There are fewer than 10 successes in the sample
Show answer

There are fewer than 10 successes in the sample. The large counts condition requires at least 10 successes and 10 failures, and here there are only 3 successes.

3. A p-value of 0.03 means
  1. there is a 97% chance that Hₐ is true
  2. if H₀ is true, there is a 3% chance of getting a sample result this extreme or more extreme
  3. there is a 3% chance that H₀ is true
  4. the sample proportion is 3%
Show answer

if H₀ is true, there is a 3% chance of getting a sample result this extreme or more extreme. The p-value is a probability computed assuming the null hypothesis is true.

4. Which change increases the power of a test, assuming everything else stays the same?
  1. Increasing the sample size
  2. Decreasing the significance level α
  3. Choosing a true parameter value closer to the null value
  4. Using a smaller sample
Show answer

Increasing the sample size. A larger sample reduces the standard error, making it easier to detect a true difference.

5. For the previous scenario (n = 200, p₀ = 0.90), is the large counts condition met?
  1. Yes, because 200(0.9) = 180 and 200(0.1) = 20 are both at least 10
  2. Yes, because n is greater than 30
  3. No, because the sample proportion is 0.85
  4. No, because 20 is too small
Show answer

Yes, because 200(0.9) = 180 and 200(0.1) = 20 are both at least 10. Both the expected successes and failures under H₀ are at least 10.