









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Petal width
Petal length
Sepal Width
Sepal Length
-0.
-0.
-0.
0
1
-1 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 1
F1 (99.01 %)
F2 (0.99 %)
1
11
1
1
1
1
1
1
1
1 1
1
1
1
1 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1 1
1
1 1
1
1
1
1
1
1
1
1
1
2
2
2
2
2
2
2
2
2
2 2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
3
3 3
3
3
3 3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
2
1
1
-10 -5 0 5 10
Coffee example
C
C
C C
C
C
C
C
C C
C
C
E E
E
E
E E
E E
E
E
E E
K
K K
K
K
K
K
K K
K
K
K
R R
R R
R
R
R R
R R
R
R
S
S
S S
S S
S
S
S S
S S
U
U
U U U
U
U
U
U U U
U
C
E
K
R
S
U
0
5
10
15
-15 -10 -5 0 5 10 15 20
F1 (56.19 %)
F2 (22.79 %)
Node: 1
Size: 150 %: 100
Purity(%):
50
50
1 50
2
3
Node: 2
Size: 50
%: 33. Purity(%):
100
[1, 8[ 0
0
1 50
2
3
Node: 3
Size: 100
%: 66. Purity(%):
50
[8, 25[ 50
50
10
2
3
Node: 4 Size: 53
%: 35.
Purity(%):
[8, 16.5[ 5
48
0 1
2
3
Node: 6
Size: 46 %: 30.
Purity(%):
[30,
50.5[ 1
45
10
2
3
Node: 8
Size: 41
%: 27. Purity(%):
100
[30,
47.5[ 0
41
10
2
3
Node: 9
Size: 5
%: 3. Purity(%):
80
[47.5,
50.5[ 1
4
10
2
3
Node: 10 Size: 2
%: 1. Purity(%):
50
[22,
23.5[
1
1
0 1
2
3
Node: 11 Size: 3
%: 2 Purity(%):
100
[23.5,
31[
0
3
0 1
2
3
Sepal Width
Petal length
Node: 7
Size: 7 %: 4.
Purity(%):
[50.5,
58[ 4
3
10
2
3
Node: 12
Size: 3
%: 2 Purity(%):
[60,
62.5[
1
2
10
2
3
Node: 13
Size: 4
%: 2. Purity(%):
75
[62.5,
72[
3
1
10
2
3
Sepal Length
Petal length
Node: 5 Size: 47
%: 31.
Purity(%):
[16.5,
25[
45
2
0 1
2
3
Node: 14
Size: 10 %: 6.
Purity(%):
80
[45,
50.5[ 8
2
10
2
3
Node: 15
Size: 37 %: 24.
Purity(%):
100
[50.5,
69[ 37
0
10
2
3
Petal length
Petal width
Petal width
A similarity-based classification method.
It attempts to assign categories to unknown
samples based on multivariate proximity to other
samples.
It works best with discrete classification types and
is tolerant of poor data sets.
K - !The number of closest neighbors being
compared.
Consider this as the supervised version of HCA.
d a " b = a j
j = 1
N
!
2
In this example, the
unknown is compared
to the 3 closest
known samples.
In this case, the three
closest samples are
all ʻred.ʼ
Single link
K = 3
KNN - centroid link
46464646464646464646464646464646464646464646464646464646464646464646464646464646494949494949494949494949494949494949464646444444444447444444444444444444444344434343434343434343434545454545454545454545454545454545434343434343454545454545454545454545454545434343434343424242424242424242424242424242424242424343454747474747474747474747474747474747474747
0
100
200
300
400
500
600
700
800
900
1000
-3.
-2.
-1.
-6.000 -4.000 -2.000 0.000 2.000 4.000 6.000 8.000 10.
42
43
44
45
46
47
49
KNN validation
Iris (of course)
Iris - scores by class Iris - voting results
Iris - class partitions
Cola example
PCA scores
SIMCA models
SIMCA models
SD = 3 SD = 2
SIMCA models
Discriminating
Power is a
measure of which
variables show
the biggest ‘class’
differences.
Example shows that a different
number of components were
used in developing the
individual SIMCA
hypervolumes.
Modeling power
indicates the relative
importance of each
variable for
classification.
Loadings, as always show the
relative significance of each
variable in constructing each PC
There are relatively unimportant.
PC plots are pretty boring since you only have one class. However, it can
be used to see if you have any ‘sub-classes.’
Outliers are test for by plotting sample residuals (difference between
sample and center of hypervolume) vs it’s Mahalanobis distance from the
center of the cluster - similar to a Euclidian distance but takes into account
correlations of the data and is scale invariant.