Question: Q 3 . Information, Information Gain Function, & Rank The following data reports past observations on weather conditions and the decision to Play or
Q Information, Information Gain Function, & Rank
The following data reports past observations on weather conditions and the decision to Play or not. We are interested in whether the weather conditions can be used to predict the Play or not decision. The excel version of the dataset is available for download on Canvas rightarrow Assignment
Excel version: BANAHWQ
begintabularccccc
hline Outloo
mathrmk
& Temperature & Humidit
mathrmy
& Windy & Play
hline sunny & hot & high & FALSE & no
hline sunny & hot & high & TRUE & no
hline begintabularl
overcas
t
endtabular & hot & high & FALSE & yes
hline rainy & mild & high & FALSE & yes
hline rainy & cool & normal & FALSE & yes
hline rainy & cool & normal & TRUE & no
hline begintabularl
overcas
t
endtabular & cool & normal & TRUE & yes
hline sunny & mild & high & FALSE & no
hline sunny & cool & normal & FALSE & yes
hline rainy & mild & normal & FALSE & yes
hline sunny & mild & normal & TRUE & yes
hline begintabularl
overcas
t
endtabular & mild & high & TRUE & yes
hline begintabularl
overcas
t
endtabular & hot & normal & FALSE & yes
hline rainy & mild & high & TRUE & no
hline
endtabular
a Based on the table, what is the entropy of "Play"?
b Create contingency tables given each of the following attributes:
Temperature
Humidity
Windy
c Based on the contingency tables, calculate the information gain of each of the above attributes ie Temperature, Humidity, and Windy
d Please rank the attributes from the most informative to the least informative for predicting Play
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
