I am in a course on data analysis. The following statement is made in the notes made available to us by our professor:
$$ \text{Var}[a] = \text{Var}[\bar{y} -b\bar{x}] = \text{Var}[\bar{y}] + \text{Var}[b\bar{x}] = \dfrac{\sigma^2}{n} + {\color{red}{(\bar{x}^2)}}\text{Var}[b]$$
I have marked the place where I have doubt in red. This is the expression to determine the variance of point estimates in a simple linear regression model.
Thank you.
\begin{align}\operatorname{Var}(kX)&=E[(kX)^2]-(E(kX))^2 \\ &=E[k^2X^2]-(kE(X))^2\\ &=k^2E[X^2]-k^2E(X)^2\\ &= k^2(E[X^2]-E[X]^2)\\ &=k^2\operatorname{Var}(X)\end{align}
Here, $k=\bar{x}$ is a constant.