(Weighted Least Squares) Suppose that in the model $y_{i}=\beta_{0}+\beta_{1} x_{i}+e_{i},$ the errors have mean zero and are independent, but $\operatorname{Var}\left(e_{i}\right)=\rho_{i}^{2} \sigma^{2},$ where the $\rho_{i}$ are known constants, so the errors do not have equal variance. This situation arises when the $y_{i}$ are averages of several observations at $x_{i}$; in this case, if $y_{i}$
is an average of $n_{i}$ independent observations, $\rho_{i}^{2}=1 / n_{i}$ (why?). Because the variances are not equal, the theory developed in this chapter does not apply; intuitively, it seems that the observations with large variability should influence the estimates of $\beta_{0}$ and $\beta_{1}$ less than the observations with small variability. The problem may be transformed as follows:
$$
\rho_{i}^{-1} y_{i}=\rho_{i}^{-1} \beta_{0}+\rho_{i}^{-1} \beta_{1} x_{i}+\rho_{i}^{-1} e_{i}
$$
or
$$
z_{i}=u_{i} \beta_{0}+v_{i} \beta_{1}+\delta_{i}
$$
where
$$
u_{i}=\rho_{i}^{-1} \quad v_{i}=\rho_{i}^{-1} x_{i} \quad \delta_{i}=\rho_{i}^{-1} e_{i}
$$
a. Show that the new model satisfies the assumptions of the standard statistical model.
b. Find the least squares estimates of $\beta_{0}$ and $\beta_{1}$
c. Show that performing a least squares analysis on the new model, as was done
in part (b), is equivalent to minimizing
$$
\sum_{i=1}^{n}\left(y_{i}-\beta_{0}-\beta_{1} x_{i}\right)^{2} \rho_{i}^{-2}
$$
This is a weighted least squares criterion; the observations with large variances are weighted less.
d. Find the variances of the estimates of part (b).