← Back to list

That’s how Machine Learning (ML) works

Through Emma’s Daily Coffee Choices.

Tanzila Tanjim in ILLUMINATION · 2025-10-23 11:26 · 121 claps · 4.2 min read
#ai #machine-learning #predictive-analytics #ai-agent #illumination
Open on Medium ↗
Wiki topics: AGT · AI Agents ML · Machine Learning AI · AI · General GEN · Genomics & Sequencing EDU · Education & Learning GRW · Growth & Analytics AIM · AI in Marketing 🍳 · Food & Cooking 🥊 · Combat Sports

That’s how Machine Learning (ML) works

Through Emma’s Daily Coffee Choices.

Image by Author

Image by Author

Look back for some seconds, how did you learn to speak, write, or even read this post right now? You didn’t memorize a rulebook since your childhood, right? You learned by seeing, listening, trying, and correcting yourself along the way.

That’s how all humans learn from past experiences.

Now, just imagine if machines could do that too. If they could look at past data, learn patterns, and make smart decisions on their own and without being told exactly what to do every single time.

Yep, a machine can do that too and that’s what we call Machine Learning (ML). It’s not just about “teaching machines,” it’s about giving them the ability to understand, adapt, and improve but faster than the human brain can.

Now, let’s break it down through Emma’s coffee choice

Emma loves her coffee. Every morning, she carefully decides what to drink depending on a few simple things like how the weather feels, what mood she’s in, and what she has on her to-do list to estimate how much energy she needs for the day. Over time, you start to notice a clear pattern in her choices. When the weather turns cold, she warms herself with a comforting hot cappuccino. On hot, sunny days, she cools down with a refreshing iced latte. And when a busy workday looms ahead, she doesn’t hesitate to add an extra shot of espresso for that much-needed boost.

She’s almost consistent. And these are the Data!

Predicting Emma’s Next Order

Let’s say it’s a warm, sunny Monday morning and Emma has a big presentation ahead. Given what we know, what would she order? Probably an iced latte with an extra shot, right?

You just made a prediction by using past information (data) to guess future behavior.

Now imagine doing this not for one person, but for millions and doing it instantly. That’s exactly what machine learning does.

How Machines Learn Like Humans

Image by Author

Image by Author

Let’s pretend we feed a computer all of Emma’s past coffee choices and also the day’s temperature and her energy level.

The computer starts to notice patterns:

  • Hot days = cold drinks
  • Cold days = hot drinks
  • Low energy = extra caffeine

Now, the next time we tell the computer, “It’s hot, and Emma’s tired,” It predicts: “She’ll probably order an iced coffee with an extra shot.”

That’s what machine learning in action. It learning from data to make predictions.

When Decisions Get Tricky

But what if the data isn’t clear?

Let’s say the weather is mild, Emma’s energy is normal, and it’s a Friday. Would she want hot coffee or cold coffee? Hmm… tough call.

So, what does the machine do? It looks for similar situations in the data. Kind of like asking, “Hey, what did Emma usually choose on days like this?”

If most of those similar days were iced coffee days, it’ll predict “iced coffee.” If not, maybe a hot cappuccino.

That’s one of the simplest ML algorithms called K-Nearest Neighbors (KNN), where the machine checks the “closest” data points to make a decision.

That is why The More Data, the Smarter the Machine

Just like Emma’s coffee preferences get clearer the more you observe her, machines improve with more data.

More examples = better accuracy = smarter predictions.

Three Main Ways Machines Learn

Machine learning isn’t one-size-fits-all. There are three main types of learning and each is suited for different problems.

1. Supervised Learning

This is like learning with a teacher. Imagine you have a pile of coins — rupees, euros, and dirhams. Each has a different weight, and you already know which is which.

You feed this labeled data to the model:

  • 3g → Rupee
  • 7g → Euro
  • 4g → Dirham

Now, when you give it a new coin, it predicts the currency based on weight. That’s supervised learning. Supervised Learning learn from labeled examples.

2. Unsupervised Learning

Now imagine you have data about cricket players with their runs and wickets. But no labels saying who’s a batsman or bowler.

The machine studies the data, spots patterns, and groups players naturally into two clusters:

  • High runs, few wickets → Batsmen
  • Low runs, many wickets → Bowlers

It learned this on its own, without any labels. That’s unsupervised learning, finding hidden patterns in unlabeled data.

3. Reinforcement Learning

Reinforcement learning is all about trial, error, and feedback. It’s just like how you learned to ride a bike.

You try, wobble, fall, adjust, and eventually balance.

Machines do the same thing. For example, show an AI an image of a dog and ask, “Is this a dog?” If it says “cat,” we give it negative feedback. It adjusts its model. Next time, it gets it right.

Reinforcement learning learn by doing and improving from feedback.

The Machine Learning Process (In Simple Terms)

Here’s what’s really happening under the hood:

Image by Author

Image by Author

  1. Input Data → Give the machine past information
  2. Model/Algorithm → It looks for patterns and makes predictions
  3. Feedback → If it’s wrong, it learns and tries again
  4. Repeat → Until it gets really good at predicting

That’s it. Machines “learn” exactly the way you did through repetition and correction.

Can you tell which type of ML applies to each of these examples?

  1. Facebook recognizes your friends in photos.
  2. Netflix recommends new shows you might like.
  3. A bank flags suspicious transactions automatically

Think it through, then drop your answers in the comments!

So the next time your phone unlocks with your face or Spotify recommends a perfect playlist, remember that’s not magic. It’s machine learning quietly working behind the scenes.

Keep learning, keep exploring because machines surely are. ☕💡…

👏, comment and follow with email notification on for learning and exploring more about AI,Ml and Data science


메타데이터
post_id
8052e781ea71
slug
thats-how-machine-learning-ml-works-8052e781ea71
url
https://medium.com/illumination/thats-how-machine-learning-ml-works-8052e781ea71
canonical_url
https://medium.com/illumination/thats-how-machine-learning-ml-works-8052e781ea71
author_url
https://medium.com/@tanjima
status
ok
fetched_at
2026-06-16 19:09:56