In addition to examining the residuals, we should calculate metrics to evaluate our regression model. Perhaps the most common is R2 (pronounced R-squared), or the coefficient of determination, which quantifies the proportion of variance in the dependent variable that we can predict from our independent variables. It is calculated by subtracting the ratio of the sum of squared residuals to the total sum of squares from one:
This value will be in [0, 1], where higher values are better. Objects ...