1. Home
  2. Data Science
  3. Decision Trees
  4. What is the Gini impurity of a node that contains 50%…

Added 2 Nov 2026

What is the Gini impurity of a node that contains 50% class A and 50% class B?

  1. 0
  2. 1.0
  3. 0.5 Correct answer
  4. 0.25

Correct answer

C. 0.5

17 views

MCQSEXAM

Explanation

Gini = 1 − Σpᵢ² = 1 − (0.25 + 0.25) = 0.5, the maximum for two classes. A pure node has a Gini impurity of 0.

Reference

Asked in: Data Science Interviews, GATE DA

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Decision Trees MCQs

Practise all Decision Trees MCQs

Similar MCQs