Welcome to Cluster Explorer! ๐ K-Means finds hidden groups in data โ without any labels! First, let's create a dataset. Click or drag on the canvas to drop data points. Or pick a preset dataset. Can you create 3 clear groups?
Step 1 โ Create Your Dataset
0 points
Presets:
๐ก Click anywhere to add a point ยท Click & drag to paint multiple
๐ Dataset Info
Total points0
Canvas area480 ร 400
6
๐ต
Wizzy the AI Tutor
Now choose K โ the number of clusters! Look at your data and guess how many groups there are. Then you can click on the canvas to manually place your starting centroids, or let the algorithm pick them randomly!
Step 2 โ Choose K & Place Centroids
๐ก Click to place K centroid(s) โ or use Random Init
๐ฏ Centroid Setup
K (clusters)3
Placed0 / 3
๐ต
Wizzy the AI Tutor
Watch the magic! โจ Click "Step" to see each assignment and centroid-move separately, or "Auto Run" to watch it converge automatically. The โ stars are centroids โ watch them drift toward the centre of their clusters!
Step 3 โ K-Means in Action
0
Iterations
โ
Current Phase
Ready
Status
โ
Inertia (WCSS)
Press Step to begin the first assignment phase, or Auto Run to watch the full algorithm!
๐ Clustering Stats
Iteration0
Total pointsโ
Inertia (WCSS)โ
Centroid shiftโ
Converged?No
3
๐ Inertia over Iterations
๐ต
Wizzy the AI Tutor
But how do you choose the right K? The Elbow Method runs K-Means for K=1 to 8 and plots the inertia. The "elbow" bend is where adding more clusters stops helping much. Can you spot the elbow in your data?
Step 4 โ The Elbow Method
๐ Elbow Analysis
Best K (suggested)โ
Your chosen Kโ
Data pointsโ
What is Inertia?
Inertia = sum of squared distances from each point to its cluster centroid. Lower = tighter clusters. Adding more clusters always reduces inertia, but the rate of decrease slows after the "elbow" โ that's the natural K!
๐ต
Wizzy the AI Tutor
๐ You've just run the same algorithm used in Spotify playlist grouping, customer segmentation, image compression, and medical diagnosis! K-Means is one of the most powerful unsupervised learning tools. You are now a Clustering Scientist! ๐
๐ต
Clustering Scientist Badge!
You ran K-Means clustering and used the Elbow Method. Enter your name for your certificate!
Optional. Stays on this device only โ not sent to WhizzStep.
๐ต WhizzStep AI Lab
Activity completion card for
Student Name
has explored K-Means Clustering & Unsupervised Learning
This records completion of a browser activity only. It is not an accredited certificate or proof of mastery.
K-Means Master
Elbow Expert
Cluster Scientist
Clustered โ points ยท K=โ ยท whizzstep.in
Key Concepts You've Mastered
Unsupervised Learning
๐ No Labels Needed
Unlike classification, clustering finds patterns in data without any predefined categories or labels.
Centroid
โญ The Cluster Centre
A centroid is the mathematical average position of all points in a cluster. It moves each iteration.
Inertia (WCSS)
๐ Cluster Tightness
Within-Cluster Sum of Squares. Measures how spread out points are within each cluster.
Elbow Method
๐ช Choosing K
Plot inertia for K=1..8. The "elbow" bend shows where adding more clusters gives diminishing returns.
Convergence
๐ When It Stops
K-Means converges when centroids stop moving โ the clusters have stabilised into a final answer.
Real World Uses
๐ Where It's Used
Spotify playlists, customer groups, image compression, medical diagnosis, news grouping, and more!
About this lab
AI-11How AI and Machine Learning WorkClasses 8-1015 minApplied
Learning objective: Group unlabelled points into clusters and see how an unsupervised algorithm finds structure without being told the answer.
What this simplifies: A small 2D dataset is used for visual clarity; real clustering works across many more dimensions.
Privacy: No learner input leaves the device.
Teacher prompt: Ask the class why this simulation might mislead someone who takes it too literally.
Reflect: What is one thing this activity showed you that you did not expect?