GATE DA 2024 · Decision Trees

NAT · 2 marks · Problem ML-CLUS-0018

Details of ten international cricket games between two teams "Green" and "Blue" are given in Table C. This table consists of matches played on different pitches, across formats along with their winners. The attribute Pitch can take one of two values: spin-friendly (represented as \(S\) ) or pace-friendly (represented as \(F\) ). The attribute Format can take one of two values: one-day match (represented as \(O\) ) or test match (represented as T). A cricket organization would like to use the information given in Table C to develop a decision-tree model to predict outcomes of future games between these two teams. To develop such a model, the computed InformationGain(C, Pitch) with respect to the Target is (rounded off to two decimal places).\[\begin{array}{c} \textbf{Table C } \\ \begin{array}{|c|c|c|c|} \hline \textbf{Match Number} & \textbf{Pitch} & \textbf{Format} & \textbf{Winner (Target)} \\ \hline 1 & S & T & \text{Green} \\ \hline 2 & S & T & \text{Blue} \\ \hline 3 & F & O & \text{Blue} \\ \hline 4 & S & O & \text{Blue} \\ \hline 5 & F & T & \text{Green} \\ \hline 6 & F & O & \text{Blue} \\ \hline 7 & S & O & \text{Green} \\ \hline 8 & F & T & \text{Blue} \\ \hline 9 & F & O & \text{Blue} \\ \hline 10 & S & O & \text{Green} \\ \hline \end{array}\end{array}\]

Numerical answer (NAT).

Solve it on GATE DA practice →More Supervised Learning — Classification problems

Show the worked solution\[\boxed{IG(C,\text{Pitch})=H(C)-\sum_{v\in\{S,F\}}\frac{|C_v|}{|C|}H(C_v)}\]Overall: 4 Green, 6 Blue, \(H(C)=H(0.4,0.6)=0.971\).Pitch \(S\) (matches 1, 2, 4, 7, 10): 3 Green, 2 Blue, \(H=0.971\).Pitch \(F\) (matches 3, 5, 6, 8, 9): 1 Green, 4 Blue, \(H=0.722\).\[IG=0.971-\tfrac12(0.971)-\tfrac12(0.722)=0.1245\approx0.12\]Answer: 0.12

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com