Cluster analysis is a set of statistical methods that sort observations into groups so that members of one group resemble each other more than they resemble members of other groups. No categories are defined in advance, which makes it a form of unsupervised learning. Similarity is measured on chosen variables, often as a distance or a correlation.
Hierarchical methods build a tree, usually by repeatedly merging the two closest groups, and the analyst decides where to cut it. K-means clustering instead fixes the number of groups, assigns each observation to the nearest centre and recalculates the centres until assignments settle. In finance the techniques group stocks that move together, to test diversification, and segment customers by behaviour. Results depend heavily on the variables, their scaling, the distance measure and the number of clusters. An algorithm will produce groups even where the data contain no meaningful structure.
Ref 1100002102