Problem: Show that the least squares criterion applied to the "intercept-only" model, i.e. $y_i = \beta_0 + \epsilon_i$, $i = 1, 2, ..., n$ results in the least squares estimator of $\beta_0: \hat \beta = \bar y$
I'm not sure where to begin with this problem, but doesn't it have something to do with minimizing. Also, I believe this formula matters in this problem: $S = $ $\sum_{i=0}^n \epsilon_i^2$ $=$ $\sum_{i=0}^n$ $(y_i - \beta_0)^2$
Help will be appreciated.