由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - One interview question:) Looking for help
相关主题
急问negative binomial regression的结果的model significance看哪个参数regression problem - go confused
model里有multicollinearity,该如何处理呢?求助,怎么消除线性回归的multicollinearity
logistic regression 问题R lm一问
Unexpected statistical analysis results in Cox regressionA question about regression
请问个odds ratio 和 CI的问题为什么数据‘看起来’不错,可是R^2却很低
Linear Regression请教比较两个regression coefficient
抓狂!为啥选出来的predictor都这么差请问multi variate linear regression 选择risk factor 问题
新鲜出炉的google面经!大家帮我看看答的怎样吧!关于categorical变量的 significance一个小问题
相关话题的讨论汇总
话题: x2话题: x1话题: looking
进入Statistics版参与讨论
1 (共1页)
w*********m
发帖数: 196
1
When doing a regression of Y and X1, the coefficient is positive significant
When doing a regression of Y and X2, the coefficient is positive significant
When doing a regression of Y and X1 and X2, the coefficient of X1 turns out
to be negative significant,and the coefficient of X2 remains positive significant.
What might be the reasons?
Is is because of collinearity?
Thanks:)
s*r
发帖数: 2757
2
looks like a version of simpson's paradox
w*********m
发帖数: 196
3
I got it. Thanks:)
Will there be other possibilities?
w*********m
发帖数: 196
4
I searched the website, it is more about ratio.
I am wondering how can we apply it to regression?
r*****e
发帖数: 71
5
T******r
发帖数: 265
6
1. You can calculate VIF to see how bad collinearity is, or a simple
correlation 'cause you only have two variables.
2. Maybe create the ratio and run
y ~ x1 + x2 +x1/x2 (or x2/x1)

【在 w*********m 的大作中提到】
: I searched the website, it is more about ratio.
: I am wondering how can we apply it to regression?

s*****n
发帖数: 2174
7
这个太正常了, 比如你随便构造一个 x2,
和一个与x2非常正相关的y, 就满足了第二条.
然后构造x1 = x2 - residual(y ~ x2)
这样满足以下两点.
1) x1 和 x2 很接近, 如果只用y来回归, 都是正相关的.
2) x1 和 对 y对x2回归的residual 是负相关的. 也就是当引入x2以后, x1系数就是负
的了.
本质问题, 就是 x1 和 x2 并不是 不相关的.

significant
significant
out
significant.

【在 w*********m 的大作中提到】
: When doing a regression of Y and X1, the coefficient is positive significant
: When doing a regression of Y and X2, the coefficient is positive significant
: When doing a regression of Y and X1 and X2, the coefficient of X1 turns out
: to be negative significant,and the coefficient of X2 remains positive significant.
: What might be the reasons?
: Is is because of collinearity?
: Thanks:)

1 (共1页)
进入Statistics版参与讨论
相关主题
关于categorical变量的 significance一个小问题请问个odds ratio 和 CI的问题
[合集] Questions about logistic regressionLinear Regression
How to get VIF for cox model coefficients using R?抓狂!为啥选出来的predictor都这么差
travelers summer intern 面经新鲜出炉的google面经!大家帮我看看答的怎样吧!
急问negative binomial regression的结果的model significance看哪个参数regression problem - go confused
model里有multicollinearity,该如何处理呢?求助,怎么消除线性回归的multicollinearity
logistic regression 问题R lm一问
Unexpected statistical analysis results in Cox regressionA question about regression
相关话题的讨论汇总
话题: x2话题: x1话题: looking