由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Mathematics版 - question about Principal Component Analysis
相关主题
PCA 分析请教 (转载)问一个Linear regression的弱问题
Predict values of vectors generated by black box functionsdata clustering by vector correlation distance (转载)
有人吗?问几个线性代数问题...two vectors' coefficient of determination (转载)
请教如何用PCA结果中的component 1 和 component 2 做MANOVA分析请教一个向量几何问题
关于最优化里面的牛顿法一问还是问关于矩阵的问题
请问这个数学问题有没有closed form solution.please help with an integral problem
vector/principal bundle究竟在讲什么?请问boost有eigen decomposition的function么
请教minimization的问题一个简单的矩阵函数问题
相关话题的讨论汇总
话题: component话题: eigen话题: principal话题: vector话题: analysis
进入Mathematics版参与讨论
1 (共1页)
a********x
发帖数: 4
1
其实应该算是 constrained principal component analysis. 如果我想把第一个
component定为一个 constant vector,然后依次求后面的component. 那么第二个
component 就应该是下面这个条件极值的解:
max_{x} x'W x
s.t. x'x = 1
x_{1}' x = 0
x_{1} 就是那个constant vector,W是一个正定矩阵。
请问这样的问题有没有什么简便的算法,或是有没有那个计算软件或者已经写好的程序
可以解这个问题。我试过用MATLAB里面的constrained minimizer 来解,不work。提前
谢了!
a**a
发帖数: 416
2
Power Method...

【在 a********x 的大作中提到】
: 其实应该算是 constrained principal component analysis. 如果我想把第一个
: component定为一个 constant vector,然后依次求后面的component. 那么第二个
: component 就应该是下面这个条件极值的解:
: max_{x} x'W x
: s.t. x'x = 1
: x_{1}' x = 0
: x_{1} 就是那个constant vector,W是一个正定矩阵。
: 请问这样的问题有没有什么简便的算法,或是有没有那个计算软件或者已经写好的程序
: 可以解这个问题。我试过用MATLAB里面的constrained minimizer 来解,不work。提前
: 谢了!

r****y
发帖数: 1437
3
why? Just solve the eigenvalues and eigenvectors for
covariance matrix iteratively. There is numerical routine ready for this,
the first one is always 1st PC, etc.
In matlab, they have built-in PCA command, try princomp.

【在 a********x 的大作中提到】
: 其实应该算是 constrained principal component analysis. 如果我想把第一个
: component定为一个 constant vector,然后依次求后面的component. 那么第二个
: component 就应该是下面这个条件极值的解:
: max_{x} x'W x
: s.t. x'x = 1
: x_{1}' x = 0
: x_{1} 就是那个constant vector,W是一个正定矩阵。
: 请问这样的问题有没有什么简便的算法,或是有没有那个计算软件或者已经写好的程序
: 可以解这个问题。我试过用MATLAB里面的constrained minimizer 来解,不work。提前
: 谢了!

a********x
发帖数: 4
4
yeah, that would be just regular PCA. Now, my problem is I want to fix the
first PC equal to a constant vector, whereas the first PC generated by a
regular PCA usually is not a constant vector...
a********x
发帖数: 4
5
Thanks! arya
But there is still one thing I'm not quite sure about. I know power method
is used to find eigen values/vectors. But here I have pre-selected a
constant vector as my first PC (they are different from the true dominant
eigen value and vector normally). So if I use this 'pseudo' pair eigen value
/vector as if they were the true ones to compute the nondominant eigen
values, would that work? Thanks again
r**********e
发帖数: 133
6
I guess you might want to try the following:
Let \lambda=x_{1}'Wx_{1}, and then find PCA's for matrix
V=W-\lambda*x_{1}*x_{1}'.

【在 a********x 的大作中提到】
: 其实应该算是 constrained principal component analysis. 如果我想把第一个
: component定为一个 constant vector,然后依次求后面的component. 那么第二个
: component 就应该是下面这个条件极值的解:
: max_{x} x'W x
: s.t. x'x = 1
: x_{1}' x = 0
: x_{1} 就是那个constant vector,W是一个正定矩阵。
: 请问这样的问题有没有什么简便的算法,或是有没有那个计算软件或者已经写好的程序
: 可以解这个问题。我试过用MATLAB里面的constrained minimizer 来解,不work。提前
: 谢了!

a********x
发帖数: 4
7
thanks, randomOracle
I actually tried this. but since x_{1} is not really the eigen vector
associated with the largest eigen value. V = W -\lambda*x_{1}*x_{1}' is no
longer positive definite. In fact, there would be a negative eigen value,
which is quite salient...
but I guess this at least can serve as an ad hoc way to get some out...
Thanks for all your inputs. They are all very helpful
1 (共1页)
进入Mathematics版参与讨论
相关主题
一个简单的矩阵函数问题关于最优化里面的牛顿法一问
问一个矩阵的问题请问这个数学问题有没有closed form solution.
求助:Matlab里面如何分解矩阵?vector/principal bundle究竟在讲什么?
关于 Sturm-Liouville 问题的紧急求助!!!!!!!!!请教minimization的问题
PCA 分析请教 (转载)问一个Linear regression的弱问题
Predict values of vectors generated by black box functionsdata clustering by vector correlation distance (转载)
有人吗?问几个线性代数问题...two vectors' coefficient of determination (转载)
请教如何用PCA结果中的component 1 和 component 2 做MANOVA分析请教一个向量几何问题
相关话题的讨论汇总
话题: component话题: eigen话题: principal话题: vector话题: analysis