Lably
Skip to content

Information gain (decision tree)

Gain from observing another random variable

  • 10 min read
  • 5 chapters

Related on Lably

Through Decision tree, Machine learning and Probability distribution

Explicitly, the information gain of a random variable X obtained from an observation of a random variable A taking value a is defined as:

IG(X,a)=DKL(PX∣a∥PX)

In other words, it is the Kullback–Leibler divergence of PX(x) (the prior distribution for X) from PX∣a(x) (the posterior distribution for X given A=a).

The expected value of the information gain is the mutual information I(X;A):

EA⁡[IG(X,A)]=I(X;A)

i.e. the reduction in the entropy of X achieved by learning the state of the random variable A.

In machine learning, this concept can be used to define a preferred sequence of attributes to investigate to most rapidly narrow down the state of X. Such a sequence (which depends on the outcome of the investigation of previous attributes at each stage) is called a decision tree, and when applied in the area of machine learning is known as decision tree learning. Usually, attributes with high mutual information with the target variable are preferred, since mutual information is equivalent to the expected reduction in entropy (information gain) obtained by splitting on that attribute.

General definition

In general terms, the expected information gain is the reduction in information entropy Η from a prior state to a state that takes some information as given:

IG(T,a)=H(T)−H(T|a),

where H(T|a) is the conditional entropy of T given the value of attribute a.

This is intuitively plausible when interpreting entropy Η as a measure of uncertainty of a random variable T: by learning (or assuming) a about T, our uncertainty about T is reduced (i.e. IG(T,a) is positive), unless of course T is independent of a, in which case H(T|a)=H(T), meaning IG(T,a)=0.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Robotics