K-Means Clustering: How It Works & Finding The Optimum Number Of Clusters In The Data

Mathematical formulation, Finding the optimum number of clusters and a working example in Python

Serafeim Loukas, PhD
Geek Culture
Published in
8 min readJun 26, 2021

--

Image created by the author

Introduction

K-means is one of the most widely used unsupervised clustering methods.

--

--

Serafeim Loukas, PhD
Geek Culture

Data Scientist @ Natural Cycles (Switzerland). PhD, MSc, M.Eng. Bespoke services on demand