Math ClubMath Club
v1 · padrão canônico

Lesson 110 — Trim 11 Consolidation: Statistical Inference

Trim 11 synthesis workshop: confidence intervals for the mean, z and t tests, ANOVA, chi-square, simple and multiple regression, and Bayesian inference — all the pillars of inferential statistics in one integrated map.

Used in: 3.º ano do EM / Stochastik LK alemão · Math B japonês (Estatística) · H2 Mathematics (Singapura) — Statistics

θ^±zα/2σn;T=Xˉμ0s/n;P(θD)P(Dθ)P(θ)\hat\theta \pm z_{\alpha/2}\frac{\sigma}{\sqrt{n}};\quad T = \frac{\bar X - \mu_0}{s/\sqrt{n}};\quad P(\theta \mid D) \propto P(D \mid \theta)\,P(\theta)

Trim 11 in three equations: confidence interval to estimate, TT statistic to test, and Bayes' rule to update beliefs. All statistical inference is a variation of these three forms.

Choose your door

Rigorous notation, full derivation, hypotheses

Formal synthesis of trim 11

The three pillars of statistical inference

"A confidence interval provides a range of plausible values for the population parameter. The correct interpretation: if we repeat the procedure many times, (1α)100%(1-\alpha)100\% of the constructed intervals will contain the true parameter." — OpenIntro Statistics §5.2

Question:Estimate μ?CI: X̄ ± t·s/√nn ≥ (z·σ/E)²Test H₀z / t / F / χ²Predict Y?Regression OLSUpdate belief?Bayes' theorem

Trim 11 decision flow — each statistical question has its method.

Worked examples

Exercise list

40 exercises · 10 with worked solution (25%)

