由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - PCA and linear regression
相关主题
how to Use PCA to get eignen vector and eigen valuePCA 分析请教
用PCA的时候,如果P比N大怎么办啊?求教linear mixed model R2 的问题
统计菜鸟请教问题:关于linear regression请问multi variate linear regression 选择risk factor 问题
请教牛人们关于time series 的 linear regression 问题请教PCA
如何确定什么情况time series,什么情况linear reg?请问哪里有PCA的SAS code 啊
regression的时候什么时候要standardize variables?向版上大牛请教个问题
如何评价non-linear regression的好坏?SAS包子请教 - use PCA to create an index
请问poisson regression和 Log-linear model之间的联系?如何选择covariate的问题
相关话题的讨论汇总
话题: pca话题: regression话题: linear话题: slope话题: vector
进入Statistics版参与讨论
1 (共1页)
f******y
发帖数: 2971
1
suppose two random variables, X and Y, mean of them are very small.
I can get the slope by linear regression lm(Y~X);
I can also do PCA,
data = data.frame(X=X, Y=Y);
princomp(data);
I expected the slope of the first PC vector to be very close to the slope
given by linear regression. I tried it in R, the results are very different.
Anyone can explain?
a***d
发帖数: 336
2
what do you mean by slope of the first PC vector?

different.

【在 f******y 的大作中提到】
: suppose two random variables, X and Y, mean of them are very small.
: I can get the slope by linear regression lm(Y~X);
: I can also do PCA,
: data = data.frame(X=X, Y=Y);
: princomp(data);
: I expected the slope of the first PC vector to be very close to the slope
: given by linear regression. I tried it in R, the results are very different.
: Anyone can explain?

j******n
发帖数: 2206
3
re
t**c
发帖数: 539
4
请教PCA和regression之间是什么关系啊?
z*****n
发帖数: 413
5
I don't think there is specific relationship between PCA and regression.
But covariates of regression can be replaced by PCs, if the X matrix has
strong colinearity. Or PCA is a good way to reduce the number of covariates.
I doubt the meaning of what LOUzhu did. For y=mu + b * x, b can be treated
as a scale of the x vector in the n-space. The first component of x,y should
be vector x+y, and this is non-sense if you haven't standardized your data
before PCA.
1 (共1页)
进入Statistics版参与讨论
相关主题
如何选择covariate的问题如何确定什么情况time series,什么情况linear reg?
PCA作图regression的时候什么时候要standardize variables?
问一些关于mixed model的问题,包子悬赏,不胜感激。如何评价non-linear regression的好坏?
关于multi-factor (?) regression理论?请问poisson regression和 Log-linear model之间的联系?
how to Use PCA to get eignen vector and eigen valuePCA 分析请教
用PCA的时候,如果P比N大怎么办啊?求教linear mixed model R2 的问题
统计菜鸟请教问题:关于linear regression请问multi variate linear regression 选择risk factor 问题
请教牛人们关于time series 的 linear regression 问题请教PCA
相关话题的讨论汇总
话题: pca话题: regression话题: linear话题: slope话题: vector