Skip to content
ToolUlkaa Tool
All tools

Machine Learning

TensorFlow PlaygroundConfusion Matrix CalculatorROC Curve and AUC CalculatorK-Means Clustering VisualizerGradient Descent VisualizerDecision Tree BuilderClassifier PlaygroundPCA VisualizerActivation Function Plotter

Categories

AcademicTextMathematicsStatisticsMachine LearningAIData ScienceFile
All tools
Machine Learning

K-Means on Concentric Circles

Cluster a ring around a core and see why straight boundaries cannot separate them.

Try:
1 to 10
Initialisation
Two numbers per line, up to 3,000 points. Extra columns are ignored.

Inertia (sum of squared distances to centroids)

n/a

Next step: assign every point to its nearest centroid.

Points
120
Assign steps
0
running
Silhouette
n/a
needs 2+ clusters

Clusters

  • Cluster 1
  • Cluster 2

Tap or click the plot to add a point. Diamonds are the centroids. Datasets: Circles.

Elbow plot: inertia against k

Inertia always falls as k grows. Look for the bend where extra clusters stop helping much. The sharpest bend here is at k = 2. Each point is the best of 4 runs from different starts.

  1. Tools
  2. Machine Learning
  3. K-Means Clustering Visualizer
  4. K-Means on Concentric Circles

About K-Means on Concentric Circles

This page runs k-means with two clusters on concentric circles: a small circle inside a large ring, where one group surrounds the other. It is free, needs no sign-up and runs in your browser, so nothing you enter is uploaded.

Both groups have the same centre, so any two centroids k-means finds will sit inside the data and the boundary between them is a straight line. It slices the picture in half rather than separating inner from outer.

A common fix is to change the features. Converting to polar coordinates, or adding the distance from the centre as a new column, turns this into an easy problem. Kernel and spectral methods do something similar automatically.

How to use K-Means on Concentric Circles

  1. 1Pick a sample dataset, tap the plot to add points of your own, or paste x,y lines in the CSV box and press "Use these points".
  2. 2Set the number of clusters k, and choose k-means++ or random initialisation.
  3. 3Press Step. The first press assigns each point to its nearest centroid; the next moves each centroid to the mean of its points.
  4. 4Keep stepping, or press "Run to convergence", until the assignment stops changing.
  5. 5Read the inertia and the silhouette score, and look at the elbow plot to judge whether k is a good choice.
  6. 6Press "New start" to try a different random starting position, and see whether the clusters change.

Features

  • Step-through mode that separates the assign step from the update step.
  • Run to convergence with a clear converged message.
  • k-means++ and random initialisation, with a repeatable seed and a New start button.
  • Tap or click to add points, five sample datasets and CSV input for up to 3,000 points.
  • Inertia, step count and mean silhouette score, updated as you go.
  • An elbow plot of inertia for k from 1 to 10, with a marker at your k and the sharpest bend named.
  • Touch-friendly canvas that scales to your screen and keeps vertical page scrolling working.

Worked examples

  • Concentric circles, 60 points each, k = 2 → gives inertia 63061, silhouette 0.332

    Low silhouette: the two clusters overlap heavily in space.

Privacy: how it works

  • The points and the clustering stay in your browser tab. Nothing is sent to Ulkaa or anyone else.

Tips

  • Scale your features first when they have very different units. K-means uses raw distance, so a column with a large range dominates.
  • If the elbow is not clear, check the silhouette score for several values of k.
  • An empty cluster keeps its previous centroid in this tool, so a bad start can leave a cluster unused. Use New start or k-means++.
  • Adding a few outliers can drag a centroid away, because the mean is not robust. Tap far from the others to try it.

Frequently asked questions

Is it really free?

Yes. There is no price, no trial and no credit card. Ulkaa Tool does the work with your own device, so there is no server bill to pass on to you.

Do I need an account?

No. There is no sign-up and no login. Open the page and use it. An Ulkaa account is not needed for anything on this tool.

Does it run in my browser?

Yes. Your points are processed by code running in your browser tab, on your own device.

Is my data uploaded?

No. Your points are never sent to Ulkaa or to anyone else. You can check this yourself by watching the Network tab in your browser developer tools while you use the tool.

Can k-means cluster concentric circles?

Not in the original coordinates. Its decision boundary is linear, so it cannot enclose one group inside another.

How can I make k-means work on circles?

Transform the features, for example add the distance from the centre, then cluster. Or use spectral clustering.

More K-Means Clustering Visualizer pages

  • K-Means Clustering VisualizerWatch k-means assign points and move centroids, one step at a time, on your own data.
  • Elbow Method CalculatorPlot inertia for k from 1 to 10 and spot the bend where more clusters stop helping.
  • Silhouette Score CalculatorCluster your points and read the mean silhouette score.
  • K-Means++ VisualizerWatch k-means++ pick starting centroids, then step to convergence.
  • K-Means With Random InitialisationStart k-means from random data points and see how the outcome depends on the start.
  • K-Means on the Two Moons DatasetCluster two interlocking half circles and see where k-means cuts them.
  • K-Means Clustering From CSVPaste x,y data, choose k and cluster it in your browser.

Ulkaa Apps

  • Ulkaa
  • Calendar
  • Task
  • Note
  • Disk
  • Call
  • Contact
  • Mail
  • Finance
  • Health
  • Office
  • Work
  • Workspace
  • Halum
  • Jaal
  • Islam
  • Game
  • Weather
  • Campus
  • News
  • Developer
  • Help
  • Account
About·Privacy·Terms·© 2026 Ulkaa

What is Ulkaa Tool?

Ulkaa Tool is a free collection of fast, privacy-friendly online tools from Ulkaa Network. Calculate your GPA and CGPA, edit rich text, count words and characters, replace text and more — all in your browser.

Every tool runs entirely in your browser — no sign-up, and your data never leaves your device.

Academic

  • GPA Calculator
  • CGPA Calculator
  • Citation Generator
  • Quiz Maker

Text

  • Rich Text Editor
  • Word Counter
  • Character Counter
  • Text Replacement

Ulkaa

  • Ulkaa
  • Ulkaa News
  • Ulkaa Campus
  • Ulkaa Tool
  • Ulkaa Game
  • Ulkaa Weather
  • Ulkaa Islam

Company

  • About Ulkaa
  • Careers
  • Support
  • Help
  • Privacy Policy
  • Terms of Service
  • Disclaimer
  • Sitemap

© 2015-26, Ulkaa. All rights reserved.
Facebook PageLinkedIn CompanyX (Twitter) ProfileInstagram ProfileGitHub Account