Module IV: Dimensionality Reduction and Clustering (not on midterm)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/7

flashcard set

Earn XP

Description and Tags

* review the slides for this unit!!

8 Terms

1
New cards

k-means clustering

2
New cards

principal component analysis (PCA)

"best" as projection into top k principal components (PCs) as directions of highest variance in data


The PCA coordinate frame is defined such that: PC1 is the direction of highest variance in the data PC2 is the direction of next highest variance orthogonal to PC1 PC3 is the direction of next highest variance orthogonal to PC1, PC2 PC4 is the direction of next highest variance orthogonal to PC1, PC2, PC3


  • no labels


So here is the final result of PCA. It has given us a means to take our 2D data in (X1,X2) and represent it in 1D (PC1) while maintining a large fraction of the information content (i.e., variance).

This is the sense in which dimensionality reduction "works": if you can approximate a data set in a lower dimension, we can have an easier time visualizing it, storing it, transmitting it, understanding it, or fitting complicated models to the data.

3
New cards

dimensionality reduction

  • trying to focus in on what is useful

  • a method for representing data using a lower number of features while still retaining the meaningful structure and properties of the data.


<ul><li><p>trying to focus in on what is useful</p></li><li><p>a method for representing data using a lower number of features while still retaining the meaningful structure and properties of the data.</p></li></ul><p></p>
4
New cards

mean vector

5
New cards

variance

will be asked to find variance of a vector

6
New cards

mean-zero

7
New cards

optimization

  • maximizes variance in PCs

  • can be done by gradient descent but eigenvalue decomposition or singular value decomposition are better


8
New cards

how to choose k

  • compute fraction of variance explained

  • use elbow or knee in curve OR where the FVE curve breaks a defined threshold such as 90%/ 95%/99%


<ul><li><p>compute fraction of variance explained</p></li></ul><ul><li><p>use elbow or knee in curve OR where the FVE curve breaks a defined threshold such as 90%/ 95%/99%</p></li></ul><p></p>