# Principal components analysis

Printable View

• October 5th 2012, 04:59 PM
kungalo
Principal components analysis
For the covariance matrix S it is known that all its p $\times$p elements are greater than zero 0. Prove that:
a) Coefficients of the first principal component are all of the same sign,
b) Coefficients of each other principal component cannot be all of the same sign.

Any help greatly appreciated.

Thanks
• October 5th 2012, 08:58 PM
chiro
Re: Principal components analysis
Hey kungalo.

You have your covariance matrix which is all positive, and for the first principal component you are going to solve an eigen-decomposition problem on your covariance matrix (i.e. find the eigen-vectors and eigen-values and retain the one with the highest eigen-value since this corresponds to the variance of each component). You don't have orthogonality conditions on the first component which means you are only interested in getting the one with the highest variance.

So what this boils down to is proving that all elements in the eigen-vector corresponding to the highest eigen-value are all positive (since the covariance matrix is positive definite, it will always have positive eigenvalues).

As for the next one, this lies on the argument dealing with orthogonality since all later components will always be orthogonal to every other principal compnent.

The easiest thing to do is that if the first component is <a,b,c,d,....> then if something is normal you know that X = PC1 Y = PCN then <X,Y> = 0 and the only way for PCN to have this relation is for at least one of the components of PCN to be negative (we also assume PCN is not the zero vector and has positive magnitude).
• October 6th 2012, 03:47 PM
kungalo
Re: Principal components analysis
I actually worked this one out. It relies on expressing the variance of the principal component as a sum of the elements of the covariance matrix and the elements of the coefficient vector. From there it's pretty easy to see that all the coefficients need to have the same sign in order to maximize the variance of the first principal component, and that there need to be positive and negative coefficients in the second principal component in order for it to be uncorrelated with the first.
All times are GMT -8. The time now is 03:40 PM.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 1, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9318490028381348, "perplexity_flag": "head"}