# Regression (Machine Learning)

> Guessing a number from the facts you have. The number might be a price or a time.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** Regression Task, Regressor

## Think of it like

Think of it like guessing how tall a pup will grow. You look at the size of its paws.

## Definition

Regression is the machine learning task of guessing a number. The number can be any value on a scale, like a price, a temperature or a time. The model learns from examples where the real number is known. For a new example, it gives its best guess of the number. The name is old and has nothing to do with going backwards.

## Example

Emma's model reads a flat's size, floor and street, then guesses its monthly rent. For one flat it says 1,450 euros.

## Why it matters

Many business questions are how much or how many. Sales, prices, wait times and demand are all regression.

## Common mistake

Using it when there are only a few fixed answers. If the answer is small, medium or large, you want classification.

## Three principles

- **A number out.** Any value on a scale.
- **Learns from known numbers.** Past examples with real values.
- **Best guess.** Close, not exact.

## Related terms

- [Classification (Machine Learning)](https://learn.benibix.com/term/ai/classification)
- [Linear Regression](https://learn.benibix.com/term/ai/linear-regression)
- [Supervised Learning](https://learn.benibix.com/term/ai/supervised-learning)
- [Prediction (AI)](https://learn.benibix.com/term/ai/prediction)
- [Mean Absolute Error (MAE)](https://learn.benibix.com/term/ai/mean-absolute-error)
- [Root Mean Squared Error (RMSE)](https://learn.benibix.com/term/ai/root-mean-squared-error)
- [R-Squared](https://learn.benibix.com/term/ai/r-squared)

## Told apart from

- [Classification vs Regression](https://learn.benibix.com/compare/classification-vs-regression): People often think regression means going backwards, or that it does the same job as classification. Both predict, but the answers differ. Classification picks one of a few named groups, like spam or not spam. Regression gives a number on a scale, like a price. Ask what shape the answer has, and you know which one you need.

## Taught in

- [Classification vs Regression](https://learn.benibix.com/learn/ai-machine-learning/classification-vs-regression): Machine Learning, 8/18

![Two panels. Classification: dots of two kinds split by a line, with the answer cat or dog. Regression: dots rising from left to right with a trend line, with the answer a price.](https://learn.benibix.com/diagrams/ml-classification-regression.svg)

---

Source: https://learn.benibix.com/term/ai/regression
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
