Question: Q 3 . Information, Information Gain Function, & Rank The following data reports past observations on weather conditions and the decision to Play or

Q3. 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 1.
(Excel version: BANA273_2020_HW1Q3)
\begin{tabular}{|c|c|c|c|c|}
\hline Outloo
\[
\mathrm{k}
\] & Temperature & Humidit
\[
\mathrm{y}
\] & Windy & Play \\
\hline sunny & hot & high & FALSE & no \\
\hline sunny & hot & high & TRUE & no \\
\hline \begin{tabular}{l}
overcas \\
\( t \)
\end{tabular} & hot & high & FALSE & yes \\
\hline rainy & mild & high & FALSE & yes \\
\hline rainy & cool & normal & FALSE & yes \\
\hline rainy & cool & normal & TRUE & no \\
\hline \begin{tabular}{l}
overcas \\
t
\end{tabular} & 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 \begin{tabular}{l}
overcas \\
t
\end{tabular} & mild & high & TRUE & yes \\
\hline \begin{tabular}{l}
overcas \\
t
\end{tabular} & hot & normal & FALSE & yes \\
\hline rainy & mild & high & TRUE & no \\
\hline
\end{tabular}
a. Based on the table, what is the entropy of "Play"?
b. Create contingency tables given each of the following attributes:
1) Temperature
2) Humidity
3) Windy
c. Based on the contingency tables, calculate the information gain of each of the above 3 attributes (i.e., Temperature, Humidity, and Windy)
d. Please rank the 3 attributes from the most informative to the least informative for predicting Play
Q 3 . Information, Information Gain Function, \ &

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!