Back to Discover
Curiosity

Where Does a Cluster End?

A cluster's edge is the set of points whose nearest centroid switches, and the centroid itself is the mean of its assigned points.

Before you enter

A complete interactive classroom, not just a preview.

Start when you are ready to enter this Stage's 7 scenes and explore, respond, and learn as you go.

7
Scenes
14 min
Estimated
Content language: en-US
Start this Stage
Sign-in may be required to play
What happens inside
  1. 01Where Does a Cluster End?slide
    Question

    Pose the driving question with a scatter plot that has already been colored into three clusters. The coloring looks obvious, but the boundary lines are missing — the learner is invited to ask where those lines should go.

    • Show a 2D scatter plot pre-colored into three clusters
    • Hide the cluster boundaries and ask the learner to predict them
    • State the driving question explicitly
  2. 02Commit to Your First Guessquiz
    Prediction

    Before any animation or rule is shown, the learner commits to one rule they think k-means uses to draw a cluster edge.

    • One independent choice
    • Forces a commitment before the rule is revealed
  3. 03Watch the Boundaries Redrawinteractive
    Evidence

    An interactive simulation of k-means on a small 2D point set. The learner steps through iterations and watches points reassign to the nearest centroid and centroids migrate to their new mean, with Voronoi-style boundary lines drawn between clusters.

    • Click 'Next iteration' to advance k-means step by step
    • Observe points changing cluster color when a centroid moves closer
    • See Voronoi-style boundary lines snap into place after each step
    • Stop when nothing changes
  4. 04The Rule Behind the Boundaryslide
    Explanation

    Explain the two-step loop of k-means: assign each point to the nearest centroid, then move each centroid to the mean of its assigned points. Show that the boundary between two clusters is the perpendicular bisector of the line between their two centroids.

    • Step 1: assign by shortest straight-line distance to a centroid
    • Step 2: centroid becomes the mean of its assigned points
    • Boundary = set of points equidistant from two centroids
    • Two centroids → a straight perpendicular bisector; three+ → a Voronoi diagram
    • Loop ends when assignments no longer change
  5. 05When the Rule Failsslide
    Boundary

    Show a case where nearest-centroid reasoning still produces a clean-looking but wrong clustering — two ring-shaped groups force a straight-line boundary that cuts straight through one ring.

    • K-means always produces straight-line (Voronoi) boundaries
    • Non-spherical shapes can be sliced incorrectly
    • Boundary choice is correct for the rule, wrong for the data shape
  6. 06Move a Centroid, Move the Boundaryinteractive
    Transfer

    A transfer test: the learner drags one centroid on a fixed point cloud and watches the Voronoi boundary lines and point assignments update instantly. They must predict whether moving a centroid can ever change a faraway point's assignment.

    • Drag any centroid to a new location
    • Watch the boundary lines and point colors update live
    • Predict which points will switch cluster when you release
  7. 07Answering the Driving Questionslide
    Resolution

    Directly answer: a cluster ends exactly where another cluster's centroid becomes closer. The boundary is the perpendicular bisector (or, with three or more clusters, a Voronoi edge), and it keeps redrawing until assignments stabilize.

    • Cluster edge = switching point between two nearest centroids
    • Two centroids → perpendicular bisector
    • Three or more → Voronoi cells
    • Final boundary = the converged Voronoi diagram
Discussion

Discussion threads for a Stage aren't available yet.

Where this leads
Explore more

More in Technology & Computing

See all