Probability Theory & Statistics
Level 4 (Application: novel problems, no hints) Time: 60 minutes | Total: 50 marks
Answer all questions. Justify each step. Standard normal values: , , , .
Question 1 (10 marks) — Transformations & MGF
Let be a continuous random variable with PDF for and otherwise.
(a) Find the PDF of , stating its support. (4)
(b) Identify the distribution of (name and parameter). (2)
(c) Using the MGF of , compute and . (4)
Question 2 (10 marks) — Joint distributions & conditional expectation
Suppose has joint PDF
(a) Find . (2)
(b) Find the marginal density and determine whether and are independent. (3)
(c) Find . (3)
(d) Compute . (2)
Question 3 (10 marks) — Estimation & properties
A machine produces items whose lifetime (hours) is modelled as with density , . A sample of lifetimes is observed with sample mean .
(a) Derive the maximum likelihood estimator . (4)
(b) Show that is not unbiased for (recall and for ). Construct an unbiased estimator. (3)
(c) State whether is consistent and justify briefly using LLN. (3)
Question 4 (10 marks) — Hypothesis testing & CLT
A coin is tossed times, giving 220 heads. Let be the probability of heads.
(a) Test against at the 5% level using a normal-approximation () test. State your conclusion. (5)
(b) Construct a 95% confidence interval for and confirm consistency with part (a). (3)
(c) Explain what a Type II error would mean in this context, and state one way to reduce its probability. (2)
Question 5 (10 marks) — Bayesian inference & simulation
A rare event has unknown probability . Prior belief: . In independent trials, the event occurs times.
(a) Write the likelihood and derive the posterior distribution of . (4)
(b) Give the posterior mean and compare it with the MLE . (3)
(c) A Monte Carlo estimate of draws samples from the posterior. Explain (via the Law of Large Numbers) why the estimate converges, and give the order of the standard error of the estimate as a function of . (3)
Answer keyMark scheme & solutions
Question 1
(a) , so , . . (1 for inverse, 1 for Jacobian) (2 for correct density + support)
(b) This is . (2)
(c) MGF of Exp(2): , . (1) , so . (1) , so . (1) . (1) (Consistent with Exp(2): mean , var .)
Question 2
(a) . So . (2)
(b) , for . By symmetry . (2) in general, so not independent. (1)
(c) , . (1) (2)
(d) . . . (2)
Question 3
(a) Likelihood . (1) . (1) . (1) Second derivative confirms maximum. (1)
(b) , so biased (overestimates). (1.5) Unbiased estimator: , since . (1.5)
(c) by the Weak LLN; continuous at , so by continuous mapping . Hence consistent. (3)
Question 4
(a) . Under , SE . (2) (1) , so reject at 5%. (1) (p-value .) (1)
(b) CI uses : SE . . (2) Interval excludes (just), consistent with rejecting . (1)
(c) Type II error: failing to reject (concluding the coin is fair) when it is actually biased. (1) Reduce by increasing sample size (or accepting larger effect / raising ). (1)
Question 5
(a) Likelihood . Prior (Beta(2,2)). (2) Posterior , i.e. (2)
(b) Posterior mean . (2) MLE . Posterior mean is pulled toward the prior mean , hence larger than the MLE. (1)
(c) Estimate is a sample mean of i.i.d. Bernoulli indicators; by LLN it almost surely as . (2) Standard error . (1)
[
{"claim":"Q1 Var(Y) for Exp(2) equals 1/4 and E[Y]=1/2 via MGF",
"code":"t=symbols('t'); M=2/(2-t); E=diff(M,t).subs(t,0); E2=diff(M,t,2).subs(t,0); var=E2-E**2; result=(E==Rational(1,2)) and (var==Rational(1,4))"},
{"claim":"Q2 Cov(X,Y) = -1/144",
"code":"x,y=symbols('x y'); f=x+y; EX=integrate(integrate(x*f,(x,0,1)),(y,0,1)); EY=integrate(integrate(y*f,(x,0,1)),(y,0,1)); EXY=integrate(integrate(x*y*f,(x,0,1)),(y,0,1)); cov=EXY-EX*EY; result=(cov==Rational(-1,144))"},
{"claim":"Q4 z-statistic under H0 equals 2.0",
"code":"phat=Rational(220,400); se=sqrt(Rational(1,2)*Rational(1,2)/400); z=(phat-Rational(1,2))/se; result=(simplify(z)==2)"},
{"claim":"Q5 posterior is Beta(5,9) with mean 5/14",
"code":"a=2+3; b=2+7; mean=Rational(a,a+b); result=(a==5) and (b==9) and (mean==Rational(5,14))"}
]