Question Bank Machine Learning with Python
Question Bank Machine Learning with Python
1) What is the difference between slicing and indexing in NumPy? What is the difference
Between slicing and indexing in NumPy
2) Mention the different types of Data Structures in Pandas? What is the difference between
NumPy and Pandas?
3) What are the different ways in which a series can be created?
4) What is Machine Learning? Explain Types of Learning With examples.
5) Difference between Supervised Learning and Unsupervised Learning
with examples.
6) Explain Regression & Classification algorithms with examples.
7) Differentiate between K-means clustering and Hierarchical clustering with example.
8) Explain PCA & LDA algorithm with example.
9) Designing Learning System & Issues in machine learning. Explain inductive Bias &
candidate elimination algorithm.
10) What is Polynomial Regression? Write Steps in Polynomia regression & advantage,
disadvantage.
11) Explain the term MSE, RMSE & R-squared.
12) What is Regression Analysis? Explain its types and applications.
13) What is Machine Learning? Explain Types of Learning With examples.
Difference between Supervised Learning and Unsupervised Learning
with examples.
14) Explain Regression & Classification algorithms with examples.
15) Explain the process of concept learning in machine learning. How does it help in
generalizing from examples?
16) Explain the Bayes Optimal Classifier and its significance in machine learning.
17) Explain the Naive Bayes Classifier. Discuss its working principle, assumptions,
advantages, and limitations.
18) A man is known to speak the lies 1 out of 4 times. He throws a die and reports that it is a
six. Find the probability that is actually a six.
19) Suppose 15 men out of 300 men and 25 women out of 1000 are good orators. An orator is
chosen at random. Find the probability that a male person is selected.
20) A card from a pack of 52 cards is lost. From the remaining cards of the pack, two cards
are drawn and are found to be both hearts. Find the probability of the lost card being a heart
21) There are three urns containing 3 white and 2 black balls; 2 white and 3 black balls; 1
black and 4 white balls respectively. There is an equal probability of each urn being chosen.
One ball is equal probability chosen at random. What is the probability that a white ball is
drawn?
22) A person has undertaken a job. The probabilities of completion of the job on time with
and without rain are 0.44 and 0.95 respectively. If the probability that it will rain is 0.45, then
determine the probability that the job will be completed on time.
23) Suppose we have a dataset consisting of the actual and predicted values for the
regression problem
Actual Values: [10, 20, 30, 40, 50]
Predicted Values: [12, 18, 32, 38, 48]
24) Given the actual and predicted values for the regression problem calculate the MSE and
RMSE.
Actual Values: [15, 25, 35, 45, 55]
Predicted Values: [18, 22, 38, 42, 52
X Y
1 1
2 2
3 3
26) Problem 1: Calculate the coefficient of determination from the following data:
X Y
1.
0
2
1 5
2 2
X Y
3 0
27) Calculate the coefficient of determination if RSS = 1.5 and TSS = 1.9.
28) Calculate the coefficient of determination if RSS = 1.479 and TSS = 1.89734.
30) Describe the following clustering algorithm in terms of: (a) Shape of clusters (b)
Limitations: i. K-means ii. DBSCAN