Skip to content
The Lumenary

Practice · Early undergraduate

Statistical inference

Statistical inference

Warm-upHuman

A test of H0H_0: "the new fertiliser has no effect on mean yield" gives p=0.03p = 0.03. Which statement is correct?

Choose one

Statistical inference

Warm-upHuman

A health clinic records the number of patients arriving in five consecutive hours: 3,5,2,6,43, 5, 2, 6, 4. Modelling the counts as independent Poisson(λ)(\lambda), what is the maximum likelihood estimate of λ\lambda?

Statistical inference

Warm-upHuman

Compute the sample variance S2=1n−1∑i(xi−xˉ)2S^2 = \frac{1}{n-1}\sum_i (x_i - \bar x)^2 of the data 2,4,92, 4, 9.

Statistical inference

StretchHuman

For an i.i.d. sample X1,…,XnX_1, \dots, X_n from the uniform distribution on [0,θ][0, \theta], the MLE is M=max⁡iXiM = \max_i X_i, and E[M]=nn+1θE[M] = \frac{n}{n+1}\theta. Which estimator is unbiased for θ\theta?

Choose one

Statistical inference

CoreHuman

In the proof that the normal equations give the least-squares solution, we expand ∥y−Xβ∥2=∥r∥2+2 r⊤Xw+∥Xw∥2\|y - X\beta\|^2 = \|r\|^2 + 2\,r^\top Xw + \|Xw\|^2 with r=y−Xβ^r = y - X\hat\beta and w=β^−βw = \hat\beta - \beta. Why does the cross term vanish?

Choose one

Statistical inference

CoreHuman

A study tests 88 hypotheses and obtains the p-values 0.0004, 0.003, 0.006, 0.0071, 0.011, 0.02, 0.04, 0.30.0004,\ 0.003,\ 0.006,\ 0.0071,\ 0.011,\ 0.02,\ 0.04,\ 0.3. Using the Bonferroni correction with family-wise error rate 0.050.05, how many hypotheses are rejected?

Statistical inference

CoreHuman

A small trial of a new treatment (20 patients) finds a 95%95\% confidence interval of [−2,15][-2, 15] days for the reduction in recovery time, with p=0.13p = 0.13. What is the best conclusion?

Choose one

Statistical inference

CoreHuman

From 260260 of 400400 households, a 95%95\% confidence interval for the proportion pp is [0.603,0.697][0.603, 0.697], and with a uniform prior the Bayesian posterior is Beta(261,141)(261, 141) with 95%95\% credible interval [0.602,0.695][0.602, 0.695]. Which statements are correct? (Choose all that apply.)

Choose all that apply

Statistical inference

CoreFormal

Which Lean statement says that a solution b of the normal equations minimises the residual sum of squares? (Xᵀ is the transpose, *ᵥ multiplies a matrix by a vector, ⬝ᵥ is the dot product.)

Choose one

Statistical inference

StretchComputational

Write fit_line(xs, ys) returning the least-squares (intercept, slope) for the model y=β0+β1xy = \beta_0 + \beta_1 x, using β^1=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2\hat\beta_1 = \frac{\sum (x_i - \bar x)(y_i - \bar y)}{\sum (x_i - \bar x)^2} and β^0=yˉ−β^1xˉ\hat\beta_0 = \bar y - \hat\beta_1\bar x. Use Fraction so the answers are exact. The tests also check that the residuals sum to zero and are orthogonal to xx — the normal equations.

Runs entirely in your browser, in an isolated worker. Nothing is sent to a server.