# Logistic Regression

> It gives the chance that something is true. Then it turns that into yes or no.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** Logit Model, Logistic Model

## Think of it like

Think of it like a light that fades from off to on. It is not just on or off.

## Definition

Logistic regression is a method that guesses the chance that something is true, such as the chance an email is spam. It adds up the features with weights, like linear regression does. Then it bends that sum into an S-shaped curve that always stays between 0 and 1. A cut-off, often 0.5, turns the chance into a yes or a no. Despite its name, it is used for classification.

## Example

Lucy's model gives a loan request a 0.82 chance of being paid back. That is above her cut-off of 0.7, so it says approve.

## Why it matters

It is fast, clear and hard to beat on simple yes or no tasks. Banks and hospitals use it because they can explain it.

## Common mistake

Thinking it guesses numbers because of the word regression. It answers yes or no questions.

## Three principles

- **A chance out.** Always between 0 and 1.
- **S-shaped curve.** Bends the weighted sum.
- **A cut-off decides.** Chance becomes yes or no.

## Related terms

- [Linear Regression](https://learn.benibix.com/term/ai/linear-regression)
- [Classification (Machine Learning)](https://learn.benibix.com/term/ai/classification)
- [Regression (Machine Learning)](https://learn.benibix.com/term/ai/regression)
- [Naive Bayes](https://learn.benibix.com/term/ai/naive-bayes)

## Told apart from

- [Linear Regression vs Logistic Regression](https://learn.benibix.com/compare/linear-regression-vs-logistic-regression): The names make people think both guess numbers. Only one does. Linear regression gives a number on a scale, like a rent. Logistic regression gives a chance between 0 and 1 and is used for yes or no questions. So logistic regression is a classifier, despite its name.

## Taught in

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

![Two panels. Linear regression: a straight line through dots, giving a number. Logistic regression: an S-shaped curve from 0 to 1, giving a chance, with a cut at the middle.](https://learn.benibix.com/diagrams/ml-linear-logistic.svg)

---

Source: https://learn.benibix.com/term/ai/logistic-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.
