https://doi.org/10.1351/goldbook.11499
The ratio of the sum of squares explained by a regression model (SSR) to the "total" sum of squares around the mean (SST), or, because SST equals SSR plus the sum of squares of the error or residuals from the fit (SSE): \[R^{2} = \frac{{\rm{SSR}}}{{\rm{SST}}} = 1 - \frac{{\rm{SSE}}}{{\rm{SST}}}\]
Notes:
- \(R_{2}\) values can range between \(\pu{0.0}\) and \(\pu{1.0}\).
- Except for the comparison of different models for the same dataset, \(R^{2}\) values are not a good indica- tion of fit of a model because the calculation depends on SST, which is larger if there is more spread in the observed values.