---
title: "Discussion on \"k-means from scratch, and why it sometimes lies\" | Hashnode"
description: "Discussion on \"k-means from scratch, and why it sometimes lies\". k-means is usually the first clustering algorithm anyone learns: hand it data and a number k, and it splits the data into k groups. It's two simple steps repeated until they settle, and you can write"
url: "https://hashnode.com/posts/k-means-from-scratch-and-why-it-sometimes-lies/6a43cbe6f63b17a1140677b6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [k-means from scratch, and why it sometimes lies](https://iwtlp.hashnode.dev/k-means-from-scratch-and-why-it-sometimes-lies?utm_source=hashnode&utm_medium=feed)

k-means is usually the first clustering algorithm anyone learns: hand it data and a number k, and it splits the data into k groups. It's two simple steps repeated until they settle, and you can write

Jun 30 · 4 min read · iwtlp.hashnode.dev  
Updated Jul 3  
Read the article

-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#clustering](https://hashnode.com/tag/clustering)
-   [#r](https://hashnode.com/tag/r)
-   [#k-means](https://hashnode.com/tag/k-means)

## Written by

[Prasanth Madhurapantula](https://hashnode.com/@catalysed)

@catalysed · Hyderabad, India

  
[View profile](https://hashnode.com/@catalysed)

Coder, Author and Popcorn Eater

I am not a career software engineer who decided to make a coding site. I am an aerospace-propulsion postgraduate and a cybersecurity practitioner who taught myself to code in order to build across every field I fell in love with, from gas-turbine cycle analysis to malware forensics. The reason any of that was possible is that, at some point, I stopped memorizing syntax and started actually understanding computing, and it became the most useful and the most fun tool I had.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
