ML MID-1 Question Bank
ML MID-1 Question Bank
14. For regression, write the general predication formula for linear regression.
15. For classification, write the general predication formula for logistic regression
16. Calculate the entropy for the following data set
18. Calculate the Information Gain for the attribute Smokes for the following data set
Patient Chest Male Smokes Exercises Heart
ID Pain Attack
1 Yes Yes No Yes Yes
2 Yes Yes Yes No Yes
3 No No Yes No Yes
4 No Yes No Yes No
5 Yes No Yes Yes Yes
6 No Yes Yes Yes No
19. Calculate the Information Gain for the attribute Chest Pain for the following data set
5 Mark Questions:
1. Write your view on how machine learning programming is different from classical
programming. Write the types of machine learning and how they are different from each
other.
2. Explain the packages available for machine learning programming in python and write the
details of each package
3. Consider the following Balloons Data Set consists of four attributes (Color, Size, Act, and
Age) and a binary label (Inflated). You will identify root node of a decision tree for below
dataset using Information Gain.
The Balloons Data Set
4. Compute the linear regression equation (trendline). The trendline will be y = mx+b for some
values of m (Slope of the trendline) and b (y-intercept).
Using this above dataset build a decision tree to decide whether you would enjoy a particular
restaurant or not, showing at each level how you decided which attribute to expand next.
2. Consider the following data set PlayTennis of 14 samples, four features outlook,
temperature, humidity, and wind.