File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
Username:
Password:
Save Password
Forgot your Password?
|
Admin Options
All Forums
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
为什么拟合后我的R^2值是负数?
New Topic
Reply to Topic
Printer Friendly
Author
Topic
Linda_zeng
China
Posts
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,一个数的平方怎么会是负数呢。
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000