Solution (source code)

= Solution

The intercept normal equation is
$$
\sum_i\{Y_i-\hat\alpha'-\hat\beta'(x_i-\bar x)\}=0.
$$
Because the centered predictors sum to zero,
$$
\boxed{\hat\alpha'=\bar Y}.
$$
Meanwhile $\hat\alpha=\bar Y-\hat\beta\bar x$, so the two intercept estimates are unequal in general. The parameters themselves satisfy $\alpha'=\alpha+\beta\bar x$.