Data Science

Regression vs Classification

SQL Mastery Team
June 12, 2026
5 min read

It's **Day 142**. Before we code, we need to choose our weapon.

1. Regression (Predicting a Number)

If the answer is a continuous value, it's Regression.

  • How much will this house sell for?
  • What will the stock price be tomorrow?
  • How many units will we sell next month?
  • 2. Classification (Predicting a Category)

    If the answer is a discrete label, it's Classification.

  • Is this email Spam or Not?
  • Will this customer churn? (Yes/No)
  • Is this transaction fraudulent?
  • Features and Targets

  • **Target (y)**: The thing you want to predict.
  • **Features (X)**: The information you use to make the prediction (e.g., Size of house, Number of bedrooms).
  • Your Task for Today

    Look at your company's data. Identify one "Regression" problem and one "Classification" problem you could solve.

    *Day 143: Your First Model: Linear Regression.*

    Ready to put your knowledge into practice?

    Join SQL Mastery and learn through interactive exercises.