楼主: 老邵
9855 3

请教关于线性回归中截距的问题?谢谢 [推广有奖]

  • 3关注
  • 2粉丝

已卖:478份资源

博士生

99%

还不是VIP/贵宾

-

威望
0
论坛币
15331 个
通用积分
1.0600
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
7240 点
帖子
141
精华
0
在线时间
623 小时
注册时间
2011-7-27
最后登录
2025-6-7

楼主
老邵 发表于 2011-9-23 17:25:56 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

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

二维码

扫码加我 拉你入群

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

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

关键词:线性回归 是什么原因 实际应用 正态分布 各项指标 正态分布 实际应用 因变量 自变量

沙发
老邵 发表于 2011-9-24 09:55:15
已经想通了,呵呵。。。。

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

板凳
killsoftly 发表于 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.
已有 1 人评分论坛币 收起 理由
admin_kefu + 10 热心帮助其他会员

总评分: 论坛币 + 10   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-7 15:46