learn/model families
Decision tree
A decision tree is a model that sorts cases by asking a chain of simple yes or no questions about their measurements, until each case reaches an answer you can read off.
What it is
A decision tree is built from data arranged as a table: one row per case, one column per measurement, plus the answer you want to predict. The fitting method looks at every column and every possible cut-off point, and picks the single split that best separates the rows into groups whose answers are more alike. It then repeats the process on each group, and again on the groups those make, building a branching structure. Branching stops when a group is small enough, pure enough, or at a depth the researcher sets in advance. The end points, called leaves, each carry a prediction: a class label, or an average value.
Reading a fitted tree means following one path from the top down. Each step is a plain statement about one measurement, such as whether a load is above or below some value, and the path ends in the predicted answer. Nothing else is involved: no weights to combine, no arithmetic hidden in the middle. Trees cope with mixed data without much fuss. They take numbers and categories side by side, they do not need measurements rescaled to a common range, and they pick up the fact that one variable matters only when another is in a certain state, because that is simply a split beneath a split.
Why scientists use it
Scientists usually reach for a single tree when they want to see the rule, not only the prediction. A fitted tree can be written out as a short list of conditions and compared against what is already known about the system. If the tree splits first on the variable an experimenter expected to dominate, that is reassuring; if it splits on something else, that is a question worth following up. Many stronger methods give a number with no account of how it was reached, so a tree is often used as the readable counterpart, sometimes reported next to an ensemble of many trees that scores better but cannot be read in the same way.
The depth of the tree is the dial that sets this trade-off. A shallow tree is a handful of rules a reader can hold in mind, and is often fitted on purpose for that reason, even at some cost in accuracy. A deep tree follows the training data more closely but soon becomes too large to inspect, which defeats the point of choosing a tree at all.
In the record
Limits
A tree's readability can be mistaken for an explanation. The splits show what divides this particular dataset, not what causes the outcome, and where two measurements move together the tree picks one and ignores the other, which can make an important variable look irrelevant. Small changes in the data can produce a visibly different tree with similar accuracy, so the exact cut-off values should not be read as fixed thresholds. Single trees also predict in steps rather than smoothly, and they cannot extrapolate beyond the range of values they were fitted on.
Written by AIxSci: the background from general knowledge, the examples from checked records.
By field
Every article
aix-00272
Tree-based models predict sliding wear of carburised and plain engineering steels
aix-00173
Machine learning predicts nanofibre thickness from electrospinning settings, tested against new scaffolds
aix-00133
Regression models predict how graphene loading changes aluminium's electron emission
aix-00066
Machine learning sifts 25,000 known materials for quantum-technology host candidates
aix-00025