Study guide

2.4 Clustering Models

Microsoft Azure AI Fundamentals AI-900

Track your progress as you read

Finished sections get a check mark.

1 Introduction

About the Azure AI Fundamentals (AI-900) Exam Study Strategies and Exam Tips for the AI-900

2 Domain 1: Describe AI Workloads and Considerations (15-20%)

1.1 What Is Artificial Intelligence? 1.2 Responsible AI Principles 1.3 Identifying Common AI Workloads and Use Cases 1.4 Responsible AI Tools and Practices on Azure

3 Domain 2: Fundamental Principles of Machine Learning on Azure (20-25%)

2.1 Core Machine Learning Concepts 2.2 Regression Models 2.3 Classification Models 2.4 Clustering Models 2.5 Deep Learning and Neural Networks 2.6 Azure Machine Learning Service

4 Domain 3: Computer Vision Workloads on Azure (15-20%)

3.1 Computer Vision Concepts and Tasks 3.2 Azure AI Vision Service 3.3 Azure AI Custom Vision and Face Services 3.4 Azure AI Document Intelligence

5 Domain 4: Natural Language Processing Workloads on Azure (15-20%)

4.1 NLP Concepts and Common Tasks 4.2 Azure AI Language Service 4.3 Azure AI Speech Service 4.4 Azure AI Translator Service

6 Domain 5: Generative AI Workloads on Azure (15-20%)

5.1 Generative AI Fundamentals 5.2 Azure OpenAI Service 5.3 Prompt Engineering 5.4 Retrieval-Augmented Generation (RAG) 5.5 Responsible Generative AI 5.6 Microsoft Copilot and AI-Powered Applications

7 Exam Review and Full-Length Practice Questions

6.1 Domain Summary and Key Comparisons 6.2 Practice Questions: AI Workloads and Responsible AI 6.3 Practice Questions: Machine Learning 6.4 Practice Questions: Computer Vision, NLP, and Generative AI

2.4 Clustering Models

Key Takeaways Explain This Topic AI

Clustering is an unsupervised learning technique that groups similar data points together WITHOUT predefined labels.

K-Means clustering partitions data into K groups by minimizing the distance between data points and their cluster center (centroid).

Unlike classification, clustering discovers natural groupings in data — the groups are not known in advance.

Common use cases include customer segmentation, document grouping, anomaly detection, and market research.

Clustering evaluation focuses on how well-separated and cohesive the clusters are, not on matching predefined labels.

Last updated: June 2026

Quick Answer: Clustering is an unsupervised learning technique that groups similar data points together without predefined labels. K-Means is the most common clustering algorithm. Unlike classification (which assigns to known categories), clustering discovers new groups in the data.

What Is Clustering?

Clustering is an unsupervised machine learning technique that identifies natural groups (clusters) in data. The model has NO labeled data — it discovers patterns and groupings on its own.

  • Key Characteristics of Clustering
  • No labels required — only features (inputs), no predefined categories
  • Discovers natural groups — the algorithm finds the groupings
  • Number of groups may be unknown — you may need to experiment to find the right number

Similar items are grouped together — items within a cluster are more similar to each other than to items in other clusters

K-Means Clustering

K-Means is the most widely used clustering algorithm and the one most commonly referenced on the AI-900 exam.

  • How K-Means Works
  • Choose K — Decide how many clusters you want (K = number of clusters)
  • Initialize centroids — Place K random points as initial cluster centers
  • Assign points — Assign each data point to the nearest centroid
  • Update centroids — Move each centroid to the center of its assigned points
  • Repeat — Continue assigning and updating until centroids stop moving (convergence)
  • K-Means Example: Customer Segmentation

A retail company has purchase data for 10,000 customers (features: annual spending, purchase frequency, average order value). They run K-Means with K=3 and discover:

  • Cluster Characteristics Label (assigned after clustering)
  • Cluster 1 High spending, frequent purchases, high order value "Premium Customers"
  • Cluster 2 Medium spending, moderate frequency "Regular Customers"
  • Cluster 3 Low spending, infrequent purchases, low order value "Casual Shoppers"

Note: The labels "Premium", "Regular", and "Casual" are NOT part of the algorithm — they are human interpretations applied after clustering.

Clustering vs. Classification

This is one of the most commonly tested distinctions on the AI-900:

  • Aspect Classification Clustering
  • Learning type Supervised Unsupervised
  • Labels Required (known categories) Not used
  • Goal Assign to known categories Discover unknown groups
  • Categories Predefined before training Discovered during training
  • Example "Is this email spam?" "What groups exist in my customer data?"
  • Output Known class label Cluster assignment (group number)

On the Exam: The key differentiator is whether categories are KNOWN in advance. If the question says "categorize into billing, technical, or general" — that is classification (categories are predefined). If the question says "find natural groups in customer data" — that is clustering (groups are discovered).

Common Clustering Use Cases

  • Use Case Data Discovered Clusters
  • Customer segmentation Purchase history, demographics Customer types (e.g., premium, budget, seasonal)
  • Document grouping Text features Topic groups (e.g., sports, politics, technology)
  • Image grouping Image features Visual similarity groups
  • Anomaly detection Any features Normal clusters + outliers
  • Gene expression Gene activity levels Groups of co-regulated genes
  • Market research Survey responses Consumer preference segments
  • Evaluating Clustering Models

Since there are no labels to compare against, clustering evaluation uses different approaches:

  • Method What It Measures
  • Silhouette score How similar items are to their own cluster vs. other clusters (-1 to 1, higher is better)
  • Within-cluster distance How tightly packed items are within each cluster (lower is better)
  • Between-cluster distance How separated clusters are from each other (higher is better)
  • Visual inspection Plot the clusters and assess if groupings make intuitive sense

On the Exam: You do not need to calculate clustering metrics. Know that good clustering produces well-separated, cohesive groups where items within a cluster are similar to each other and different from items in other clusters.