Question

In: Computer Science

What are different methods by which you can compute the PCA? Does every method will yield...

What are different methods by which you can compute the PCA? Does every method will yield same result or answer at the end?

Solutions

Expert Solution

1) Using covariance

Let X be a d-dimensional random vector expressed as a column vector. Without loss of generality, assume X has zero mean.

We want to find a d × d orthonormal transformation matrix P so that PX has a diagonal covariance matrix (i.e. PX is a random vector with all its distinct components pairwise uncorrelated).

A quick computation assuming were unitary yields:

Hence holds if and only if were diagonalizable by .

This is very constructive, as cov(X) is guaranteed to be a non-negative definite matrix and thus is guaranteed to be diagonalizable by some unitary matrix.

2) Iterative computation method

The pseudocode is given below:

3) The NIPALS method

Non-linear iterative partial least squares (NIPALS) is a variant the classical power iteration with matrix deflation by subtraction implemented for computing the first few components in a principal component or partial least squares analysis. For very-high-dimensional datasets, such as those generated in the *omics sciences (e.g., genomics, metabolomics) it is usually only necessary to compute the first few PCs. The non-linear iterative partial least squares (NIPALS) algorithm updates iterative approximations to the leading scores and loadings t1 and r1T by the power iteration multiplying on every iteration by X on the left and on the right, i.e. calculation of the covariance matrix is avoided, just as in the matrix-free implementation of the power iterations to XTX, based on the function evaluating the product XT(X r) = ((X r)TX)T

4) Online/sequential estimation

In an "online" or "streaming" situation with data arriving piece by piece rather than being stored in a single batch, it is useful to make an estimate of the PCA projection that can be updated sequentially. This can be done efficiently, but requires different algorithms.


Related Solutions

What are the different methods for solving a system of equations? Which method do you like...
What are the different methods for solving a system of equations? Which method do you like the best? Why? When is your favorite method of solving a system of equations not the best method (please provide an example of that kind of system)?
If MAPE and MAD indicate different methods, how do you choose which method to use?
If MAPE and MAD indicate different methods, how do you choose which method to use? You always trust MAPE better. You aslways trust MAD better. You have to use your judgement. You can not choose a method.You should not work on this specufuc project anymore
What are the advantages of each of below methods? Which method are you likely to accept?...
What are the advantages of each of below methods? Which method are you likely to accept? - payback period - average rate of return on initial investment - net present value (NPV)
What are the alternative costing methods? Describe the scenario in which each costing method can best...
What are the alternative costing methods? Describe the scenario in which each costing method can best be used.
Discuss the different methods that are used to forecast exchange rate movements. Which method is the...
Discuss the different methods that are used to forecast exchange rate movements. Which method is the best and explain why?
What are the different approaches and methods you can use to convey your promotional message. .What...
What are the different approaches and methods you can use to convey your promotional message. .What are the key skills involved in personal selling, especially closing the sale. .What are the major approaches to customer retention. .Identify sales forecasting methods. .What are the different approaches and methods you can use to craft your promotional message
What are the 4 main methods to organize a paper? Which method would you use to...
What are the 4 main methods to organize a paper? Which method would you use to structure a report on how a company has grown over the years (company growth) and why?
Describe the circumstances in which you would undertake a principle components analysis (PCA). What checks you...
Describe the circumstances in which you would undertake a principle components analysis (PCA). What checks you would undertake to assess the strength of the relationship among the variables before conducting a PCA?
What are the costs and benefits of utilizing quantitative methods and qualitative methods? Which method do...
What are the costs and benefits of utilizing quantitative methods and qualitative methods? Which method do you believe is superior? Consider a political phenomenon that you would like to study. Compile a list of a couple research questions and hypotheses that can help you in your study.
What effects crystallization? What do you have to consider (solvent, temperature, solubility, etc.)? Which methods yield...
What effects crystallization? What do you have to consider (solvent, temperature, solubility, etc.)? Which methods yield a purer product, extraction or crystallization? How is crystallization different than extraction?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT