The silhouette coefficient is defined as:

Where:

  • is the means distance between and all other data points in the same cluster ;
  • is the smallest distance of to all points in any other cluster .

The higher the coefficient, the better.


clustering