Skip to content

Decision Tree

Splits the cases into groups that differ as much as possible on an outcome, giving a tree of easy-to-read rules (CHAID, Exhaustive CHAID, CRT or QUEST).

  • To find which combinations of characteristics best predict an outcome (who churns, who responds, which customers spend most), as explicit “if … then” segments.
  • To screen many candidate predictors and their interactions without specifying a model.
  • CHAID gives multiway splits and works well for survey-style categorical data; CRT gives binary splits and handles scale outcomes; QUEST is fast and unbiased in choosing predictors with many categories (categorical outcome only).
  • Enough cases: each split needs at least the minimum node sizes (Growth Limits). Small samples give shallow, unstable trees.
  • Measurement levels matter: nominal predictors are grouped freely, ordinal ones only in order, scale ones are cut at thresholds.
  • Trees overfit easily. Use pruning (CRT/QUEST), a split sample or cross-validation to see how well the tree generalizes.
  • Tree diagram: each box is a node with its size and predicted category or mean. Click a node (or use the arrow keys) to expand or collapse it; the branch labels show the rule that leads there.
  • Tree Table: every node’s class counts or mean, its parent, and the split that created it, with the chi-square / F statistic and adjusted significance (CHAID, QUEST) or improvement (CRT).
  • Gain Summary for Nodes: terminal nodes sorted by response rate for the target category. An Index above 100% means the node has more of the target than the sample as a whole.
  • Risk: the share of cases misclassified (or the mean squared error for a scale outcome). Compare the training, test or cross-validated risk: a much higher test risk means overfitting.
  • Classification: observed against predicted categories and the percent correct.

A CHAID decision tree (maximum depth 3, minimum node sizes 100/50) identified age as the strongest predictor of churn, χ²(2) = 48.6, adjusted p < .001; the tree had 7 terminal nodes and a cross-validated risk of .21 (SE = .02).

Syntax: TREE churn [n] BY age income region [n] /METHOD TYPE=CHAID /VALIDATION TYPE=CROSSVALIDATION(10) /SAVE NODEID PREDVAL.


This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.