Gradient LabSign up free

Home / GATE DA / 2024 / Q.62

GATE DA 2024, Q.62: Information gain of Pitch on 10 cricket games

Machine learningInformation gain2 marksNumerical answerFree

The question

A table records 10 cricket games. Pitch is either Spin (S) or Pace (F), and the target is the Winner, Green or Blue. Games on a spin pitch: 3 Green wins, 2 Blue wins. Games on a pace pitch: 1 Green win, 4 Blue wins. Find InformationGain(C, Pitch) with respect to the Winner, rounded to two decimals.

Solve it step by step

  1. Parent entropy. 4 Green and 6 Blue overall, so H = −0.4·log₂0.4 − 0.6·log₂0.6 = 0.971 bits.
  2. Split on Pitch. 5 spin games (3 Green, 2 Blue) and 5 pace games (1 Green, 4 Blue).
  3. Entropy of each branch. Spin: H(3/5, 2/5) = 0.971. Pace: H(1/5, 4/5) = 0.722.
  4. Weighted child entropy. (5/10)·0.971 + (5/10)·0.722 = 0.847.
  5. Gain. 0.971 − 0.847 = 0.124, which rounds to 0.12.

Answer: 0.12

Official IISc Bengaluru answer key: 0.12 to 0.13.

Common mistake. Taking the entropy of the Pitch column itself. Pitch splits 5/5, so H(Pitch) = 1, but information gain always measures entropy of the target (Winner).

Remember. Gain = H(target) − Σ (nᵢ / n) · H(target within branch i)

See it move

Learn the idea behind this question in the free animated lesson Entropy and Gini, then Decision trees.

Want every question solved? The past-paper pack has all 195 questions from 2024, 2025 and 2026 for ₹499. The cheat sheet pack has 23 printable sheets for ₹399.

See the past-paper pack See the cheat sheets

Source: official GATE DA 2024 question paper and answer key (IISc Bengaluru). The question is lightly reworded; every number and option is kept.