0
$\begingroup$

I am having a set of strings, they have been alligned and I have a matrix of pairwise distances. Now the objects have to be clustered yet I do not know the number of clusters beforehand. I would like to calculate some parameters that would help me decide - starting with intra-cluster variance and gap statistics.
The point is that I just have the distance matrix, not the coordinates themselves. What kind of analyses could I performed based on that?

$\endgroup$

1 Answer 1

1
$\begingroup$

You can for example use the Ward's method implemented in scikit-learn or fastcluster. It will produce a dendrogram, and you scan spot at which level you should cut the dendrogram by looking at the variance decrease (sort of elbow method), cf. this post on se.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.