Definition

Conditional Entropy

Conditional entropy quantifies the remaining uncertainty in a label YY after observing a feature XX. Let YY be the set of possible labels and XX be the set of possible feature values.

For a fixed feature value X=xX=x, the conditional entropy is H(YX=x)=yYPr(Y=yX=x)logPr(Y=yX=x)H(Y \mid X=x) = -\sum_{y\in Y} \Pr(Y=y \mid X=x)\log \Pr(Y=y \mid X=x).

Averaging over all values of XX gives the overall conditional entropy H(Ymid X) = sum_{xin X} Pr(X=x), H(Ymid X=x), which is the quantity used when computing information gain.

Intuitively: how uncertain are we about a person's health outcome, given that we know how many times a year they visit the doctor?

0

1

Updated 2026-07-11

Tags

Data Science

Related