|
|
|
|
|
by justk
709 days ago
|
|
I think that you are using here a different definition of R^2 for example the way you are thinking of R^2 doesn't allow for an interpretation of the constant term used in the linear model for the formula of the R^2 to be true. What you are thinking is R^2 = 1 - mean(the variance in each state)/(total variance), but that is not the definition of R^2 for a linear model. As the user fskfsk.... says in another comment, here the constant term explains a lot of the variance so that the slope terms contains less information, that is not available using your definition or idea of R^2 |
|
Different from what?
According to wikipedia:
The most general definition of the coefficient of determination is R^2 = 1 - SS_res / SS_tot ( = 1 - 0.2475 / 0.25 = 0.01 in this case)
Edit to clarify the definition above:
SS_res is the sum of squares of residuals (also called the residual sum of squares) ∑( y_i - predicted_i )^2
SS_tot is the total sum of squares (proportional to the variance of the data) ∑( y_i - ∑y_i/N )^2