# Decision Tree

> A model that asks yes or no questions. Each answer leads to the next one, until it is done.

**Field:** Artificial Intelligence  
**Category:** Machine Learning  
**Also known as:** Classification Tree, Regression Tree

## Think of it like

Think of it like a game of twenty questions. Each answer sends you down one path.

## Definition

A decision tree is a model that reaches an answer by asking a chain of yes or no questions. Each question splits the data into two smaller groups. Training picks the questions that split the data most cleanly. At the end of each path is an answer, like a group or a number. You can read the whole tree and see exactly why it decided.

## Example

Jack's tree for getting to work asks: Is it raining? If yes, take the bus. If no, is it colder than 5 degrees? If yes, bus. If no, bike.

## Why it matters

It is one of the easiest models to explain. It is also the building block for random forests and gradient boosting.

## Common mistake

Letting the tree grow too deep. It then learns every quirk of the training data and does worse on new data.

## Three principles

- **Yes or no questions.** One split at a time.
- **Clean splits.** Training picks the best questions.
- **Easy to read.** You can follow every path.

## Related terms

- [Random Forest](https://learn.benibix.com/term/ai/random-forest)
- [Gradient Boosting](https://learn.benibix.com/term/ai/gradient-boosting)
- [Classification (Machine Learning)](https://learn.benibix.com/term/ai/classification)
- [Regression (Machine Learning)](https://learn.benibix.com/term/ai/regression)

## Taught in

- [Decision Trees and Forests](https://learn.benibix.com/learn/ai-machine-learning/decision-trees-and-forests): Machine Learning, 10/18

![A tree of yes or no questions. The top asks if it is raining. Each answer leads to another question, and the ends of the branches say take the bus or ride the bike.](https://learn.benibix.com/diagrams/ml-decision-tree.svg)

---

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