QB Aam CT1
QB Aam CT1
Class Test -1
Question Bank
11) How to choose value of ‘k’ for K-Nearest Neighbor (KNN) algorithm. Also give
advantages and disadvantages
12) Explain the working of Naïve Bayes algorithm with the help of below example. Consider
the given Dataset and Predict that probability of Person having Heart disease or not
City Gender Income Illness
Mumbai Male 40367 No
Mumbai Female 41524 Yes
Mumbai Male 46373 Yes
Delhi Male 98096 No
Delhi Female 102089 No
Delhi Female 100662 No
Delhi Male 117263 Yes
Mumbai Male 56645 No
13) Explain Decision Tree Algorithm with example Also give advantages and disadvantages.
14) Explain Kernel Function.
15) Give the Working of Random Forest algorithm. Also write the python code to Fit
Random Forest Algorithm.
16) We have POSITIVE class data points {(2, 2), (2, -2), (-2, -2), (-2, 2)} and NEGATIVE
class data points {(1, 1), (1, -1), (-1, -1), (-1, 1)} then Draw the optimal Hyperplane.
17) Distinguished between Naïve Bayes, Decision Tree and Random Forest Algorithm.
18) Explain K Nearest Neighbor Algorithm and also give python code to implement KNN
Classifier.
19) Explain Decision Tree Algorithm with example Also give advantages and disadvantages.
20) Here is the dataset of students who like games included Cricket, Football or Neither.
CLASS OF
NAME AGE GENDER
SPORTS
Ajay 32 0 Football
Mark 40 0 Neither
Sara 16 1 Cricket
Zaira 34 1 Cricket
Sachin 55 0 Neither
Rahul 40 0 Cricket
Pooja 20 1 Neither
Smith 15 0 Cricket
Laxmi 55 1 Football
Michael 15 0 Football
Where Male denoted by 0 and Female by 1. So find the class of student called Angelina. She is
Female and having Age is 5. [Assume k = 3]