由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 请问一个Regression的问题
相关主题
how to interpret the interaction terms between two continuous variables in regression model?regression problem - go confused
请教一个关于logistic regression参数的问题any regression model with high prediction accuracy?
急问:请教一个muliticollinearity的面试问题,谢谢!anybody use minitab?
y = a + b * (c ^ x)model和variables都sig.但每个category都不sig
Order of Independent Variables in Linear Multiple Regression请教一个面试问题。
Linear Regression问一个linear regression 的弱问题。
求助,怎么消除线性回归的multicollinearity抓狂!为啥选出来的predictor都这么差
问个modeling data size的问题How to transform predictor variable?
相关话题的讨论汇总
话题: regression话题: b1x1话题: b2x2话题: log话题: model
进入Statistics版参与讨论
1 (共1页)
j******a
发帖数: 104
1
我想做一个regression model
y = b1x1 + b2x2 + e
但是我知道regression 的assumption里面predictors之间应该是independent的,但是
我这个x1和x2,是有相关性的,这样子我还能做regression吗?或者有什么方法可以
fix这个问题
还有我的y是应该大于0的,我应该需要怎样的transformation呢? log吗? 如果用
generalized linear model里面的log link function 也就是 y = exp(b1x1 + b2x2 +
e),哪样更好?
谢谢
P*****r
发帖数: 554
2
both x1 and x2 significant? VIF is a good way to describe multicoliearity
and you may find some common threshold for VIF.
It would be the same either you use log link with family=gaussian in glm or
just do log transformation in lm.

+

【在 j******a 的大作中提到】
: 我想做一个regression model
: y = b1x1 + b2x2 + e
: 但是我知道regression 的assumption里面predictors之间应该是independent的,但是
: 我这个x1和x2,是有相关性的,这样子我还能做regression吗?或者有什么方法可以
: fix这个问题
: 还有我的y是应该大于0的,我应该需要怎样的transformation呢? log吗? 如果用
: generalized linear model里面的log link function 也就是 y = exp(b1x1 + b2x2 +
: e),哪样更好?
: 谢谢

j******a
发帖数: 104
3
谢谢楼上回复, 我把我想解决的问题先写出来, 看看是否可以做regression或是有更
好的解决方法。。。
我现在有A,B组客人,知道每组客人可以带来多少revenue,也就是说我知道每组有多少
客人(x),和每个组revenue/customer(b),每天记录, 一共记录比如一个月,并且知
道两组加起来一共的revenue(y); 目的:想通过这两个变量太预测整个两组加起来总共
带来的的revenue(y_hat)
我理解是 y = b1*x1 + b2*x2 + e, 然后想把这个做成regression
但是我做了regression, 首先b1 和 b2给出来的estimator,和我真正有的revnue/
customer差很远 (感觉上面那个模型没有intercept, 但是R给我结果是有intercept)
,并且estimated b出现负值, 直接导致我的predicted value也变成负值, 请问我这
是哪里做错了吗? 还是不可以这么做regression, 有什么其他方法可以predict吗?
谢谢
t*****w
发帖数: 254
4
I think it is correct to have the intercept (in general, customer will spend
money and generate revenue for you). estimate could be negative (you
identify that the customer from one group is not generous). Your model is y=
a+bx. (x is 1 for A and 0 for B, or visa versa)
1 (共1页)
进入Statistics版参与讨论
相关主题
How to transform predictor variable?Order of Independent Variables in Linear Multiple Regression
a question on transformationLinear Regression
One interview question:) Looking for help求助,怎么消除线性回归的multicollinearity
miltiple linear regression(含interaction term) 问题问个modeling data size的问题
how to interpret the interaction terms between two continuous variables in regression model?regression problem - go confused
请教一个关于logistic regression参数的问题any regression model with high prediction accuracy?
急问:请教一个muliticollinearity的面试问题,谢谢!anybody use minitab?
y = a + b * (c ^ x)model和variables都sig.但每个category都不sig
相关话题的讨论汇总
话题: regression话题: b1x1话题: b2x2话题: log话题: model