Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
CONTENTS
WHAT IS PCA
HOW IT WORKS
HISTORY OF PCA
PCA IMPLEMENTATION
USES of PCA
LIMITATION OF PCA
2/28
WHAT IS PCA
Principal component analysis (PCA) is a technique used to emphasize variation and bring
out strong patterns in a dataset.
3/28
HOW IT WORKS
Eating in the UK (a 17D example) Here's the plot of the data along the first principal
component. Already we can see something is different
about Northern Ireland.
Northern Irish eat way more grams of fresh potatoes and way
fewer of fresh fruits, cheese, fish and alcoholic drinks
4/28
HISTORY OF PCA
src: https://commons.wikimedia.org/wiki/File:GaussianScatterPCA.svg
5/28
HISTORY OF PCA
6/28
PCA IMPLEMENTATION
7/28
PCA IMPLEMENTATION
Eigenvalue decomposition (EVD)
NxM > NxK (K<=M)
X = original data matrix
XXTW=WD
8/28
PCA IMPLEMENTATION
Singular Value decomposition (SVD)
NxM > NxK (K<=M)
X = original data matrix
X=UVT
XV=U
9/28
PCA IMPLEMENTATION
10/28
PCA IMPLEMENTATION
EXAMPLE
11/28
PCA IMPLEMENTATION
EXAMPLE
12/28
PCA IMPLEMENTATION
EXAMPLE
13/28
PCA IMPLEMENTATION
EXAMPLE
14/28
PCA IMPLEMENTATION
EXAMPLE
Dot are spread out along a diagonal line and Dots are also spread out a little above and below the
maximum variation of data is between the first line and 2nd largest amount of variation is at the
two end points of line endpoints of the new line
15/28
PCA IMPLEMENTATION
EXAMPLE
16/28
PCA IMPLEMENTATION
EXAMPLE
These two new axes that describe the variation in the data are Principal
Components
17/28
PCA IMPLEMENTATION
EXAMPLE
18/28
PCA IMPLEMENTATION
EXAMPLE
19/28
PCA IMPLEMENTATION
EXAMPLE
20/28
PCA IMPLEMENTATION
EXAMPLE
21/28
PCA IMPLEMENTATION
EXAMPLE
22/28
PCA IMPLEMENTATION
EXAMPLE
23/28
PCA IMPLEMENTATION
EXAMPLE
24/28
PCA IMPLEMENTATION
EXAMPLE
25/28
USES OF PCA
PCA is mostly used as a tool for Compression and Simplifying data for easier learning
in exploratory data analysis and for making predictive models.
2 - Better visualization
3- Reduce size
4- Different perspective:
26/28
LIMITATION OF PCA
27/28
REFERENCES
28/28
THANKS
29