# Representative observations from the hierarchical clustering results

I'm using the hierarchical clustering to generate groups from unlabeled dataset (or observations). I’m using the matlab function Z_SAMPLES = linkage(id,'average','@distcustomfun'); with my custom function distcustomfun.

I’m interested in finding the observation the most representative of each cluster? Any idea how can I find this observation.

• Any sane idea will do. You may define a representative observation as, for example, the medoid of a cluster. You should be aware, however, that you have used linkage method average which itself is not tied with an idea of medoid, centroid or other "representative" or "central" place inside the cluster. So, your representative observation will be not related to the optimization function done by the clustering. – ttnphns Feb 10 '16 at 10:12
• @ttnphns I was thinking to calculate the distance between the observations in each cluster, and pike the observation that has minimum distance. What do you think? – Omar14 Feb 10 '16 at 10:20
• You are probably thinking of the medoid. Search/Read about it on this site and the internet. – ttnphns Feb 10 '16 at 10:23