This post will explore the mathematics behind information gain. We'll start with the base intuition behind information gain, but then…