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.
The silhouette coefficient is defined as:
s(i)=⎩⎨⎧1−a(i)/b(i)0b(i)/a(i)−1 if a(i)<b(i) if a(i)=b(i) if a(i)>b(i)
Where:
The higher the coefficient, the better.