Session Ready
Exercise

Computing the R-squared of a model

Let's compute the \(R^2\) summary value for the two numerical explanatory/predictor variable model you fit in the Chapter 3, price as a function of size and the number of bedrooms.

Recall that \(R^2\) can be calculated as:

$$1 - \frac{\text{Var}(\text{residuals})}{\text{Var}(y)}$$

Instructions
100 XP

Compute \(R^2\) by summarizing the residual and log10_price columns.