h*****u 发帖数: 204 | 1 1 有3个变量y,x1 and x2,
2 假如correlation 系数(y,x1)=a1>0 and correlation 系数(y,x2)=a2>0,
3 Do the multi linear regression y as a funtion x1 and x2, suppose we get y~
b1*x1+b2*x2, 但是这里b1<0, b2>0.
从2中,我们得知y和x1的关系是同向变化的, 但是由于Do the multi linear
regression,我们得到 y~ b1*x1+b2*x2, 如果固定x2不变的话,我们就得到了y与x1
的关系是反向的。
我的问题是: 有没有一个办法让multi linear regression的系数的符号跟
correlation 系数的符号是一致的? 谢谢 | D******n 发帖数: 2836 | 2 correlation between x1 and x2
try y=x1+x2+x1*x2
y~
x1
【在 h*****u 的大作中提到】 : 1 有3个变量y,x1 and x2, : 2 假如correlation 系数(y,x1)=a1>0 and correlation 系数(y,x2)=a2>0, : 3 Do the multi linear regression y as a funtion x1 and x2, suppose we get y~ : b1*x1+b2*x2, 但是这里b1<0, b2>0. : 从2中,我们得知y和x1的关系是同向变化的, 但是由于Do the multi linear : regression,我们得到 y~ b1*x1+b2*x2, 如果固定x2不变的话,我们就得到了y与x1 : 的关系是反向的。 : 我的问题是: 有没有一个办法让multi linear regression的系数的符号跟 : correlation 系数的符号是一致的? 谢谢
|
|