What Is a Decision Tree?

1 min

A decision tree guesses the answer by asking a series of yes/no questions, like a game of 20 Questions that leads to an answer.

Imagine it like this: "Is it raining?" → Yes → "Do you have an umbrella?" → No → "Stay inside!" Each question leads to more questions until a final decision.

Examples:

  • Deciding whether a bank loan should be approved
  • Deciding whether a patient might have a certain illness
  • Sorting animals: "Has fur?" → "Barks?" → "It's a dog!"

So? Decision trees are easy to read — you can literally follow the branches and see exactly why the computer made its choice.