Hello I am working on a question from an old exam paper and wondered what is the best way to tackle parts ii and iii. Given the data it is easy to find $\hat{\beta_0}=-1.071$ and $\hat{\beta_1}=2.741$.
Now for part ii) I have the formula $R^2=1-SSE/SST$ where $SST=\sum(y_i-\bar{y})^2$ (easy to work out) and $SSE=\sum e_i^2=\sum (y_i-\hat{y_i})$.
Likewise I have for part iii) An unbiased estimate of $\sigma^2$ is $\sum e_i^2/(n-2)$.
Question: I wondered if there is a nice and more efficient way to work out $\sum e_i^2$ or do I have to calculate each predicted value based on the model take it away from the actual value square that value and then sum all the values up?

Recall that in simple linear regression the square of the Pearson correlation coefficient equals $R^2$, thus $$ r^2 = \left( \frac{\sum x_i y_i -n\bar{x}\bar{y}}{(\sum x_i^2 - n\bar{x}^2)^{1/2}(\sum y_i^2 - n\bar{y}^2)^{1/2}} \right)^2=\hat{\beta}_1^2\frac{S_{XY}}{S_{YY}}=R^2. $$ Which, given the table, shouldn't be hard to compute.