Chapter 7 Quiz

Chapter 7, Tree-Based Models I, Decision Trees

Learning objectives

  • Test what Chapter 7 computed: the impurity of a node, how a tree chooses its split, pruning by cost complexity on Ogbon-1, and a tree's depth chosen on the Ogbon field's nine wells, leave one well out

This quiz covers Chapter 7, Sections 7.1 and 7.2: decision trees on the book's own synthetic Ogbon learning set. Every number in it is one those sections computed.

Key Ideas

  • Impurity: the Gini impurity G=1βˆ’βˆ‘kpk2G = 1 - \sum_k p_k^2 and the entropy H=βˆ’βˆ‘kpklog⁑2pkH = -\sum_k p_k \log_2 p_k, zero for a pure node and largest at even classes.
  • A split: every midpoint of every log is a candidate; the tree takes the one whose children have the least weighted impurity (nLIL+nRIR)/n(n_L I_L + n_R I_R)/n.
  • Pruning: cost complexity keeps the subtree that makes R(T)+Ξ±β€‰βˆ£T∣R(T) + \alpha\,|T| least, so a branch stays only if its leaves each save more than the price.
  • Depth: the training score rises with every level; the held-out score, leave one well out, chooses the depth.
  • Order: a split reads only the order of a log, so trees need no scaling and raw and log10 RT give the same trees.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.