필터 지우기
필터 지우기

relationship between RMSE and R^2

조회 수: 23 (최근 30일)
Samuel Fonseca
Samuel Fonseca 2012년 4월 24일
First of all this is more like a theoretical question than a methodological one. I made a script to fit some time series data. I fitted many data series and calculated their goodness of fit statistics. When I analyzed the resulting data I found an inverse relationship between RMSE and R^2.
I´ve look around the web and my statistics books looking for a possible explanation but with no luck.
Is there anyone here who can give me some ideas ?

답변 (2개)

Tom Lane
Tom Lane 2012년 4월 24일
R^2 = 1 - SSE/SST = 1 - DFE*RMSE^2/SST
Here SSE is the error sum of squares, SST is the total sum of squares, and DFE is the degrees of freedom for error. So you would expect R^2 to go down as RMSE goes up. Is that what you meant by an inverse relationship?

Samuel Fonseca
Samuel Fonseca 2012년 4월 24일
Sorry I now realize that my previous post was not clear, what I mean is that I'm getting a relationship inverse from what I expected to get...
Lets say in series 1 i'm geting R^2 =0.8 and RMSE= 1.5 while in series 2 I get R^2= 0.65 and RMSE=0.75
After looking at data in some more detail I found that point 2 has a biger range (max(x)-min(x)) so having a biger range and maybe standar deviation could be related?
  댓글 수: 2
Tom Lane
Tom Lane 2012년 4월 25일
R^2 is sensitive to the x range. That's what some people dislike about it. RMSE should not be sensitive if the model is correct. However, usually a bigger range leads to large R^2 and no change in RMSE. You seem to be saying R^2 is smaller and RMSE is smaller. That is unexpected.
Samuel Fonseca
Samuel Fonseca 2012년 5월 6일
yup that's my point... R^2 values are telling me that fit works good (R^2=0.8) but RMSE id big and then for other series I get the opposite result... unexpectedin deed.. i'll get back and re-check code but i'm pretty sure i'm just using RMSE and R^2 values generated by the fit statistics

댓글을 달려면 로그인하십시오.

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by