Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Blog › Explore in 3D

25 November 2026 · 3 min readInteractive 3D

The spiral galaxy M101 in deep space
Photo by thibault henry on Unsplash

Where is clustering used in real life?

Grouping similar things without labels is everywhere: shops, music, medicine and astronomy. Here is how and where.

Clustering means sorting things into groups of similar items when nobody has told you what the groups are. It sounds abstract, but it quietly runs many systems you use.

Each dot could be a customer described by three numbers: how often they visit, how much they spend, how many items they buy.

Where it is used

  • Shops group customers into types, such as weekly regulars and festival-only buyers, and send each group different offers.
  • Music and video apps group songs or shows by how people listen to them, to suggest similar ones.
  • Doctors and researchers group patients by symptoms and test results to spot types of a disease.
  • Astronomers group stars and galaxies by brightness and colour.
  • Phones group your photos by the faces in them.

The hard part is the description

Clustering only finds groups in the numbers you give it. Describe customers by spending and visits and you get spending types. Describe them by the time of day they shop and you get completely different groups. Choosing what to measure matters more than the method.

Five places you meet it

  • Shops group customers by what they buy to send relevant offers.
  • Music apps group songs with similar sound to build playlists.
  • Doctors group patients with similar symptoms to study diseases.
  • Astronomers group stars by brightness and colour to find families of stars.
  • Phone cameras group similar photos so you can find “all pictures of the beach”.

A small example: tiffin choices

A school canteen records how often each student buys snacks and how often they buy full meals. Plotted as points, three clouds appear: snack-lovers, meal-lovers and students who rarely buy anything. The canteen can now plan stock for each group instead of guessing.

Turning clusters into decisions

An algorithm only returns group numbers: cluster 0, 1 and 2. People must look inside each cluster, describe what its members share, and decide whether the grouping is useful. Two clusters might turn out to be the same kind of customer split by an unimportant feature, which is a sign to change the features or the number of clusters.

Clustering can reflect bias in the data. If the data leaves out a group of people, the clusters will too.

Clustering in Indian cities

Delivery apps cluster order locations to decide where to place dark stores. Transport planners cluster bus-card tap data to find where people really travel. Farmers’ cooperatives cluster soil test results to recommend fertiliser mixes for groups of fields instead of one plan for all.

Glossary

  • Segment: a group of customers that behave alike.
  • Outlier: a point far from every cluster.
  • Unsupervised learning: learning without labelled answers.

Try these yourself

  1. Q1. A shop has no labels for its customers but wants groups: clustering or classification? Clustering
  2. Q2. A bank has emails marked fraud or not: which? Classification
  3. Q3. A playlist app groups songs by tempo and loudness. Name two features: tempo and loudness
  4. Q4. Two clusters look identical except for postcode. What should you do? Rethink the features or merge them

Good questions to ask about any clustering

  • Which features were used, and were they on the same scale?
  • Can each group be described in one plain sentence?
  • Do the groups lead to a different decision for each?
  • Who might be missing from the data?

In short

Clustering finds groups without labels, from shoppers to stars. The algorithm does the grouping; people decide whether the groups mean anything.

Keep going

  • K-means in 3D
  • Lesson: recommendations
  • Glossary: nearest neighbours
  • What are word embeddings? Words as points
  • What is cosine similarity? How alike two things are
  • How can random dots find π? Monte Carlo

Read and listen in

Indian languages

World languages

Questions people ask

What is clustering used for?

Finding natural groups in data, such as customer types, similar songs, patient groups or families of stars.

What is the difference between clustering and classification?

Classification learns from labelled examples to put items into known classes. Clustering finds groups without any labels.

Which algorithm is used for clustering?

K-means is the most common starting point; others include hierarchical clustering and DBSCAN, which handles odd-shaped groups.

More articles

  • What are word embeddings? Words as points
  • What is cosine similarity? How alike two things are
  • How can random dots find π? Monte Carlo