What Will Happen When Adding a New Variable to a Multiple Linear Regression Model

What Will Happen When Adding a New Variable to a Multiple Linear Regression Model

  • Conclusions:
    • This new (different from existing ones) variable will ALWAYS reduce Residual Sum of Squares ( R S S RSS RSS)
    • However, a large p p p for the partial t-test for this new variable leads us to conclude that this variable is not a useful or valid one and thus should not be included in the model.
  • Explanations:
    • Formula: R S S = ∑ i ( y i − y i ^ ) 2 RSS=\sum_{i}(y_i-\hat {y_i})^2 RSS=i(yiyi^)2, y i y_i yi as observed values of the response variable at x i x_i xi, and y i ^ \hat {y_i} yi^ is the estimated mean value of the unobservable random variable Y Y Y at x i x_i xi estimated/calculated by the regression model fitted. Notice that we assume no error in the observed values of the explanatory variable(s) as the predictor(s) i.e. we treat the predictors’ values as fixed all the time.
    • From the formula, we can see that R S S RSS RSS measures how many variability in the observed values of the response variable (i.e. the dataset used) is NOT explained by the regression model fitted.
    • Adding a new variable and calculating the model parameters by minimizing R S S RSS RSS will always make the regression model explain a larger proportion of the variations in the observed y y y values (see https://stats.stackexchange.com/questions/179244/is-rss-decreasing-or-non-increasing).
    • This means,regardless of whether a newly added variable makes sense in the model, R S S RSS RSS will always decrease, which cause R 2 R^2 R2 to increase. This leads to the caveat that using R 2 R^2 R2 to test whether to add a new variable in the model is not appropriate .
    • The proper way to test whether the new variable is really statistically significant is through the p p p value produced by the partial t-test on this new variable (or any equivalences like the partial F F F test on the new variable). The null hypothesis is always the original model and the alternative hypothesis the original model plus the new variable (the new model). If p p p is large, then we fail to reject the null hypothesis and conclude that the model with the new variable is not statistically significant against the original model, so we still use the “old model”.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
【1】项目代码完整且功能都验证ok,确保稳定可靠运行后才上传。欢迎下载使用!在使用过程中,如有问题或建议,请及时私信沟通,帮助解答。 【2】项目主要针对各个计算机相关专业,包括计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网等领域的在校学生、专业教师或企业员工使用。 【3】项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 【4】如果基础还行,或热爱钻研,可基于此项目进行二次开发,DIY其他不同功能,欢迎交流学习。 【注意】 项目下载解压后,项目名字和项目路径不要用中文,否则可能会出现解析不了的错误,建议解压重命名为英文名字后再运行!有问题私信沟通,祝顺利! 基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip基于C语言实现智能决策的人机跳棋对战系统源码+报告+详细说明.zip
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值