What is entropy in the context of decision trees?

Quick Overview

Asks what entropy means for a decision tree node and how trees use it when choosing splits. It tests whether you can write and compute the formula, connect it to information gain, and compare it with Gini impurity and its known weaknesses.

What is entropy in the context of decision trees?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is entropy in the context of decision trees? ```hint Count the questions Think about how many yes/no questions you would need, on average, to identify a sample's label given the class mix in a node. ``` ### What a Strong Answer Covers - The entropy formula, its range, and its value for a pure node and an evenly mixed node - A small numeric calculation - How entropy feeds information gain and the choice of split - How entropy compares with Gini impurity, and weaknesses such as the bias of information gain toward many-valued features ### Follow-up Questions - A node holds 8 positives and 8 negatives. A split sends 6 positives and 2 negatives left and the rest right. What is the information gain? - Why does information gain favor features with many distinct values, and how does gain ratio correct for it? - When would Gini and entropy pick different splits, and does it matter in practice? - How is node entropy related to the log loss used to train a classifier?

Overview: Asks what entropy means for a decision tree node and how trees use it when choosing splits. It tests whether you can write and compute the formula, connect it to information gain, and compare it with Gini impurity and its known weaknesses.

PracHub logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is entropy in the context of decision trees?

What a Strong Answer Covers Guidance

  • The entropy formula, its range, and its value for a pure node and an evenly mixed node
  • A small numeric calculation
  • How entropy feeds information gain and the choice of split
  • How entropy compares with Gini impurity, and weaknesses such as the bias of information gain toward many-valued features

Follow-up Questions Guidance

  • A node holds 8 positives and 8 negatives. A split sends 6 positives and 2 negatives left and the rest right. What is the information gain?
  • Why does information gain favor features with many distinct values, and how does gain ratio correct for it?
  • When would Gini and entropy pick different splits, and does it matter in practice?
  • How is node entropy related to the log loss used to train a classifier?