Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-2/31k/a/solution

Start with the root region . For any current terminal region , coordinate , and threshold , form
discarding splits that leave an empty child. For each child use its training-response mean
Compare candidate splits by the resulting residual sum of squares
together with the unchanged residual sums in the other leaves. Choose the leaf, coordinate, and threshold minimizing the total. Replace that leaf by its two children and repeat until the stopping rule or the prescribed leaves is reached. The resulting terminal regions are , and
This is the standard regression tree construction.

New to topics? Read the docs here!