2. Use the PlayTennis training example again. (15 marks) (a) (10 marks) Construct a Decision Tree. Note that the order of attributes selection is
View the step-by-step solution to:

Question

DATA ANALYTICS QUESTION

QUESTION GIVEN AND TENNIS EXAMPLE HERE IN THE IMAGES

2. Use the PlayTennis training example again. (15 marks)
(a) (10 marks) Construct a Decision Tree. Note that the order of
attributes selection is based on the entropy theory for information
gain.
(b) (5 marks) Us the classifier to determine
(Outlook Rain, Temperature Hot, Humidity High, Windweak, PlayTennis =?)

Ea example: play tennis.
Day Outlook Temperature Humidity Wind 5W D1 Sunny Hot High Weak No
D2 Sunny Hot High Strong No
D3 Overcast Hot High Weak Yes
D4 Rainy Mild High Weak Yes
D5 Rainy Cool Nomial Weak Yes
D6 Rainy Cool Normal Strong No
D7 Overcast Cool Nomial Strong Yes
D8 Sunny Mild High Weak No
D9 Sunny Cool Nomal Weak Yes
D1 0 Rainy Mild Normal Weak Yes
D1 1 Sunny Mild Normal Strong Yes
D1 2 Overcast Mild High Strong Yes
D1 3 Overcast Hot Normal Weak Yes D14 Rainy Mild High Strong No

Wind Strong Day Outlook Temperature Humidity Wind W D2 Sunny Hot High Strong No
D6 Rainy Cool Normal Strong No
D7 Overcast Cool Normal Strong Yes
D1 1 Sunny Mild Normal Strong Yes
D1 2 Overcast Mild High Strong Yes
D14 Rainy Mild High Strong No wind strong —&gt; humidity high Day Outlook Temperature Humidity Wind W D2 Sunny Hot High Strong No
D1 2 Overcast Mild High Strong Yes
D14 Rainy Mild High Strong No wind strong —&gt; humidity high -)EE§
Day Outlook Temperature Humidity Wind m D2 Sunny Hot High Strong No wind strong -&gt; humidity high-3 temp. mild Day Outlook Temperature Humidity Wind W D12 Overcast Mild High Strong Yes
D14 Rainy Mild High Strong No

wind strong —&gt; humidity high—3 temp. mild —) outlook &amp;‘ 1,12, vote yes or no. Day Outlook Tern peratu re Humidity Wind m
wind strong —&gt; humidity high—:- temp. mild —&gt; outlook overcast. Day Outlook Temperature Humidity Wind W D12 Overcast Mild High Strong Yes wind strong —&gt; humidity high—3 temp. mild —&gt; outlook rainy Day Outlook Temperature Humidity Wind m
D14 Rainy Mild High Strong No wind strong —&gt; humidity high —) temp cool —&gt; 1/3, no. Day Outlook Temperature Humidity Wind W wind strong —&gt; humidity normal. Day Outlook Temperature Humidity Wind W
D6 Rainy Cool Normal Strong No
D7 Overcast Cool Normal Strong Yes D1 1 Sunny Mild Normal Strong Yes wind strong -&gt; humidity normal. -) temp hot -&gt; yes. Day Outlook Temperature Humidity Wind W wind strong -&gt; humidity normal. -) temp. mild. Day Outlook Temperature Humidity Wind W
D11 Sunny Mild Normal Strong Yes

wind strong —&gt; humidity normal. —&gt; temp cool Day Outlook Temperature D6 Rainy Cool
D7 Overcast Cool looking further into outlook. Wind Week Day Outlook Temperature D1 Sunny Hot
D3 Overcast Hot
D4 Rainy Mild
D5 Rainy Cool
D8 Sunny Mild
D9 Sunny Cool
D10 Rainy Mild
D13 Overcast Hot Humidity Wind m Normal Strong No
Normal Strong Yes Humidity Wind Em High Weak No
High Weak Yes
High Weak Yes
Normal Weak Yes
High Weak No
Normal Weak Yes
Normal Weak Yes
Nomial Weak Yes Wind Weak -&gt; M ' Day Outlook Temperature D1 Sunny Hot
D3 Overcast Hot
D4 Rainy Mild D8 Sunny Mild Humidity Wind Hacienda High Weak No
High Weak Yes
High Weak Yes
High Weak No

Wind Weak-3 ﬂ 2255&quot; temp. hot
Day Outlook Temperature Humidity Wind 3W D1 Sunny Hot High Weak No
D3 Overcast Hot High Weak Yes
look further into the attribute outlook.
Wind Weak —&gt; EE&amp;— —&gt; temp. mild
Day Outlook Temperature Humidity Wind W
D4 Rainy Mild High Weak Yes
D8 Sunny Mild High Weak No
look further into the attribute outlook.
Wind Weak -) W- -) temp. tool -&gt; yes or I'IoI 214 Day Outlook Temperature Humidity Wind m Wind Weak— humidity normal 3 yes. Day Outlook Temperature Humidity Wind W D5 Rainy Cool NomIal Weak Yes
D9 Sunny Cool Normal Weak Yes
D10 Rainy Mild NomIal Weak Yes D13 Overcast Hot NomIal Weak Yes

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
• -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents