Curated · Decision Trees

MSQ · 2 marks · Problem ML-TREE-0006

Which of the following statements about decision trees is/are correct?
  1. A
    Pruning a fully grown tree usually lowers its variance, at the cost of a small increase in bias.
  2. B
    Decision trees can represent non-linear decision boundaries.
  3. C
    Replacing a feature by a strictly increasing function of it (for example \(x\mapsto e^{x}\)) does not change how the learnt tree partitions the training data.
  4. D
    A tree with binary splits that is trained on \(n\) distinct examples can never be deeper than \(\log_2 n\).

Solve it on GATE DA practice →More Supervised Learning — Classification problems

Show the worked solution\[\boxed{\text{a split is a threshold test } x_j\le t\text{; only the order of the values of } x_j \text{ matters}}\](A) Correct. A fully grown tree fits the noise in the training data (high variance); replacing subtrees by leaves makes it simpler and more stable, while slightly raising its bias.(B) Correct. Each split is axis-aligned, but a sequence of splits carves the input space into boxes, so the boundary between classes is piecewise and in general non-linear (a depth-\(2\) tree fits XOR, which no straight line separates).(C) Correct. A strictly increasing function keeps the order of the values, so every threshold split \(x\le t\) corresponds to the split \(g(x)\le g(t)\) with exactly the same two child sets; the impurities, and hence the chosen splits of the training data, do not change.(D) Incorrect. \(\log_2 n\) is the depth of a perfectly balanced tree. Nothing forces balance: on \(n\) points of a line, the splits \(x\le1.5\), then \(x\le2.5\), and so on, each peel off one example, giving depth \(n-1\).Answer: A, B, C

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com