I'm trying to understand simple linear regression. Here is a problem I'm working on, and I'm trying to understand the answers conceptually.
I want to find the least square estimators $b_1$ and $b_0$ for the following:
(a) The "no slope" model $Y_i = \beta_0 + \epsilon_i$, and
(b) The "no intercept" model $Y_i = \beta_1x_i + \epsilon_i$.
To do this, I know that I will need to minimize the function $Q = \sum_{i=1}^{n} \epsilon_i^{2}$. Thus, I have
(a) $Q = \sum_{i=1}^{n} \epsilon_i^{2} = (Y_i-\beta_0)^2$. Now minimizing this yields,
$0=\frac{\partial Q}{\partial \beta} = \sum_{i=1}^{n} -2(Y_i-b_0) \Rightarrow 0=\sum_{i=1}^{n}Y_i-nb_0 \Rightarrow b_0 = \overline{Y}$.
(b) similarly for this part, I get that $b_1 = \frac{\sum_{i=1}^{n}y_ix_i}{\sum_{i=1}^{n} x_i^{2}}$.
I understand that part (a) makes intuitive sense -- if there is no slope, then the regression line is a horizontal line with value $\beta_0$. So, even though $\beta_0$ is an unknown parameter, we can still reason that the best estimate would be whatever its value is. I'm looking for a way to understand the answer for part (b) in the same way (it seems less intuitive to me). Thanks for any explanation.
