ContentsChapter 12 · Practice2 of 4

12.2

Mixed problems 2

In this chapter
  1. 12.1Mixed problems 1
  2. 12.2Mixed problems 2
  3. 12.3Mixed problems 3
  4. 12.4Mixed problems 4
Exercise
A coin selects bag A with probability 0.60.6 and bag B otherwise. Bag A has 2 red and 2 blue counters. Bag B has 3 red and 1 blue. A counter drawn uniformly from the chosen bag is red. What is the probability you chose bag B?
Exercise
On three held-out inputs the targets are 2,3,52,3,5 Model A predicts 1,3,61,3,6 and model B predicts 2,3,32,3,3 Give the sum of squared errors for model A, then for model B.
Exercise
A decision-tree split sends 3 positive and 1 negative example to the left, and 2 negative examples to the right. What is the weighted Gini impurity after the split?
Recall
Why compare the two regression models on data they did not train on?