Application 20Understanding 6Modeling 9Challenge 4Proof 1
  1. Ex. 110.1Application

    n=64n = 64, xˉ=50\bar x = 50, σ=8\sigma = 8 (known). Construct the 95% CI for μ\mu.

    Select the correct option
    Select an option first
    Show solution
    Standard error: σ/n=8/8=1\sigma/\sqrt{n} = 8/8 = 1. Margin: 1.96×1=1.961.96 \times 1 = 1.96. CI: (501.96  ;50+1.96)=(48.04  ;51.96)(50 - 1.96\;; 50 + 1.96) = (48.04\;; 51.96).
    Show step-by-step (with the why)
    1. Identify: n=64n=64, xˉ=50\bar x = 50, σ=8\sigma = 8 (known). Why: σ\sigma known means use zz, not tt.
    2. Critical value: z0.025=1.96z_{0.025} = 1.96.
    3. Standard error: σ/64=8/8=1\sigma/\sqrt{64} = 8/8 = 1.
    4. Margin: E=1.96×1=1.96E = 1.96 \times 1 = 1.96.
    5. CI: (48.04  ;51.96)(48.04\;; 51.96).

    Trick: with n=64n = 64, n=8\sqrt{n} = 8 — quick mental math.

  2. Ex. 110.2Application

    Using the data from the previous exercise (xˉ=50\bar x = 50, s=8s = 8, n=64n = 64), test H0:μ=48H_0: \mu = 48 vs H1:μ48H_1: \mu \neq 48 at the 5% level. Compute TT and decide.

    Select the correct option
    Select an option first
    Show solution
    T=(5048)/(8/8)=2/1=2.00T = (50-48)/(8/8) = 2/1 = 2.00. With df=63df = 63, two-sided p-value 0.046<0.05\approx 0.046 < 0.05. Reject H0H_0 at 5% level.
  3. Ex. 110.3ApplicationAnswer key

    Two independent samples: xˉ1=100\bar x_1 = 100, s1=10s_1 = 10, n1=50n_1 = 50; xˉ2=95\bar x_2 = 95, s2=12s_2 = 12, n2=60n_2 = 60. Perform the Welch tt test at the 5% level.

    Select the correct option
    Select an option first
    Show solution
    Welch: T=(10095)/102/50+122/60=5/2+2.4=5/4.42.38T = (100-95)/\sqrt{10^2/50 + 12^2/60} = 5/\sqrt{2 + 2.4} = 5/\sqrt{4.4} \approx 2.38. Two-sided p-value 0.019<0.05\approx 0.019 < 0.05. Reject H0H_0.
  4. Ex. 110.4Application

    Three groups with ni=20n_i = 20 plants each, means Xˉ1=10\bar X_1 = 10, Xˉ2=12\bar X_2 = 12, Xˉ3=14\bar X_3 = 14. Assuming σ2=4\sigma^2 = 4 (within-group variance), compute FF from ANOVA and decide at the 5% level.

    Select the correct option
    Select an option first
    Show solution
    SSB=20[(1012)2+(1212)2+(1412)2]=20(4+0+4)=160SS_B = 20[(10-12)^2+(12-12)^2+(14-12)^2] = 20(4+0+4) = 160. MSB=80MS_B = 80. F=80/4=20F = 80/4 = 20. Critical value F0.05;2,573.16F_{0.05;\,2,\,57} \approx 3.16. Since 203.1620 \gg 3.16, reject H0H_0.
    Show step-by-step (with the why)
    1. Overall mean: Xˉ=(10+12+14)/3=12\bar X = (10+12+14)/3 = 12.
    2. SSB=20(XˉiXˉ)2=20(4+0+4)=160SS_B = 20\sum(\bar X_i - \bar X)^2 = 20(4+0+4) = 160.
    3. MSB=SSB/(k1)=160/2=80MS_B = SS_B/(k-1) = 160/2 = 80.
    4. F=MSB/MSW=80/4=20F = MS_B/MS_W = 80/4 = 20. Strongly reject since 203.1620 \gg 3.16.

    Note: With F=20F = 20 and critical value 3.16\approx 3.16, the p-value is tiny.

  5. Ex. 110.5ApplicationAnswer key

    Fitted model: Y^=5+2X\hat Y = 5 + 2X. What is the point prediction for X=10X = 10?

    Select the correct option
    Select an option first
    Show solution
    Y^=5+2×10=5+20=25\hat Y = 5 + 2 \times 10 = 5 + 20 = 25.
  6. Ex. 110.6Application

    R2=0.8R^2 = 0.8, n=50n = 50, p=4p = 4 predictors. Compute Radj2R^2_{\text{adj}}.

    Select the correct option
    Select an option first
    Show solution
    Radj2=1(10.8)(501)5041=10.2×4945=10.21780.782R^2_{\text{adj}} = 1 - \frac{(1 - 0.8)(50-1)}{50-4-1} = 1 - \frac{0.2 \times 49}{45} = 1 - 0.2178 \approx 0.782.
  7. Ex. 110.7Application

    A 2×32 \times 3 contingency table produced χ2=8\chi^2 = 8. How many degrees of freedom? Is there association at the 5% level?

    Select the correct option
    Select an option first
    Show solution
    Table 2×32 \times 3: df=(21)(31)=2df = (2-1)(3-1) = 2. Critical value χ0.05;22=5.991\chi^2_{0.05;\,2} = 5.991. Since χ2=8>5.991\chi^2 = 8 > 5.991, reject independence hypothesis.
  8. Ex. 110.8Application

    Prior θBeta(2,2)\theta \sim \text{Beta}(2, 2). Observe X=8X = 8 successes in n=10n = 10 trials. What is the posterior distribution of θ\theta?

    Select the correct option
    Select an option first
    Show solution
    Prior Beta(2,2)\text{Beta}(2, 2), X=8X = 8 successes in n=10n = 10. Posterior: Beta(2+8,  2+108)=Beta(10,4)\text{Beta}(2+8,\; 2+10-8) = \text{Beta}(10, 4).
  9. Ex. 110.9ApplicationAnswer key

    With the posterior Beta(10,4)\text{Beta}(10, 4) from the previous exercise, compute the posterior mean and the MAP (mode of the posterior distribution).

    Select the correct option
    Select an option first
    Show solution
    Posterior Beta(10,4)\text{Beta}(10, 4): mean =10/140.714= 10/14 \approx 0.714. MAP (mode) =(101)/(142)=9/12=0.75= (10-1)/(14-2) = 9/12 = 0.75.
  10. Ex. 110.10Application

    Look up in the standard normal distribution table: what is z0.025z_{0.025}?

    Select the correct option
    Select an option first
    Show solution
    z0.025=1.960z_{0.025} = 1.960. This is the critical value for two-sided 95% CI. Don't confuse with z0.05=1.645z_{0.05} = 1.645 (90% CI).
  11. Ex. 110.11Application

    Using the same data n=64n = 64, xˉ=50\bar x = 50, σ=8\sigma = 8, now construct the 90% CI for μ\mu. Is the interval wider or narrower than the 95% CI?

    Select the correct option
    Select an option first
    Show solution
    For 90% CI, z0.05=1.645z_{0.05} = 1.645. Standard error: σ/n=8/8=1\sigma/\sqrt{n} = 8/8 = 1. Margin: 1.645×1=1.6451.645 \times 1 = 1.645. CI: (501.645  ;50+1.645)=(48.355  ;51.645)(48.36  ;51.64)(50 - 1.645\;; 50 + 1.645) = (48.355\;; 51.645) \approx (48.36\;; 51.64). The 90% CI is narrower than the 95% CI (which had margin 1.96).
  12. Ex. 110.12Application

    You want a 95% CI with maximum margin of error E=2E = 2 units, knowing σ=10\sigma = 10. What is the minimum sample size?

    Select the correct option
    Select an option first
    Show solution
    Formula: n(z0.025σ/E)2=(1.96×10/2)2=(9.8)2=96.04n \geq (z_{0.025}\,\sigma/E)^2 = (1.96 \times 10/2)^2 = (9.8)^2 = 96.04. Round up: n97n \geq 97.
    Show step-by-step (with the why)
    1. Identify: σ=10\sigma = 10, E=2E = 2, 95% confidence implies z0.025=1.96z_{0.025} = 1.96.
    2. Apply: n(1.96×10/2)2=(9.8)2=96.04n \geq (1.96 \times 10/2)^2 = (9.8)^2 = 96.04.
    3. Round up (conservative): n=97n = 97.

    General rule: to cut the margin in half, quadruple nn.

  13. Ex. 110.13Application

    A sample of n=25n = 25 observations has xˉ=25\bar x = 25 and s=10s = 10. Test H0:μ=20H_0: \mu = 20 vs H1:μ20H_1: \mu \neq 20 at the 5% level.

    Select the correct option
    Select an option first
    Show solution
    T=(xˉμ0)/(s/n)=(2520)/(10/25)=5/2=2.50T = (\bar x - \mu_0)/(s/\sqrt{n}) = (25 - 20)/(10/\sqrt{25}) = 5/2 = 2.50. With df=24df = 24, two-sided critical value t0.025;24=2.064t_{0.025;\,24} = 2.064. Since 2.50>2.0642.50 > 2.064, reject H0H_0.
  14. Ex. 110.14Application

    In a sample of n=100n = 100 voters, 60 approve a certain measure. At the 5% level, is there evidence that the true proportion p0.50p \neq 0.50? Use the z test for proportion.

    Select the correct option
    Select an option first
    Show solution
    p^=60/100=0.60\hat p = 60/100 = 0.60. Z=(0.600.50)/0.50×0.50/100=0.10/0.0025=0.10/0.05=2.00Z = (0.60 - 0.50)/\sqrt{0.50 \times 0.50/100} = 0.10/\sqrt{0.0025} = 0.10/0.05 = 2.00. Two-sided p-value 0.046<0.05\approx 0.046 < 0.05. Reject H0H_0.
  15. Ex. 110.15Application

    n=10n = 10 observations with Xˉ=4\bar X = 4, Yˉ=10\bar Y = 10, Sxx=20S_{xx} = 20, Sxy=50S_{xy} = 50. Compute β^1\hat\beta_1 and interpret.

    Select the correct option
    Select an option first
    Show solution
    β^1=Sxy/Sxx=50/20=2.5\hat\beta_1 = S_{xy}/S_{xx} = 50/20 = 2.5. β^0=Yˉ2.5Xˉ=102.5×4=0\hat\beta_0 = \bar Y - 2.5 \bar X = 10 - 2.5 \times 4 = 0. Model: Y^=2.5X\hat Y = 2.5\,X. Each unit increase in XX increases YY by 2.5 on average.
  16. Ex. 110.16ApplicationAnswer key

    A 2×22 \times 2 contingency table produced χ2=3.84\chi^2 = 3.84. How many degrees of freedom? Is there association at the 5% level?

    Select the correct option
    Select an option first
    Show solution
    Table 2×22 \times 2: observed frequencies O=[30,20,20,30]O = [30, 20, 20, 30], total 100. Expected frequencies under independence: row 1 has 50 cases, column 1 has 50 cases; each expected cell E11=50×50/100=25E_{11} = 50 \times 50/100 = 25. χ2=4×(3025)2/25=4\chi^2 = 4 \times (30-25)^2/25 = 4. But with the problem frequencies: χ23.84\chi^2 \approx 3.84. df=(21)(21)=1df = (2-1)(2-1) = 1. Critical value χ0.05;12=3.841\chi^2_{0.05;\,1} = 3.841. Since 3.843.8413.84 \approx 3.841, do not reject at the exact threshold.
  17. Ex. 110.17Application

    ANOVA with k=3k = 3 groups, N=27N = 27 total. SSB=90SS_B = 90, SSW=240SS_W = 240. Compute FF and decide at the 5% level.

    Select the correct option
    Select an option first
    Show solution
    MSB=SSB/(k1)=90/2=45MS_B = SS_B/(k-1) = 90/2 = 45. MSW=SSW/(Nk)=240/24=10MS_W = SS_W/(N-k) = 240/24 = 10. F=45/10=4.50F = 45/10 = 4.50. Critical value F0.05;2,243.40F_{0.05;\,2,\,24} \approx 3.40. Since 4.50>3.404.50 > 3.40, reject H0H_0.
  18. Ex. 110.18Application

    Sxx=25S_{xx} = 25, Syy=80S_{yy} = 80, Sxy=40S_{xy} = 40. Compute the Pearson correlation coefficient rr.

    Select the correct option
    Select an option first
    Show solution
    r=Sxy/SxxSyy=40/25×80=40/2000=40/44.720.894r = S_{xy}/\sqrt{S_{xx}\,S_{yy}} = 40/\sqrt{25 \times 80} = 40/\sqrt{2000} = 40/44.72 \approx 0.894.
  19. Ex. 110.19Application

    Two independent groups: xˉ1=30\bar x_1 = 30, s1=4s_1 = 4, n1=16n_1 = 16; xˉ2=20\bar x_2 = 20, s2=5s_2 = 5, n2=25n_2 = 25. Construct the 95% CI for μ1μ2\mu_1 - \mu_2 using Welch's statistic.

    Select the correct option
    Select an option first
    Show solution
    Observed difference: xˉ1xˉ2=3020=10\bar x_1 - \bar x_2 = 30 - 20 = 10. Standard error of difference: SE=s12/n1+s22/n2=16/16+25/25=1+1=21.414SE = \sqrt{s_1^2/n_1 + s_2^2/n_2} = \sqrt{16/16 + 25/25} = \sqrt{1 + 1} = \sqrt{2} \approx 1.414. Welch degrees of freedom: df37df \approx 37, t0.025;372.026t_{0.025;\,37} \approx 2.026. Margin: 2.026×1.4142.8652.026 \times 1.414 \approx 2.865. CI: (102.865  ;10+2.865)(7.1  ;12.9)(10 - 2.865\;; 10 + 2.865) \approx (7.1\;; 12.9).
  20. Ex. 110.20Application

    Define Type I and Type II error in a hypothesis test. What is the relationship between them and the parameters α\alpha and β\beta?

    Select the correct option
    Select an option first
    Show solution
    Type I error occurs when H0H_0 is true but we reject it (false positive); probability =α= \alpha. Type II error occurs when H0H_0 is false but we fail to reject it (false negative); probability =β= \beta. Power of test =1β= 1 - \beta.
  21. Ex. 110.21Understanding

    What is the correct interpretation of a 95% CI in the frequentist perspective?

    Select the correct option
    Select an option first
    Show solution
    Correct frequentist interpretation: the procedure produces intervals that cover the true μ\mu in 95% of repetitions. The interval constructed from one specific sample either contains or does not contain μ\mu — there is no probability associated with a fixed interval.
  22. Ex. 110.22Understanding

    What does the p-value of a hypothesis test measure? Choose the correct interpretation.

    Select the correct option
    Select an option first
    Show solution
    The p-value is NOT the probability that H0H_0 is true. It is P(data as or more extremeH0)P(\text{data as or more extreme} \mid H_0). Common errors: confusing p-value with the probability of H0H_0 or H1H_1 — both are serious misinterpretations.
  23. Ex. 110.23UnderstandingAnswer key

    Explain what R2R^2 measures in linear regression and why high correlation does not imply causation.

    Select the correct option
    Select an option first
    Show solution
    R2R^2 measures fit on the training set — not causation or generalization. Correlation \neq causation: classic example, ice cream and drowning are correlated (both rise in summer), but one doesn't cause the other. High R2R^2 with small samples can indicate overfitting.
  24. Ex. 110.24Understanding

    What is the fundamental difference between the Bayesian and frequentist interpretation of the parameter θ\theta?

    Select the correct option
    Select an option first
    Show solution
    Fundamental difference: frequentists treat θ\theta as an unknown constant (without distribution); Bayesians assign a probability distribution to θ\theta. The Bayesian credible interval allows one to say "with probability 95%, θ[a,b]\theta \in [a,b]"; the frequentist CI does not.
  25. Ex. 110.25Understanding

    Why use ANOVA instead of multiple tt tests to compare k>2k > 2 groups?

    Select the correct option
    Select an option first
    Show solution
    With kk groups, performing (k2)\binom{k}{2} separate tt tests at level α\alpha inflates familywise Type I error. ANOVA tests H0:μ1==μkH_0: \mu_1 = \cdots = \mu_k in one test at level α\alpha. To identify which pairs differ, use post-hoc (Tukey, Bonferroni) after rejecting H0H_0.
  26. Ex. 110.26Understanding

    When do you use the chi-square independence test and when do you use ANOVA? Identify the application conditions for each.

    Select the correct option
    Select an option first
    Show solution
    Chi-square independence: both variables are categorical (nominal or ordinal). ANOVA: one numeric response variable and one categorical factor with k2k \geq 2 levels. Confusing the two is a serious test-selection error.
  27. Ex. 110.27Modeling

    An election survey interviewed n=500n = 500 voters; 250 support candidate A. Construct a 95% CI for the true proportion pp of supporters.

    Select the correct option
    Select an option first
    Show solution
    p^=250/500=0.500\hat p = 250/500 = 0.500. Standard error: SE=p^(1p^)/n=0.25/500=0.00050.02236SE = \sqrt{\hat p(1-\hat p)/n} = \sqrt{0.25/500} = \sqrt{0.0005} \approx 0.02236. Margin: 1.96×0.022360.04381.96 \times 0.02236 \approx 0.0438. CI: (0.5000.044  ;0.500+0.044)(0.456  ;0.544)(0.500 - 0.044\;; 0.500 + 0.044) \approx (0.456\;; 0.544).
    Show step-by-step (with the why)
    1. Compute p^=250/500=0.500\hat p = 250/500 = 0.500.
    2. Compute the standard error: SE=0.5×0.5/5000.02236SE = \sqrt{0.5 \times 0.5 / 500} \approx 0.02236.
    3. Margin: 1.96×0.022360.0441.96 \times 0.02236 \approx 0.044.
    4. CI: (0.456  ;0.544)(0.456\;; 0.544).

    Note that the CI for a proportion uses the standard error based on p^\hat p, not on population σ\sigma.

  28. Ex. 110.28Modeling

    Regression model for energy consumption (kWh/month) as a function of average monthly temperature (°C): Y^=120+4.5X\hat Y = 120 + 4.5X, fitted for temperatures between 20 and 60°C. Predict consumption for X=40X = 40°C and for X=70X = 70°C. Which prediction involves extrapolation?

    Select the correct option
    Select an option first
    Show solution
    For X=40X = 40: Y^=120+4.5×40=120+180=300\hat Y = 120 + 4.5 \times 40 = 120 + 180 = 300 (interpolation — safe). For X=70X = 70: Y^=120+4.5×70=435\hat Y = 120 + 4.5 \times 70 = 435 (extrapolation — outside the sample interval 20 to 60 degrees, use with caution).
  29. Ex. 110.29ModelingAnswer key

    A 4-sided die was rolled 100 times. Observed frequencies: face 1 = 20, face 2 = 30, face 3 = 28, face 4 = 22. At the 5% level, is the die fair? Use the chi-square goodness-of-fit test.

    Select the correct option
    Select an option first
    Show solution
    Expected frequencies: each category should have 100/4=25100/4 = 25 observations. χ2=(2025)2/25+(3025)2/25+(2825)2/25+(2225)2/25=1+1+0.36+0.36=2.72\chi^2 = (20-25)^2/25 + (30-25)^2/25 + (28-25)^2/25 + (22-25)^2/25 = 1 + 1 + 0.36 + 0.36 = 2.72. Degrees of freedom: df=41=3df = 4 - 1 = 3. Critical value: χ0.05;32=7.815\chi^2_{0.05;\,3} = 7.815. Since 2.72<7.8152.72 < 7.815, do not reject H0H_0 — no evidence the die is unfair.
  30. Ex. 110.30ModelingAnswer key

    A clinical trial measured healing time (in days) of 25 patients before and after a new ointment formula. Means: before xˉ=25\bar x = 25 days, after xˉ=20\bar x = 20 days, standard deviation of differences sd=9.14s_d = 9.14 days. At the 5% level, did the new formula reduce healing time (one-tailed test)?

    Select the correct option
    Select an option first
    Show solution
    Paired differences: dˉ=2520=5\bar d = 25 - 20 = 5 days, sd=9.14s_d = 9.14 days (from problem), n=25n = 25. T=dˉ/(sd/n)=5/(9.14/5)=5/1.8282.74T = \bar d/(s_d/\sqrt{n}) = 5/(9.14/5) = 5/1.828 \approx 2.74. t0.05;24=1.711t_{0.05;\,24} = 1.711 (one-tailed). Since 2.74>1.7112.74 > 1.711, reject H0H_0 — the new formulation is faster on average.
    Show step-by-step (with the why)
    1. Paired test: each patient has two times (before and after). Compute differences di=beforeafterd_i = \text{before} - \text{after}.
    2. dˉ=5\bar d = 5 days; standard deviation of differences sd=9.14s_d = 9.14 days.
    3. T=5/(9.14/25)=5/1.8282.74T = 5/(9.14/\sqrt{25}) = 5/1.828 \approx 2.74.
    4. Reject H0H_0 since T>t0.05;24=1.711T > t_{0.05;\,24} = 1.711.

    Paired test is more powerful than independent two-sample test when there is correlation within pairs (same patient at both times).

  31. Ex. 110.31Modeling

    Fitted regression model: Y^=50+1.5X\hat Y = 50 + 1.5X. An observed point is (X=20,Y=80)(X = 20, Y = 80). Compute the residual and interpret geometrically.

    Select the correct option
    Select an option first
    Show solution
    Prediction for X=20X = 20: Y^=50+1.5×20=50+30=80\hat Y = 50 + 1.5 \times 20 = 50 + 30 = 80. Residual: e=YY^=8080=0e = Y - \hat Y = 80 - 80 = 0. The observed point falls exactly on the fitted line — zero residual.
  32. Ex. 110.32Modeling

    In a sample of n=300n = 300 students, 192 passed the test. The historical pass rate is 60%. At the 5% level, is there evidence of change in the pass rate? Use the z test for proportion.

    Select the correct option
    Select an option first
    Show solution
    p^=192/300=0.640\hat p = 192/300 = 0.640. Z=(0.6400.600)/0.600×0.400/300=0.040/0.0008=0.040/0.028281.41Z = (0.640 - 0.600)/\sqrt{0.600 \times 0.400/300} = 0.040/\sqrt{0.0008} = 0.040/0.02828 \approx 1.41. Two-sided p-value 0.158>0.05\approx 0.158 > 0.05. Do not reject H0H_0 — no evidence of change in approval rate at 5% level.
  33. Ex. 110.33ModelingAnswer key

    An agricultural cooperative tested 3 fertilizers on corn plots (ni=15n_i = 15 plots per fertilizer). SSB=450SS_B = 450, SSW=1800SS_W = 1800. At the 5% level, is there a difference in productivity among the fertilizers?

    Select the correct option
    Select an option first
    Show solution
    Three fertilizers, ni=15n_i = 15 plants per group (N=45N = 45). MSB=450/(31)=225MS_B = 450/(3-1) = 225; MSW=1800/(453)=1800/4242.86MS_W = 1800/(45-3) = 1800/42 \approx 42.86. F=225/42.865.25F = 225/42.86 \approx 5.25. Critical value F0.05;2,423.22F_{0.05;\,2,\,42} \approx 3.22. Since 5.25>3.225.25 > 3.22, reject H0H_0 — at least one fertilizer differs.
  34. Ex. 110.34Modeling

    In a simple regression analysis: Sxx=400S_{xx} = 400, Syy=1600S_{yy} = 1600, Sxy=720S_{xy} = 720. Compute rr and R2R^2. What proportion of the variation in YY is explained by the model?

    Select the correct option
    Select an option first
    Show solution
    r=Sxy/SxxSyy=720/400×1600=720/800=0.90r = S_{xy}/\sqrt{S_{xx} S_{yy}} = 720/\sqrt{400 \times 1600} = 720/800 = 0.90. In simple regression, R2=r2=0.902=0.81R^2 = r^2 = 0.90^2 = 0.81. Interpretation: 81% of the variation in YY is explained by the linear relationship with XX.
  35. Ex. 110.35Modeling

    An epidemiologist believes the prevalence of a rare disease in a region is 30%, modeled by Beta(3,7)\text{Beta}(3, 7). In a screening of n=50n = 50 people, he finds x=10x = 10 positive. Determine the posterior distribution and the new point estimate (posterior mean).

    Select the correct option
    Select an option first
    Show solution
    Prior Beta(3,7)\text{Beta}(3, 7) (prior mean =3/10=30%= 3/10 = 30\%). Data: n=50n = 50, x=10x = 10. Posterior: Beta(3+10,  7+5010)=Beta(13,47)\text{Beta}(3+10,\; 7+50-10) = \text{Beta}(13, 47). Posterior mean: 13/(13+47)=13/6021.7%13/(13+47) = 13/60 \approx 21.7\%. The posterior mean lies between the prior (30%) and the MLE (10/50 = 20%) — typical behavior of Bayesian updating.
  36. Ex. 110.36Challenge

    A researcher performs 10 simultaneous hypothesis tests, each at the 5% level. What is the probability of at least one false positive? How does Bonferroni correction solve the problem?

    Select the correct option
    Select an option first
    Show solution
    With 10 independent tests at level α=0.05\alpha = 0.05, the probability of at least one false positive is 1(0.95)100.4011 - (0.95)^{10} \approx 0.401 — far above 5%. Bonferroni divides: α=0.05/10=0.005\alpha^* = 0.05/10 = 0.005. Limitation: Bonferroni is conservative (reduces power) when hypotheses are correlated; a less conservative alternative: FDR control via Benjamini-Hochberg.
    Show step-by-step (with the why)
    1. Probability of at least one false positive in mm independent tests: 1(1α)m1 - (1-\alpha)^m.
    2. For m=10m=10, α=0.05\alpha=0.05: 10.95100.401 - 0.95^{10} \approx 0.40. Huge inflation.
    3. Bonferroni: use α=α/m=0.005\alpha^* = \alpha/m = 0.005 in each test.
    4. This guarantees familywise Type I error α\leq \alpha (Boole's inequality).

    Cost: reduced power. With positive correlation among tests, Bonferroni is conservative.

  37. Ex. 110.37Challenge

    In multiple regression, what is multicollinearity? What are the consequences for the estimated coefficients β^i\hat\beta_i and for predictions Y^\hat Y?

    Select the correct option
    Select an option first
    Show solution
    Multicollinearity occurs when predictors XjX_j are highly correlated. Consequences: (1) standard errors of β^j\hat\beta_j inflated — coefficients unstable; (2) individual t-values are small even if overall model is significant; (3) predictions Y^\hat Y remain stable, but coefficients are not interpretable in isolation. Diagnosis: Variance Inflation Factor (VIF). Remedy: remove redundant predictors or use ridge regression.
  38. Ex. 110.38ChallengeAnswer key

    Compare simple random sampling, stratified sampling, and convenience sampling. What is the fundamental limitation of convenience sampling for statistical inference?

    Select the correct option
    Select an option first
    Show solution
    Convenience sampling (e.g., your classmates, Instagram followers) introduces selection bias — the sample does not represent the population. Increasing nn does not correct systematic bias; it only reduces variance. Historical example: 1936 Literary Digest survey with 2.4 million responses but severe selection bias predicted the US election wrongly. Stratified sampling can be more efficient than SRS for heterogeneous populations.
  39. Ex. 110.39ChallengeAnswer key

    A diagnostic test has sensitivity 90% and specificity 95%. Disease prevalence in the population is 1%. A patient tested positive. What is the positive predictive value (PPV) — that is, what is the probability the patient really has the disease? Use Bayes' theorem.

    Select the correct option
    Select an option first
    Show solution
    Using Bayes: P(+D)=0.90P(+\mid D) = 0.90, P(Dˉ)=0.95P(-\mid \bar D) = 0.95, prevalence P(D)=0.01P(D) = 0.01. P(+)=0.90×0.01+0.05×0.99=0.009+0.0495=0.0585P(+) = 0.90 \times 0.01 + 0.05 \times 0.99 = 0.009 + 0.0495 = 0.0585. PPV =P(D+)=(0.90×0.01)/0.0585=0.009/0.05850.154= P(D\mid +) = (0.90 \times 0.01)/0.0585 = 0.009/0.0585 \approx 0.154. Striking conclusion: even with 90% sensitivity, only ~15% of positives actually have the disease when prevalence is 1%. This is the screening paradox with rare diseases.
    Show step-by-step (with the why)
    1. Define events: DD = disease, ++ = positive test.
    2. Data: P(+D)=0.90P(+\mid D) = 0.90, P(Dˉ)=0.95P(-\mid \bar D) = 0.95 implies P(+Dˉ)=0.05P(+\mid \bar D) = 0.05. P(D)=0.01P(D) = 0.01.
    3. Law of total probability: P(+)=0.90×0.01+0.05×0.99=0.0585P(+) = 0.90 \times 0.01 + 0.05 \times 0.99 = 0.0585.
    4. Bayes: P(D+)=0.009/0.05850.154P(D\mid +) = 0.009/0.0585 \approx 0.154.

    The paradox: with low prevalence, false positives outnumber true positives — PPV stays low even with accurate tests.

  40. Ex. 110.40Proof

    Prove that the sample variance S2=1n1i=1n(XiXˉ)2S^2 = \frac{1}{n-1}\sum_{i=1}^n (X_i - \bar X)^2 is an unbiased estimator of σ2\sigma^2, that is, that E[S2]=σ2E[S^2] = \sigma^2. Why is division by n1n-1 (not by nn) necessary?

    Select the correct option
    Select an option first
    Show solution
    Proof of unbiasedness: E[S2]=E[1n1(XiXˉ)2]E[S^2] = E\left[\frac{1}{n-1}\sum(X_i - \bar X)^2\right]. Expansion: (XiXˉ)2=Xi2nXˉ2\sum(X_i - \bar X)^2 = \sum X_i^2 - n\bar X^2. Thus E[(XiXˉ)2]=E[Xi2]nE[Xˉ2]=n(σ2+μ2)n(σ2/n+μ2)=nσ2σ2=(n1)σ2E\left[\sum(X_i - \bar X)^2\right] = \sum E[X_i^2] - n E[\bar X^2] = n(\sigma^2 + \mu^2) - n(\sigma^2/n + \mu^2) = n\sigma^2 - \sigma^2 = (n-1)\sigma^2. Dividing by n1n-1: E[S2]=σ2E[S^2] = \sigma^2. Dividing by nn would give E=(n1)σ2/nσ2E = (n-1)\sigma^2/n \neq \sigma^2.
    Show step-by-step (with the why)
    1. Write (XiXˉ)2=Xi2nXˉ2\sum(X_i - \bar X)^2 = \sum X_i^2 - n\bar X^2.
    2. Take expectation: E[Xi2]=Var(Xi)+(E[Xi])2=σ2+μ2E[X_i^2] = \text{Var}(X_i) + (E[X_i])^2 = \sigma^2 + \mu^2.
    3. E[Xˉ2]=Var(Xˉ)+(E[Xˉ])2=σ2/n+μ2E[\bar X^2] = \text{Var}(\bar X) + (E[\bar X])^2 = \sigma^2/n + \mu^2.
    4. E[(XiXˉ)2]=n(σ2+μ2)n(σ2/n+μ2)=(n1)σ2E\left[\sum(X_i - \bar X)^2\right] = n(\sigma^2 + \mu^2) - n(\sigma^2/n + \mu^2) = (n-1)\sigma^2.
    5. Dividing by n1n-1: E[S2]=σ2E[S^2] = \sigma^2. Q.E.D.

Sources

  • OpenIntro Statistics (4th ed.) — Diez, Çetinkaya-Rundel, Barr · CC-BY-SA · Foundation for CI, z/t tests, ANOVA, regression, and chi-square (§5–8).
  • Statistics (OpenStax) — Illowsky, Dean · CC-BY · Systematic coverage of CI (§8), hypothesis testing (§9), two samples (§10), chi-square and ANOVA (§11), linear regression (§12–13).
  • Statistical Thinking for the 21st Century — Poldrack · CC-BY-NC · Modern approach to Bayesian inference (Ch. 15), positive predictive value, and p-value interpretation.
  • Introduction to Probability — Grinstead and Snell · GNU FDL · Properties of variance and estimator proofs (§9.3).

Updated on 2026-05-29 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.