The Lumenary · Early undergraduate
Statistical inference
Name: ______________________
Date: ______________________
You will learn to
- Define estimators and assess their bias, variance and mean squared error; prove that the sample mean and the sample variance with are unbiased
- Write down likelihoods and derive maximum likelihood estimators, and state the Cramér–Rao bound
- Construct confidence intervals and perform hypothesis tests, interpreting confidence levels and p-values correctly
- Explain type I and type II errors and power, and why multiple testing needs a correction such as Bonferroni's
- Fit linear regression by least squares through the normal equations , and check its assumptions with residuals
- Compare frequentist and Bayesian inference through the beta–binomial model
- 1.
A test of : "the new fertiliser has no effect on mean yield" gives . Which statement is correct?
- A.There is a probability that the fertiliser has no effect.
- B.If the fertiliser had no effect, a difference at least as large as the one observed would occur in about of such experiments.
- C.The fertiliser increases the yield by .
- D.If the experiment is repeated, it will give a significant result of the time.
- 2.
A health clinic records the number of patients arriving in five consecutive hours: . Modelling the counts as independent Poisson, what is the maximum likelihood estimate of ?
- 3.
Compute the sample variance of the data .
- 4.
For an i.i.d. sample from the uniform distribution on , the MLE is , and . Which estimator is unbiased for ?
- A.
- B.
- C.
- D.
- 5.
In the proof that the normal equations give the least-squares solution, we expand with and . Why does the cross term vanish?
- A. and by the normal equations.
- B.Because is small when is close to .
- C.Because the residuals always sum to zero.
- D.Because is invertible.
- 6.
A study tests hypotheses and obtains the p-values . Using the Bonferroni correction with family-wise error rate , how many hypotheses are rejected?
- 7.
A small trial of a new treatment (20 patients) finds a confidence interval of days for the reduction in recovery time, with . What is the best conclusion?
- A.The treatment has no effect.
- B.The data are compatible with no effect and also with a substantial benefit; a larger study is needed.
- C.The treatment is harmful, since the interval contains negative values.
- D.There is an chance that the treatment works.
- 8.
From of households, a confidence interval for the proportion is , and with a uniform prior the Bayesian posterior is Beta with credible interval . Which statements are correct? (Choose all that apply.)
- A.In repeated surveys, about of intervals computed this way would contain the true .
- B.Frequentist theory says for this particular interval.
- C.Given the model and the uniform prior, .
- D.The posterior mean is .
- 9.
Which Lean statement says that a solution
bof the normal equations minimises the residual sum of squares? (Xᵀis the transpose,*ᵥmultiplies a matrix by a vector,⬝ᵥis the dot product.)- A.
(hb : (Xᵀ * X) *ᵥ b = Xᵀ *ᵥ y) (β : p → ℝ) : (y - X *ᵥ b) ⬝ᵥ (y - X *ᵥ b) ≤ (y - X *ᵥ β) ⬝ᵥ (y - X *ᵥ β) - B.
(hb : X *ᵥ b = y) (β : p → ℝ) : (y - X *ᵥ b) ⬝ᵥ (y - X *ᵥ b) ≤ (y - X *ᵥ β) ⬝ᵥ (y - X *ᵥ β) - C.
(hb : (Xᵀ * X) *ᵥ b = Xᵀ *ᵥ y) (β : p → ℝ) : (y - X *ᵥ β) ⬝ᵥ (y - X *ᵥ β) ≤ (y - X *ᵥ b) ⬝ᵥ (y - X *ᵥ b) - D.
(hb : (X * Xᵀ) *ᵥ b = Xᵀ *ᵥ y) (β : p → ℝ) : (y - X *ᵥ b) ⬝ᵥ (y - X *ᵥ b) ≤ (y - X *ᵥ β) ⬝ᵥ (y - X *ᵥ β)
- A.
- 10.
Write
fit_line(xs, ys)returning the least-squares(intercept, slope)for the model , using and . UseFractionso the answers are exact. The tests also check that the residuals sum to zero and are orthogonal to — the normal equations.Computational — Practice