Decision tree

A decision tree is a branching structure where each node tests one variable, each branch represents an answer, and each leaf holds an outcome reached by following one path from the root. People can write one by hand, or a machine-learning method can learn one from data, as in CART or CHAID. The same policy can also be written as a decision table.

Example

For illustration, a lender's written tree first asks whether an applicant has a bureau file. If yes, it checks whether the score is at least 700. If no, it checks whether monthly income is at least $3,000, then follows that path to the lender's stated next action.

The article on choosing between decision trees and decision tables explains when conditions depend on earlier answers and when they can be checked side by side.