Assg 1
Assg 1
Assignment No. 1
Q.N Question BL
Covered
CSC701.1:To acquire fundamental knowledge of developing machine
learning models.
6. Explain the steps required for selecting the right machine learning algorithm.
8. For the given data determine the number of hours played if Outlook is rainy
and temperature is mild.
S.N outlook temp humidity windy play
1. rainy hot high FALSE 25
2. rainy hot high TRUE 30
3. overcast hot high FALSE 46
4. sunny mild high FALSE 45
5. sunny cool normal FALSE 52
6. sunny cool normal TRUE 23
7. overcast cool normal TRUE 43
8. rainy mild high FALSE 35
9. rainy cool normal FALSE 38
10. sunny mild normal FALSE 46
11. rainy mild normal TRUE 52
12. overcast mild high TRUE 48
13. overcast hot normal FALSE 44
14. sunny mild high TRUE 30
9. Explain the concept of regression and enlist its types.The following table shows the
number of balls required to score runs. Identify the machine learning method used
to solve the above problem and predict the likely value of the number of balls
required to score a century
Runs No. of balls
Scored
8 10
35 20
47 31
54 23
11 5
85 47
84 35
93 67
89 73
2 1
10. Generate a decision tree using GINI index for the following data.
Income Defaulting Credit score Location Give a loan?
Low High High Bad NO
Low High High Good NO
High High High Bad YES
Medium Medium High Bad YES
Medium Low Low Bad NO
Medium Low Low Good YES
High Low Low Good YES
Low Medium High Bad NO
Low Low Low Bad NO
Medium Medium LOw Bad NO
Low Medium Low Good YES
High Medium High Good YES
High High Low Bad NO
Medium Medium High Good YES
The dataset for Pass/ Fail for 7 students is given in the table below. If we use
logistic regression and assume that the model suggested by the optimiser will
become the following for odds of passing the course: log(odds)= -64 + 2 *
hours
1) calculate the probability of Pass for student who studied 33 hours
2) Atleast how many hours the student should study to make sure he will
pass the course with the probability of more than 95%.
29 0
15 0
33 1
25 1
28 1
39 0
35 1