What is the theoretical maximum value of Gini impurity for a binary classification task?

Quick Overview

Asks for the largest value Gini impurity can take in a two-class decision tree node and the class balance that produces it. Tests whether you can derive the result from the formula, interpret it, and extend it to more classes and to entropy.

What is the theoretical maximum value of Gini impurity for a binary classification task?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the theoretical maximum value of Gini impurity for a binary classification task? ```hint One variable Write the impurity of a two-class node as a function of the positive-class proportion $p$ alone, then find where that function peaks. ``` ### What a Strong Answer Covers - The two-class Gini formula, simplified to a function of one proportion - Where the maximum occurs and its value, with a short derivation - What the value means in terms of random draws from the node - How the maximum changes with more classes, and how it compares with entropy ### Follow-up Questions - How is the impurity decrease of a candidate split computed from parent and child impurities? - Why do Gini impurity and entropy usually choose the same splits? - If only 1% of the training data is positive, what is the root node's impurity, and what does that mean for the size of impurity decreases? - What is the maximum Gini impurity for four classes, and which class distribution reaches it?

Overview: Asks for the largest value Gini impurity can take in a two-class decision tree node and the class balance that produces it. Tests whether you can derive the result from the formula, interpret it, and extend it to more classes and to entropy.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the theoretical maximum value of Gini impurity for a binary classification task?

What a Strong Answer Covers Guidance

  • The two-class Gini formula, simplified to a function of one proportion
  • Where the maximum occurs and its value, with a short derivation
  • What the value means in terms of random draws from the node
  • How the maximum changes with more classes, and how it compares with entropy

Follow-up Questions Guidance

  • How is the impurity decrease of a candidate split computed from parent and child impurities?
  • Why do Gini impurity and entropy usually choose the same splits?
  • If only 1% of the training data is positive, what is the root node's impurity, and what does that mean for the size of impurity decreases?
  • What is the maximum Gini impurity for four classes, and which class distribution reaches it?