Let $\overline{x}=\frac{1}{n}\left(x_{1}+\cdots+x_{n}\right)$ and $\overline{y}=\frac{1}{n}\left(y_{1}+\cdots+y_{n}\right) .$ Show that the least-squares line for the data $\left(x_{1}, y_{1}\right), \ldots,\left(x_{n}, y_{n}\right)$ must pass through $(\overline{x}, \overline{y}) .$ That is, show that $\overline{x}$ and $\overline{y}$ satisfy the linear equation $\overline{y}=\hat{\beta}_{0}+\hat{\beta}_{1} \overline{x}$ .[Hint: Derive this equation from the vector equation $\mathbf{y}=X \hat{\boldsymbol{\beta}}+\boldsymbol{\epsilon} .$ Denote the first column of $X$ by $\mathbf{1}$ . Use the fact that the residual vector $\epsilon$ is orthogonal to the column space of $X$ and hence is orthogonal to $\mathbf{1} . ]$