Skip to main content

Command Palette

Search for a command to run...

The Why, Where, and What of Machine Learning

Published
6 min read
The Why, Where, and What of Machine Learning
A

I’m an aspiring web developer keen on learning new things. I’m dedicated to keeping up to date with the latest stuffs in web development. I always lookout for chances to grow and learn. When I’m not coding, I enjoy reading about India’s fascinating history. It helps satisfy my curiosity and teaches me about the diverse India.

🔹 Introduction — The World is Learning

Imagine you wake up and unlock your phone — it recognizes your face.
You open Spotify — it recommends your next favorite song.
You check your email — spam messages have quietly vanished.
Behind each of these moments lies a field that’s reshaping our world: Machine Learning (ML).

But what exactly is machine learning?
Why is it becoming such a powerful tool in the 21st century?
And how does it differ from the traditional way of programming computers?

This first blog in my “Machine Learning from Scratch” series aims to answer these foundational questions — the Why, Where, and What of ML — before we dive into the math and algorithms in upcoming posts.


🔹 Why Machine Learning?

Let’s start with the why.

We live in a world overflowing with data — text, images, videos, transactions, GPS coordinates, medical scans, and even neural signals. Traditional programming fails when the data is too large, too unstructured, or too dynamic.
That’s where machine learning comes in.

Machine learning is all about building systems that learn patterns from data and improve with experience — without being explicitly programmed.

🌐 Part of a Larger Digital Revolution

According to Forbes, the top global trends of digital transformation — including 5G, blockchain, automation, and robotics — are all deeply intertwined with AI and machine learning.
From autonomous vehicles and smart cities to AI-driven healthcare, ML has become the central nervous system powering innovation.

Let’s take a quick reality check.

  • When YouTube recommends the perfect video next — ML.

  • When hospitals predict patient risks from scans — ML.

  • When banks detect fraud before you even notice — ML.

It’s not just about automation — it’s about intelligence at scale.


🔹 Where is Machine Learning Used?

Machine learning isn’t limited to one field — it’s everywhere data exists.
Here are some domains where ML has become foundational:

🖼️ Computer Vision

From self-driving cars to facial recognition, ML helps machines interpret and understand visual information.
Applications include:

  • Detecting diseases from X-rays

  • Counting vehicles in traffic feeds

  • Identifying defects in manufacturing

🗣️ Speech and Audio

Your phone’s assistant understanding your voice isn’t magic — it’s speech recognition powered by ML.
Applications:

  • Speech-to-text transcription

  • Music genre identification

  • Emotion recognition in voice calls

🧾 Natural Language Processing (Text)

When Gmail predicts what you’ll type next or Google Translate understands complex sentences — it’s ML understanding language patterns.
Applications:

  • Spam filtering

  • Sentiment analysis

  • Chatbots and question answering

🧠 Neuroscience and the Brain

ML models are even decoding brain signals, helping create Brain-Computer Interfaces (BCIs) that allow paralyzed patients to move robotic arms just by thinking.

In essence, machine learning is not about one technology — it’s about the ability to learn that’s being embedded everywhere.


🔹 What Is Machine Learning?

At its core, machine learning is a method of teaching computers to make decisions from data.

Traditionally, we wrote explicit instructions for everything:

“If the salary is above X and experience > Y, then approve the loan.”

But in ML, we give the system examples (data) and let it learn the rules itself.
It’s the difference between procedural programming and data-driven learning.

ApproachExampleLimitation
Procedural ProgrammingCalculating tax using fixed formulasWorks only if rules are known
Machine LearningPredicting rainfall using past weather dataLearns patterns even if rules are unknown

It might look like “magic,” but beneath it lies mathematics — statistics, linear algebra, and optimization.


🔹 Core Paradigms of Machine Learning

Machine learning isn’t one single method. It’s a collection of learning paradigms, each suited for different problems.

1️⃣ Supervised Learning

We teach the model with labeled data — examples where both inputs and correct outputs are known.

  • Classification: Predicting categories
    e.g., spam vs. non-spam, disease detection

  • Regression: Predicting continuous values
    e.g., predicting temperature or stock prices

  • Ranking/Structure Learning: Ordering or structured outputs
    e.g., ranking webpages by relevance

2️⃣ Unsupervised Learning

Here, the data has no labels — the algorithm must find structure on its own.

  • Clustering: Grouping similar items
    e.g., grouping photos of the same person automatically

  • Representation Learning: Compressing data into useful features
    e.g., image embeddings used in facial recognition

3️⃣ Sequential / Reinforcement Learning

Learning through experience and feedback — the model interacts with an environment and improves over time.

  • Online Learning: Model updates as new data arrives
    e.g., stock prediction, recommendation systems

  • Reinforcement Learning: Agents learn by rewards/punishments
    e.g., training robots or playing games like AlphaGo


🔹 A Simple Example

Let’s say we want to predict a person’s weight given their height.

We collect data:

Height (cm)Weight (kg)
15030
16045
17065
18080

We plot the points and notice a pattern — taller people tend to weigh more.
Our goal: find the best mathematical relationship (a line or curve) that fits this data.
That’s the essence of supervised regression — learning a mapping from inputs (height) to outputs (weight).


🔹 The Three Pillars of ML Foundations

  1. Structure (Linear Algebra):
    Data is represented in matrices and vectors — the language of structure.
    Every dataset, image, or feature set is essentially a collection of numbers arranged meaningfully.

  2. Uncertainty (Probability & Statistics):
    ML doesn’t deal in certainties — it deals in likelihoods.
    A classifier might say “There’s a 92% chance this email is spam.”

  3. Decision (Optimization):
    Once a model is trained, optimization helps it make the best possible decision with minimal error.
    This involves techniques like gradient descent — the engine behind how neural networks learn.

Together, these three form the mathematical skeleton of ML.


🔹 Learning Prerequisites

Before diving deep into algorithms, it helps to be comfortable with:

  • Linear Algebra: Vectors, matrices, eigenvalues

  • Probability & Statistics: Distributions, expectation, Bayes’ theorem

  • Calculus: Differentiation for optimization

  • Programming (Python preferred): NumPy, pandas, scikit-learn

Don’t worry if these sound heavy — the idea is to build intuition first, then the math will start making sense.


🔹 Goals of Learning ML

By the end of this journey, you should be able to:

  • Understand the major paradigms of ML and when to apply them

  • Translate a real-world problem into an ML formulation

  • Know the trade-offs between algorithms

  • Implement ML models from scratch and visualize their results

  • Appreciate the beauty of the math behind the code

“The goal is not to use ML as a black box, but to understand why it works.”


🔹 The Road Ahead

Here’s a tentative roadmap for upcoming blogs:

  1. Unsupervised Learning — Clustering and Representation

  2. Supervised Learning — From Linear Regression to Trees

  3. Advanced Topics — Ensemble Learning and Deep Networks

  4. Theory Meets Practice — Evaluation, Bias, and Model Tuning

Each post will build upon this foundation, walking step-by-step from intuition → math → code.


🔹 Final Thoughts

Machine learning is not just a career skill — it’s a way of seeing the world differently.
When you start viewing problems through the lens of data, patterns emerge everywhere: in how people move, speak, and even make decisions.

We’ll explore these patterns together in the coming posts — breaking down complex math into intuition and relatable examples.

So, if you’ve ever wondered how machines learn, stay tuned for Blog 2: “Learning from Data — Inside Supervised Learning.”