Definition icon
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(Y∣X=x)=−∑y∈YPr⁡(Y=y∣X=x)log⁡Pr⁡(Y=y∣X=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(Y∣X)=∑x∈XPr⁡(X=x),H(Y∣X=x)H(Y\mid X) = \sum_{x\in X} \Pr(X=x), H(Y\mid 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

Definition icon
Updated 2026-07-11

Tags

Data Science