In a normal linear model through the origin, independent observations \(Y_{1},
\ldots, Y_{n}\) are such that \(Y_{j} \sim N\left(\beta x_{j},
\sigma^{2}\right)\). Show that the log likelihood for a sample \(y_{1}, \ldots,
y_{n}\) is
$$
\ell\left(\beta, \sigma^{2}\right)=-\frac{n}{2} \log \left(2 \pi
\sigma^{2}\right)-\frac{1}{2 \sigma^{2}} \sum_{j=1}^{n}\left(y_{j}-\beta
x_{j}\right)^{2}
$$
Deduce that the likelihood equations are equivalent to \(\sum
x_{j}\left(y_{j}-\widehat{\beta} x_{j}\right)=0\) and \(\hat{\sigma}^{2}=\)
\(n^{-1} \sum\left(y_{j}-\widehat{\beta} x_{j}\right)^{2}\), and hence find the
maximum likelihood estimates \(\widehat{\beta}\) and \(\widehat{\sigma}^{2}\) for
data with \(x=(1,2,3,4,5)\) and \(y=(2.81,5.48,7.11,8.69,11.28)\)
Show that the observed information matrix evaluated at the maximum likelihood
estimates is diagonal and use it to obtain approximate \(95 \%\) confidence
intervals for the parameters. Plot the data and your fitted line
\(y=\widehat{\beta} x\). Say whether you think the model is correct, with
reasons. Discuss the adequacy of the normal approximations in this example.