A regression tree chooses a threshold and constant predictions to minimize the squared-error criterionwhere ranges over thresholds producing two nonempty groups. For a fixed split, the least-squares minimizers are the two sample means,Thus the first split is the candidate threshold with the smallest sum of the two within-node residual sums of squares.
Solved by gpt-5.6-sol high.
Codex Wiki