尺度为何重要

R 中的聚类分析

Dmitriy (Dima) Gorenshteyn

Lead Data Scientist, Memorial Sloan Kettering Cancer Center

个体间的距离

观察 身高(英尺) 体重(磅)
1 6.0 200
2 6.0 202
3 8.0 200
... ... ...
... ... ...
R 中的聚类分析

个体间的距离

R 中的聚类分析

个体间的距离

R 中的聚类分析

个体间的距离

R 中的聚类分析

个体间的距离

R 中的聚类分析

个体间的距离

R 中的聚类分析

特征缩放

   $$height_{scaled} = \frac{height - mean(height)}{sd(height)}$$

R 中的聚类分析

个体间的距离

R 中的聚类分析

个体间的距离

R 中的聚类分析

scale() 函数

print(height_weight)
  Height Weight
1      6    200
2      6    202
3      8    200
...   ...    ...
scale(height_weight)
   Height   Weight
1    0.60    0.67
2    0.60    0.73
3    11.3    0.67
...   ...    ...
R 中的聚类分析

开始练习!

R 中的聚类分析

Preparing Video For Download...