Change/Replace R2 Metric ? #234
daniel-caichac-DHI
started this conversation in
General
Replies: 2 comments 1 reply
-
Read more about this topic in https://scikit-learn.org/stable/modules/model_evaluation.html#explained-variance-score One of the motivations behind having |
Beta Was this translation helpful? Give feedback.
0 replies
-
In the case of negative correlation, e.g. a Pearson correlation coefficient of -1, by squaring it you end up with a score of 1.0. Rather difficult metric to interpret. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am wondering wether we should change the R2 metric. Let me explain myself.
Here I have some data. The regression does not look too bad yet R2 is negative
Which, given its definition, its ok. However, the most common or most known definition of R2 is the square of
R
, with R being theR=Pearson correlation coefficient
. In this case for my dataR_pearson=0.84
and thereforeR2=0.7198
.If I plot my data in excel and do a linear regression and click show R2 I get this indeed.
Also, if I run the Mike Zero Time Series comparison (™) I get the same value (ie, Pearson R2)
I am not saying that one is better than the other, but shouldn't we stick to the most common one? Otherwise we could be potentially adding a source of error.
@jsmariegaard / @ecomodeller
Beta Was this translation helpful? Give feedback.
All reactions