Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Kindly answer q.2 only and in detail asap Marks: 05 Answer the questions given below: Question 1: The goal of this exercise is to get
Kindly answer q.2 only and in detail asap
Marks: 05 Answer the questions given below: Question 1: The goal of this exercise is to get familiarized with decision trees. Therefore a simple dataset about weather to 10 skirg or not is provided. The decision of going skiing depends on the attributes snow, weather, season, and shysical condition as shown in the table below. ( CLO3,PLO3 C4Examinell 12.5 Marks) no RD Snow Weather Season Physical_Condition Go_Skiing TTT 1 Sticky TORROW rested fresh my low injured 1 West Sunny Imrested yes 14 Fresh sunny ghrested 15 Sre Sunny dressed yes |5 |nosed windy high | t 1 Lidl no yes w yes no yes yes 2 Sticky Sunny Teel strated by 9 tresh windy wreed 1n in fresh windy wrested low 11 tres TOREY Owrested 12 fresh fogy lowrested 13 sticky sunny midrested 19 frosted FREY low injured yes yes yes No 1. Calculate the amount of Information for the above table 2. Calculate the Entropy and Information Gain value of the following attributes: a. Show b. Weather C. Season d. Physical Condition 3. Based on the information Gain values calculated, draw a decision tree 4. Soeofy the class labels for the following tuples RID Snow Weather Season Physical_Condition Go_Shing Y 1 treh SUNTY rested i . 2 frosted wine High tred 3 ST cow re Question 2. The following table shows the yield of a crep according to the temperature 1. Calculate the amount of information for the above table. 2. Calculate the Entropy and Information Gain value of the following attributes: a. Snow b. Weather c. Season d. Physical Condition d 3. Based on the information Gain values calculated, draw a decision tree 4. Soedify the class labels for the following tuples AID Snow Weather Season Phel Conditie Gasking 1 fresh Sony 3 2 Trusted wild Nah tred 3 Sticky Sunny low rested Question 2: The following table shows the yield of a crop according to the temperature (CL03, PLOS CALExamine) (7.5 Marks! ( Observation Temperaturel feld Number 0 133 2 118 3 51 4 55 22: 5 16 *33 6 59 238 7 62 244 2 6 3 142 9 67 20 7. : 251 .1 72 257 - 12 74 11 75 112 24 78 35 79 199 27 2B 30 20 21 . 37 33 24 25 82 85 2 90 93 91 05 92 100 1.30 -53 1 230 194 220 22 210 2119 1. What is the independent and dependent variabic for these datar 2. Use the gvern data to find the regression equation for the data points Regression equation: Y.Q+BXwhere - ) anca y Bx 3. Predict the yield of crop when the temperature is 32 3/3 Marks: 05 Answer the questions given below: Question 1: The goal of this exercise is to get familiarized with decision trees. Therefore a simple dataset about weather to 10 skirg or not is provided. The decision of going skiing depends on the attributes snow, weather, season, and shysical condition as shown in the table below. ( CLO3,PLO3 C4Examinell 12.5 Marks) no RD Snow Weather Season Physical_Condition Go_Skiing TTT 1 Sticky TORROW rested fresh my low injured 1 West Sunny Imrested yes 14 Fresh sunny ghrested 15 Sre Sunny dressed yes |5 |nosed windy high | t 1 Lidl no yes w yes no yes yes 2 Sticky Sunny Teel strated by 9 tresh windy wreed 1n in fresh windy wrested low 11 tres TOREY Owrested 12 fresh fogy lowrested 13 sticky sunny midrested 19 frosted FREY low injured yes yes yes No 1. Calculate the amount of Information for the above table 2. Calculate the Entropy and Information Gain value of the following attributes: a. Show b. Weather C. Season d. Physical Condition 3. Based on the information Gain values calculated, draw a decision tree 4. Soeofy the class labels for the following tuples RID Snow Weather Season Physical_Condition Go_Shing Y 1 treh SUNTY rested i . 2 frosted wine High tred 3 ST cow re Question 2. The following table shows the yield of a crep according to the temperature 1. Calculate the amount of information for the above table. 2. Calculate the Entropy and Information Gain value of the following attributes: a. Snow b. Weather c. Season d. Physical Condition d 3. Based on the information Gain values calculated, draw a decision tree 4. Soedify the class labels for the following tuples AID Snow Weather Season Phel Conditie Gasking 1 fresh Sony 3 2 Trusted wild Nah tred 3 Sticky Sunny low rested Question 2: The following table shows the yield of a crop according to the temperature (CL03, PLOS CALExamine) (7.5 Marks! ( Observation Temperaturel feld Number 0 133 2 118 3 51 4 55 22: 5 16 *33 6 59 238 7 62 244 2 6 3 142 9 67 20 7. : 251 .1 72 257 - 12 74 11 75 112 24 78 35 79 199 27 2B 30 20 21 . 37 33 24 25 82 85 2 90 93 91 05 92 100 1.30 -53 1 230 194 220 22 210 2119 1. What is the independent and dependent variabic for these datar 2. Use the gvern data to find the regression equation for the data points Regression equation: Y.Q+BXwhere - ) anca y Bx 3. Predict the yield of crop when the temperature is 32 3/3Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started