Sample STA248H1 questions
  1. Estimators, Bias, MSE and Consistency · Short answer · 2 marks

    The true value is θ=3\theta = 3. An estimator θ^1\hat\theta_1 has E[θ^1]=2.4E[\hat\theta_1] = 2.4 and Var⁡(θ^1)=0.64\operatorname{Var}(\hat\theta_1) = 0.64; a second estimator θ^2\hat\theta_2 is unbiased with Var⁡(θ^2)=1.2\operatorname{Var}(\hat\theta_2) = 1.2. Find MSE⁡(θ^1)\operatorname{MSE}(\hat\theta_1) and say which estimator has the smaller mean squared error.

    Show solution

    Bias⁡(θ^1)=2.4−3=−0.6\operatorname{Bias}(\hat\theta_1) = 2.4 - 3 = -0.6, so MSE⁡(θ^1)=0.64+0.36=1.00\operatorname{MSE}(\hat\theta_1) = 0.64 + 0.36 = 1.00. The unbiased estimator has MSE⁡(θ^2)=1.2\operatorname{MSE}(\hat\theta_2) = 1.2. So θ^1\hat\theta_1 has the smaller mean squared error even though it is biased: its small variance more than pays for the bias.

  2. Method of Moments and Maximum Likelihood · Problem · 5 marks

    Let X1,…,XnX_1, \ldots, X_n be i.i.d. Normal(μ,σ2)(\mu, \sigma^2) with both parameters unknown. Six measurements are 9,11,10,12,8,109, 11, 10, 12, 8, 10.

    1. Write the log-likelihood. For fixed σ2\sigma^2, find the value of μ\mu that maximizes it. [1]

    2. Substitute μ^\hat\mu and find the maximum likelihood estimator of σ2\sigma^2. [2]

    3. Compute the estimates for the data, and the maximum likelihood estimate of P(X>12)P(X > 12) using the normal table. [1]

    4. Find E[σ^MLE2]E[\hat\sigma^2_{\text{MLE}}] using E[S2]=σ2E[S^2] = \sigma^2. Is the MLE biased? [1]

    Show solution

    (a) ℓ(μ,σ2)=−n2log⁡(2πσ2)−12σ2∑(xi−μ)2\ell(\mu,\sigma^2) = -\dfrac n2\log(2\pi\sigma^2) - \dfrac{1}{2\sigma^2}\sum(x_i-\mu)^2. For fixed σ2\sigma^2 this is largest when ∑(xi−μ)2\sum(x_i-\mu)^2 is smallest, i.e. μ^=xˉ\hat\mu = \bar{x} (equivalently ∂ℓ/∂μ=∑(xi−μ)/σ2=0\partial\ell/\partial\mu = \sum(x_i-\mu)/\sigma^2 = 0).

    (b) With μ=xˉ\mu = \bar{x} and SS=∑(xi−xˉ)2SS = \sum(x_i-\bar{x})^2, ℓ=−n2log⁡σ2−SS2σ2+const\ell = -\dfrac n2\log\sigma^2 - \dfrac{SS}{2\sigma^2} + \text{const}, so dℓdσ2=−n2σ2+SS2σ4=0\dfrac{d\ell}{d\sigma^2} = -\dfrac{n}{2\sigma^2} + \dfrac{SS}{2\sigma^4} = 0 gives σ^2=SS/n\hat\sigma^2 = SS/n (a maximum since the derivative is positive for σ2<SS/n\sigma^2 < SS/n and negative above).

    (c) xˉ=10\bar{x} = 10, SS=1+1+0+4+4+0=10SS = 1 + 1 + 0 + 4 + 4 + 0 = 10, so μ^=10\hat\mu = 10 and σ^2=10/6=1.667\hat\sigma^2 = 10/6 = 1.667 (σ^=1.291\hat\sigma = 1.291; the unbiased s2s^2 would be 22). By invariance, P(X>12)^=1−Φ ⁣(12−101.291)=1−Φ(1.55)=1−0.9394=0.0606\widehat{P(X>12)} = 1 - \Phi\!\left(\dfrac{12-10}{1.291}\right) = 1 - \Phi(1.55) = 1 - 0.9394 = 0.0606.

    (d) σ^2=n−1nS2\hat\sigma^2 = \dfrac{n-1}{n}S^2, so E[σ^2]=n−1nσ2=56σ2E[\hat\sigma^2] = \dfrac{n-1}{n}\sigma^2 = \dfrac56\sigma^2: the MLE is biased downward by σ2/n\sigma^2/n.

  3. Confidence Intervals and Pivots · Short answer · 2 marks

    In 200200 independent runs of a unit test, 6262 failed. Give a 95%95\% Wald confidence interval for the failure probability pp of the test.

    Show solution

    Here p^=62/200=0.31\hat{p} = 62/200 = 0.31 and the estimated standard error is 0.31×0.69/200=0.0327\sqrt{0.31 \times 0.69/200} = 0.0327. The interval is 0.31±1.96×0.0327=0.31±0.06410.31 \pm 1.96 \times 0.0327 = 0.31 \pm 0.0641, that is (0.246, 0.374)(0.246,\ 0.374).

  4. Bootstrap and Simulation · Multiple choice · 1 mark

    A program simulates N=2500N = 2500 independent runs of a random process and finds the event of interest in 600600 of them, so p^=0.24\hat{p} = 0.24. The estimated standard error of p^\hat{p} as an estimate of the true probability is

    1. 0.00850.0085

    2. 0.01670.0167

    3. 0.42710.4271

    4. 0.00020.0002

    Show solution

    Answer: (A)

    Each run is a Bernoulli trial, so SE⁡(p^)≈p^(1−p^)/N=0.24×0.76/2500=0.0085\operatorname{SE}(\hat{p}) \approx \sqrt{\hat{p}(1-\hat{p})/N} = \sqrt{0.24 \times 0.76 / 2500} = 0.0085. The value 0.01670.0167 is the 95% margin of error 1.96×0.00851.96 \times 0.0085. The value 0.4271=0.24×0.760.4271 = \sqrt{0.24 \times 0.76} is the standard deviation of one run, which forgets to divide by N\sqrt{N}, and 0.00020.0002 divides that standard deviation by N=2500N = 2500 instead of N=50\sqrt{N} = 50.

  5. Linear Regression and Least Squares · Multiple choice · 1 mark

    A pediatric clinic fits y^=85+6.2x\hat{y} = 85 + 6.2x to the heights yy (cm) of children aged x=5,6,…,12x = 5, 6, \ldots, 12 years, with R2=0.97R^2 = 0.97. A student uses the line to predict the height of a 30-year-old, getting 271271 cm. The main statistical flaw is that

    1. R2=0.97R^2 = 0.97 is too high; a value this close to 11 means the model has been overfitted

    2. the prediction interval is undefined for an x0x_0 that is not a whole number of years

    3. the line was fitted only for ages 55 to 1212, so nothing supports the linear relation at age 3030

    4. the intercept 8585 is not significant, so the fitted line should be refitted through the origin

    Show solution

    Answer: (C)

    Predicting at an x0x_0 far outside the observed range is extrapolation. The straight line describes the relation only where there are data; growth levels off in adulthood, so the model error at x0=30x_0 = 30 can be enormous, and the interval formula (which assumes the model holds) does not reflect it. Here 85+6.2(30)=27185 + 6.2(30) = 271 cm, which is absurd. A high R2R^2 measures the fit within the observed range and is not by itself a flaw; the interval formulas apply to any real x0x_0; and the value of the intercept has nothing to do with the problem.

