From K-means to Gaussian Mixture Modelling, condensed in a few lines of code — In the Machine Learning literature, K-means and Gaussian Mixture Models (GMM) are the first clustering / unsupervised models described [1–3], and as such, should be part of any data scientist’s toolbox. In R, one can use kmeans(), Mclust() or other similar functions, but to fully understand those algorithms, one needs…