The residual standard error, \(R^2\), and F-statistic let us determine the quality of our linear regression model. The following values are from the example introduced earlier:
Residual Standard Error: 13.24 Multiple R squared: 0.4599 Adjusted R squared: 0.4407 F-statistic: 23.85, p-value: 3.82e-05
Residual standard error = 13.24 means the trendline only deviates about 13.24 percent on average from the real scores achieved by students.
Multiple R squared = 46% means 46% of the variation in exam scores is explained by the amount of time studied, with the remaining 54% being determined by variables outside the linear regression model. Adjusted R squared = 44% represents the same idea but adjusted for using one predictor, study time. The adjusted R square value is more reliable for evaluating how the model works.
F-Statistic = 23.85 and p-value = 3.82e-05 shows the model has a very small p-value, which means study hours are a statistically significant predictors of test performance.