尺度為何重要

R 的叢集分析

Dmitriy (Dima) Gorenshteyn

Lead Data Scientist, Memorial Sloan Kettering Cancer Center

個體間的距離

Observation Height (feet) Weight (lbs)
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...