I E ( ) = − 9 14 log 2 ⁡ 9 14 − 5 14 log 2 ⁡ 5 14 = 0.940286 {\displaystyle I_{E}()=-{\frac {9}{14}}\log _{2}^{}{\frac {9}{14}}-{\frac {5}{14}}\log _{2}{\frac {5}{14}}=0.940286} Now we can calculate the information gain achieved by splitting on the windy feature.
I E ( ) = − ( 9 / 14 ) log 2 ⁡ ( 9 / 14 ) − ( 5 / 14 ) log 2 ⁡ ( 5 / 14 ) = 0.940286 {\displaystyle I_{E}()=-(9/14)\log _{2}^{}(9/14)-(5/14)\log _{2}^{}(5/14)=0.940286} Dabar galima apskaičiuoti informacijos išlošį, gautą po padalinimo pagal vėjuotumą.