Could anyone provide me with either the steps for derivation for these formulae or a textbook that covers these ols derivations?
The textbook i’m currently using does not go over this.
$$\text{var}(\hat{u})=s^2\left[1+\frac{1}{n}+\frac{(x_{0}-\bar{X})^2}{\sum(x_i-\bar{X})^2}\right]$$
$$\text{var}(\hat{Y})=s^2\left[\frac{1}{n}+\frac{(x_{h}-\bar{X})^2}{\sum(x_i-\bar{X})^2}\right]$$