Regression Tree Construction (SSR Splits)

Context: FIT3003_MOC · Chapter 21’s “classification using regression trees” — the hand build on numerical fact measures · what a regression tree is ➔ Decision Trees and Regression Trees · FIT2086’s likelihood-based growth ➔ Decision Tree Learning (Likelihood Splits, Pruning, CV) Parent Framework: Decision Trees and Regression Trees

Quick Revision

  • 🎯 Objective: at each node try every attribute at every midpoint threshold ➔ keep the (attribute, threshold) with lowest SSR ➔ recurse left, then right ➔ each leaf predicts its partition’s mean target.
  • 📦 Core Components: residual | SSR of the two partitions | thresholds midpoints of adjacent distinct values | termination (cohesive enough, or very few objects).
  • ⚠️ Key Constraint: compare attributes by their minimum SSR; the same attribute may be reused lower down (Glucose splits twice).

📝 How It Works

1. The SSR Criterion

  • Residual ➔ an object’s target minus the average target of its partition; squared so it is always positive.
  • SSR of a split ➔ left partition , right partition :
  • Lowest SSR best split ➔ large target differences inside a partition sub-optimal, not cohesive.
  • Candidate thresholds ➔ midpoints of adjacent distinct sorted values ➔ distinct values give SSRs (Glucose: 16 distinct ➔ 15; Albumin: 13 ➔ 12; the two s add no candidate).

2. The Build Loop

  • 1. Select the root ➔ per attribute, the min SSR over its thresholds ➔ the smallest min wins; branches (left) and (right).
  • 2. Repeat ➔ (a) left sub-tree, (b) right sub-tree — the same search over that partition’s objects, every attribute eligible again.
  • 3. Finalise ➔ stop when a partition is cohesive enough or holds very few objects; leaf mean target of its objects.
  • Predict / test ➔ match a test object down the tree; compare its actual target with the leaf value.
  • Grid partitioning ➔ every split is an axis-parallel line, so the tree tiles measure space into rectangles (root the vertical line Glucose ).

⚙️ Core Implementation

🔹 Final tree — 17 emergency patients

⚖️ Core Decision Matrix

Tree (Chapter 21 framing)ShapeAttribute and target typesAttribute reuse in a sub-treeRoot choice
Regression treebinarynumericalallowedlowest min SSR
Decision tree-ary, one branch per categorycategoricalnot allowedslides 9–10: three different roots give three valid trees for one Walk dataset

When It Flips: numerical measures and a numerical target (the fact-table case) ➔ regression tree; categorical attributes and class labels (Weather, Day ➔ Walk) ➔ decision tree. FIT2086's binary decision trees do not follow this table — it is Chapter 21's contrast.

📊 Exam Execution Trace & Applied Exercises

Manual Execution Trace

Table 1.6 — attributes Glucose, Albumin; target Mortality Prediction.

StepPartitionGlucose min SSR @ Albumin min SSR @ Split
1 Rootall 170.3622 @ 133.5 (E–N)0.7748 @ 3.2 (D–I)Glucose
2a LeftB C E G J K P R0.0983 @ 71.2 (R–K)0.0923 @ 3.4 (B–K)Albumin ➔ leaves ,
2b RightA D F H I L M N Q0.129 @ 189 (H–F)0.1537 @ 2.6Glucose ➔ leaf F M Q
3 Right-leftA D H I L N0.082 @ 150.45 (N–D)0.047 @ 4.0 (A–N)Albumin ➔ leaves ,

Applied Exercise

Problem: verify step 2a’s winning SSR — left partition split at Albumin .

Final Extracted Output: (Glucose’s best) ➔ split on Albumin; the partition means and are the two leaf values.

⚠️ Common Mistakes

  • 💡 Banning the root attribute below ➔ that is the decision-tree rule; a regression tree re-splits Glucose at .
  • 💡 Trusting the slide-56 and slide-65 re-sorted tables ➔ they alter K’s and B’s targets and shuffle Glucose values; only Table 1.6 reproduces every SSR and leaf (verified by recomputation).

🧠 Active Recall