# Predicting is someone adolescent based on weight and height with K-Nearest Neighbor

**URL:** <https://cl.desmos.com/t/predicting-is-someone-adolescent-based-on-weight-and-height-with-k-nearest-neighbor/4517>\
**Category:** Examples\
**Created:** [October 25, 2022, 2:05am UTC](https://cl.desmos.com/t/predicting-is-someone-adolescent-based-on-weight-and-height-with-k-nearest-neighbor/4517 "2022-10-25T02:05:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wawan.ikhwan](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/wawan.ikhwan/32/3894_2.png) [@wawan.ikhwan](https://cl.desmos.com/u/wawan.ikhwan)\
**Post date:** [October 25, 2022, 2:05am UTC](https://cl.desmos.com/t/predicting-is-someone-adolescent-based-on-weight-and-height-with-k-nearest-neighbor/4517/1 "2022-10-25T02:05:02Z")

</div>

Hello guys I’m making K-Nearest Neighbor Algorithm on Desmos Calculator.

- Horizontal axis represent weight and vertical axis represent height.
- There are only two labels those are red color means adult, blue color means not adult.
- To predict outcome, you can move the K point (green point) to input the weight and height. You can manually set it or just drag the point interactively.
- You can set how many neighbors depends on your need.

Let’s check it out: [https://www.desmos.com/calculator/vwcy7ro0j7](https://www.desmos.com/calculator/vwcy7ro0j7)

---

<div class="post-metadata">

**Author:** ![Matthew\_Daniels](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/matthew_daniels/32/4248_2.png) [@Matthew\_Daniels](https://cl.desmos.com/u/Matthew_Daniels)\
**Post date:** [April 15, 2023, 6:09am UTC](https://cl.desmos.com/t/predicting-is-someone-adolescent-based-on-weight-and-height-with-k-nearest-neighbor/4517/2 "2023-04-15T06:09:41Z")

</div>

Thanks for sharing, loved the idea, organisation of thoughts, use of algebra and geometry and programming ideas without being too over the top.  
544 people in the dataset? Who were they.
