The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin中文论坛
 Origin 中文论坛 (Chinese Origin Forum)
 为什么拟合后我的R^2值是负数?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Linda_zeng Posted - 05/13/2016 : 02:34:38 AM
R^2 = 1 - RSS/TSS
RSS = Sum (wi*(y-yi)^2) // 拟合数据与原数据的平方差和 (加权重)
TSS = Sum(yi-yavg)^2 // 原数据和平均值的的平方差和


当数据点少,而且数据不符合拟合模型趋势的时候,RSS>TSS=》 RSS/TSS>1=》R^2<0
所以当你看到R^2是负值的时候不要觉得软件出了bug,一个数的平方怎么会是负数呢。


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000