Questions / Quant research, Machine learning judgment

An interaction hides from a greedy first split

Challenge, about 10 minutes. Question R151.

For the XOR data, what is the weighted Gini impurity after either one-feature root split?

Answer it in the app It's free. You get hints, a second try if you miss, and a follow-up question.

Show the answer and worked solution

Answer: 0.5 Gini impurity (1/2)

  1. Each child gets one positive and one negative.
  2. Each child’s Gini is 0.5.
  3. The weighted average is 0.5: no decrease.

Interview shortcut. Balanced children: Gini stays 0.5.

Takeaway. Greedy splits can see zero gain on interactions.

In the app this has a follow-up where one thing about the setup changes. Try the follow-up.

More machine learning judgment questions