4.II.19D

Statistics
Part IB, 2005

Let Y1,,YnY_{1}, \ldots, Y_{n} be observations satisfying

Yi=βxi+ϵi,1inY_{i}=\beta x_{i}+\epsilon_{i}, \quad 1 \leqslant i \leqslant n

where ϵ1,,ϵn\epsilon_{1}, \ldots, \epsilon_{n} are independent random variables each with the N(0,σ2)N\left(0, \sigma^{2}\right) distribution. Here x1,,xnx_{1}, \ldots, x_{n} are known but β\beta and σ2\sigma^{2} are unknown.

(i) Determine the maximum-likelihood estimates (β^,σ^2)\left(\widehat{\beta}, \widehat{\sigma}^{2}\right) of (β,σ2)\left(\beta, \sigma^{2}\right).

(ii) Find the distribution of β^\widehat{\beta}.

(iii) By showing that Yiβ^xiY_{i}-\widehat{\beta} x_{i} and β^\widehat{\beta} are independent, or otherwise, determine the joint distribution of β^\widehat{\beta} and σ^2\widehat{\sigma}^{2}.

(iv) Explain carefully how you would test the hypothesis H0:β=β0H_{0}: \beta=\beta_{0} against H1:ββ0H_{1}: \beta \neq \beta_{0}.