Skip to contents

The ratio of the within-cluster sum of squares to the total sum of squares, \(WSS/TSS = \sum_{k=1}^{K} \sum_{i \in C_k} \| x_i - \mu_k \|^2 / \sum_{i=1}^{n} \| x_i - \mu \|^2\) where \(\mu_k\) is the centroid of cluster \(k\) and \(\mu\) is the centroid of all observations. The ratio lies in \([0, 1]\), with lower values indicating more compact clusters. Unlike the raw within sum of squares, it is comparable across datasets and feature scalings. It decreases monotonically with the number of clusters, which makes it the standard quantity for elbow plots.

Dictionary

This mlr3::Measure can be instantiated via the dictionary mlr3::mlr_measures or with the associated sugar function mlr3::msr():

mlr_measures$get("clust.sse_ratio")
msr("clust.sse_ratio")

Meta Information

  • Task type: “clust”

  • Range: \([0, 1]\)

  • Minimize: TRUE

  • Average: macro

  • Required Prediction: “partition”

  • Required Packages: mlr3, mlr3cluster