Let Y1,…,Yn be observations satisfying
Yi=βxi+ϵi,1⩽i⩽n
where ϵ1,…,ϵn are independent random variables each with the N(0,σ2) distribution. Here x1,…,xn are known but β and σ2 are unknown.
(i) Determine the maximum-likelihood estimates (β,σ2) of (β,σ2).
(ii) Find the distribution of β.
(iii) By showing that Yi−βxi and β are independent, or otherwise, determine the joint distribution of β and σ2.
(iv) Explain carefully how you would test the hypothesis H0:β=β0 against H1:β=β0.