0
$\begingroup$

I did k-means clustering with 2d data. The x axis represent depth (km). And result was :.enter image description here

But when I converted km to metr, I got it

enter image description here

Could you give explanation why do this happens?

$\endgroup$

1 Answer 1

0
$\begingroup$

When you change the scale or range of your features the euclidean distance between pairs of observations in your dataset changes significantly and one feature with the larger range dominates over all the others.

So, in your case, k-means was tricked into believing that the depth in metres is more important than the other feature with the lower scale.

You can fix this by normalizing all features in your dataset to a similar scale so as to reduce the bias towards specific features.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.