Tool for HR, Hiring Managers, and the Leadership Team

What is supervised learning?

Supervised learning is one of the most fundamental concepts in Machine Learning Machine Learning and is frequently asked in interviews.

Simple Definition (Interview Answer)

Supervised learning is a type of machine learning where the model is trained using labeled data, meaning each input has a corresponding correct output.

The model learns a mapping function from inputs → outputs and then uses that knowledge to predict results for new, unseen data.

How it works

  1. You provide training data (inputs + correct answers)

  2. The model learns patterns between them

  3. It gets evaluated using test data

  4. It makes predictions on new data

Example

  • Email classification:

    • Input: Email text

    • Output: Spam / Not Spam

    • Model learns from thousands of labeled emails

  • House price prediction:

    • Input: Size, location, rooms

    • Output: Price

Types of Supervised Learning

  1. Classification

    • Output is a category

    • Example: Spam detection, disease prediction

  2. Regression

    • Output is a continuous value

    • Example: Stock price prediction, salary prediction

Common Algorithms

  • Linear Regression

  • Logistic Regression

  • Decision Trees

  • Random Forest

  • Support Vector Machines (SVM)

  • Neural Networks

Interview Key Points (Must Say)

  • Uses labeled data

  • Learns mapping from input to output

  • Two main types: classification & regression

  • Goal: minimize prediction error using training data

One-line summary for interviews

Supervised learning is a machine learning approach where a model is trained on labeled data to predict outputs for new inputs.