Question

In: Statistics and Probability

Give practical examples to differentiate LDA and PCA

Give practical examples to differentiate LDA and PCA

Solutions

Expert Solution

1) What is Principle Component Analysis(PCA)

PCA is a technique for feature extraction. so it combines our input variables in a specific way, then we can drop the least important variables while still retaining the most valuable parts of all the variables.

a) Step:

1) Calculate the covariance matrix X of data points.

2) Calculate eigenvectors and correspond eigenvalues.

3) Sort eigenvectors accordingly to their given value in decrease order.

4) Choose first k eigenvectors and that will be the new k dimensions.

5) Transform the original n-dimensional data points into k_dimensions

2) What is a Linear Discriminant Analysis(LDA):

LDA is a type of Linear combination, a mathematical process using various data items and applying a function to that site to separately analyze multiple classes of objects or items.

Step:

1) Compute the d-dimensional mean vector for the different classes from the dataset.

2) Compute the Scatter matrix(in between class and within the class scatter matrix)

3) Sort the Eigen Vector by decrease Eigen Value and choose k eigenvector with the largest eigenvalue to from a d*k dimensional matrix w (where every column represent an eigenvector)

4. Used d * k eigenvector matrix to transform the sample onto the new subspace.

This can be summarized by the matrix multiplication.

Y = X * W (where X is an n*d dimension matrix representing the n samples and you are transformed n * k dimensional samples in the new subspace.

Note data link: https://gist.github.com/tijptjik/9408623


Related Solutions

Use practical examples to differentiate between Norm-referenced testing and Criterion-referenced testing.
Use practical examples to differentiate between Norm-referenced testing and Criterion-referenced testing.
Explain differences between IPv6 Anycast and Multicast. Give practical examples.
Explain differences between IPv6 Anycast and Multicast. Give practical examples.
Differentiate between compulsive consumption and addictive consumption. Give examples of each.
Differentiate between compulsive consumption and addictive consumption. Give examples of each.
. Differentiate between metric and non-metric scale of measurement by giving suitable examples. Give examples of...
. Differentiate between metric and non-metric scale of measurement by giving suitable examples. Give examples of statistical tools where the two types of data (metric and non-metric) are used.
(a) Using practical examples, differentiate between the following commercial averages: (i) Moving Average (ii) Progressive Average...
(a) Using practical examples, differentiate between the following commercial averages: (i) Moving Average (ii) Progressive Average (iii) Composite Average (b) Explain what you understand by a theoretical probability distribution and how it is useful in business decision-making? (c) Explain the process of hypothesis testing, detailing clearly under which condition the Normal distribution may be used. (d) Explain the difference between the following four non-probability sampling methods: quota sampling, judgmental sampling, snowball sampling and convenience sampling. (e) Explain how the sampling...
Differentiate between corporate-level and business-level strategies and give examples of each.
Differentiate between corporate-level and business-level strategies and give examples of each.
Differentiate between Real and Ideal gas? Please explain extensively and give examples.
Differentiate between Real and Ideal gas? Please explain extensively and give examples.
Discuss in detail about the advantages/disadvantages of compressors in refrigeration systems. Give practical examples of compressors...
Discuss in detail about the advantages/disadvantages of compressors in refrigeration systems. Give practical examples of compressors in vapor and/or absorption refrigeration system. Please write down references if any.
Give two practical examples on applications of predictive analytics in your area (e.g. supply chain or...
Give two practical examples on applications of predictive analytics in your area (e.g. supply chain or IT or Library or etc.). Provide detail explanations. You need to explain why you think predictive analytics can be used in those cases, you do not need to provide data or solve them
Graph has a number of applications in applied computer science. Give some practical examples and explain...
Graph has a number of applications in applied computer science. Give some practical examples and explain with your own words where you can relate the theory of graph to practice in real life. A long and clear explanation will be appreciated.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT