Skip to content

Non ancora disponibile in italiano. Vedi tutto ciò che è disponibile in italiano

Stockertim Dictionary · Technology · Artificial intelligence

Clustering

Also called cluster analysis, data clustering

In short

An unsupervised learning method that groups items so that those in the same group are more alike than those in other groups, for example shares whose returns tend to move together.

  • Advanced
  • Technology
  • Checked

In detail

Clustering looks for natural groupings in data without being told what the groups are. Each item, whether a customer, a share or a transaction, is described by a set of numbers, and an algorithm measures how similar items are, usually by some form of distance. Items close together end up in the same cluster.

Several families of method exist. K-means picks a chosen number of centres and assigns each item to the nearest, moving the centres until the groups settle. Hierarchical clustering builds a tree by repeatedly merging the closest items or groups, so the analyst can cut it at any level. Density-based methods find clusters of any shape and label isolated points as outliers. The choice of features, how they are scaled and the distance measure often matter more than the algorithm.

In finance clustering is used to group shares by how their returns move rather than by official sector labels, to segment customers for products and marketing, to spot unusual transactions that fit no group, and to build diversified portfolios by drawing from different clusters. Its results need interpretation: algorithms always return groups, even in data with no real structure, and clusters found in one period can change in the next.

Worked example

An analyst clusters 30 shares on two years of daily returns and finds three groups: 12 shares tied to oil prices, 10 tied to interest rates and 8 consumer shares.

  1. Total shares grouped: 12 + 10 + 8 = 30
  2. A portfolio holding 10 shares all from the oil cluster has far less diversification than one spread across the three.

Clustering reveals hidden concentration that sector labels might miss.

In practice

Asset managers use clustering in risk models and portfolio construction; banks segment customers and flag outlying transactions for fraud review; regulators group firms with similar risk profiles for supervision.

Watch out

  • A cluster is a pattern in past data, not proof that the items share a cause.
  • Changing the number of clusters or scaling of inputs can change the groups completely.

Learn it properly

Official sources

Facts last checked on 4 November 2026.

Education, not advice: the Stockertim Dictionary explains what terms mean. It never recommends buying or selling anything.

English