About STA248H1 practice exams

STA248H1 practice exams

Statistics for Computer Scientists · University of Toronto (UofT, U of T, UToronto) · also written STA248, STA 248

Make a free, printable STA248H1 practice exam: choose the topics, the length and the difficulty above, and get an exam-style PDF with a full answer key. Each paper draws on 400 original questions and skips the ones you have already seen.

Looking for STA248H1 past exams?

Start with the past exams and tests your instructor or the UofT library shares: they show what your course actually asks. Most courses only have a few, so once you have worked through them, make fresh STA248H1 practice exams here on the same topics, with full answer keys, as many as you need. The questions here are original, not copies of past exams.

Topics covered

  • Estimators, Bias, MSE and Consistency · 50 questions
  • Method of Moments and Maximum Likelihood · 50 questions
  • Sampling Distributions (Chi-Square, t and F) · 50 questions
  • Confidence Intervals and Pivots · 50 questions
  • Hypothesis Tests, Power and Likelihood Ratios · 50 questions
  • Bootstrap and Simulation · 50 questions
  • Bayesian Inference · 50 questions
  • Linear Regression and Least Squares · 50 questions

More UofT courses

questionbank.dev is independent and not affiliated with University of Toronto. Course codes only say which topics a paper covers; papers are original practice material, not past or upcoming exams.