全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
9779 3
2011-09-23
线性回归中截距可以随便去掉吗?我刚初学,很多疑问,请指教。
为什么有的数据,包含截距的时候,拟合的很差,而去掉截距之后拟合的很好,各项指标都不错?那这种情况就应该选无截距的吗?
我拿了一组数据,因变量为1到10的整数,自变量为正态分布产生的随机数。有截距时,各指标都很差,单如果选项中去掉截距,则各类指标还不错。这到底是什么原因?在实际应用中可以这么回归吗?
谢谢!

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-9-24 09:55:15
已经想通了,呵呵。。。。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-11-24 22:27:43
请教下楼主原因,我也遇到了类似的问题。万分感激,虽然帖子问的晚了点儿!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2016-11-25 13:45:44
econiu 发表于 2016-11-24 22:27
请教下楼主原因,我也遇到了类似的问题。万分感激,虽然帖子问的晚了点儿!
Case by case !

My best guess is that sometimes constant can improve performance and sometimes reduce performance

(1) constant absorbs any kinds of errors in the regression

(2) constant makes sure all residuals have mean of zero

(3.1) If you do not include the constant, the regression is forced to go through the origin such as (0, 0). This means that all of the X and the Y must equal zero at that point. So if your fitted line pass through the origin, the regression coefficients and predictions will not be influenced a lot, and even the overall performance can be enhanced.  

(3.2) If your fitted line does not pass through the origin, the regression coefficients and predictions will be biased if don't include the constant.

This is what I know, just for your reference.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群