Clustering
*Hierarchical clustering
2
Agglomerative Hierarchical Clustering
… you will find the description and an example here:
https://onlinecourses.science.psu.edu/stat555/node/85/
3
*Incremental clustering
4
*Clustering weather data
1
5
ID | Outlook | Temp. | Humidity | Windy |
A | Sunny | Hot | High | False |
B | Sunny | Hot | High | True |
C | Overcast | Hot | High | False |
D | Rainy | Mild | High | False |
E | Rainy | Cool | Normal | False |
F | Rainy | Cool | Normal | True |
G | Overcast | Cool | Normal | True |
H | Sunny | Mild | High | False |
I | Sunny | Cool | Normal | False |
J | Rainy | Mild | Normal | False |
K | Sunny | Mild | Normal | True |
L | Overcast | Mild | High | True |
M | Overcast | Hot | Normal | False |
N | Rainy | Mild | High | True |
2
3
*Clustering weather data
4
6
ID | Outlook | Temp. | Humidity | Windy |
A | Sunny | Hot | High | False |
B | Sunny | Hot | High | True |
C | Overcast | Hot | High | False |
D | Rainy | Mild | High | False |
E | Rainy | Cool | Normal | False |
F | Rainy | Cool | Normal | True |
G | Overcast | Cool | Normal | True |
H | Sunny | Mild | High | False |
I | Sunny | Cool | Normal | False |
J | Rainy | Mild | Normal | False |
K | Sunny | Mild | Normal | True |
L | Overcast | Mild | High | True |
M | Overcast | Hot | Normal | False |
N | Rainy | Mild | High | True |
3
Merge best host and runner-up
5
Consider splitting the best host if merging doesn’t help
*Final hierarchy
7
ID | Outlook | Temp. | Humidity | Windy |
A | Sunny | Hot | High | False |
B | Sunny | Hot | High | True |
C | Overcast | Hot | High | False |
D | Rainy | Mild | High | False |
Oops! a and b are actually very similar
*Example: the iris data (subset)�
8
*Clustering with cutoff
9
*Category utility
10
maximum
number of attributes
*Overfitting-avoidance heuristic
Where n is number of all possible attribute values.
11
Maximum value of CU
Other Clustering Approaches
12
Discussion
13
Examples of Clustering Applications
14
Clustering Summary
15
Principal Component Analysis (PCA)
… you will find (detailed) description here:
http://setosa.io/ev/principal-component-analysis/
http://www.lauradhamilton.com/introduction-to-principal-component-analysis-pca
http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_components.pdf
16