Unit 14: Machine learning algorithms - Subjective Questions

ECAP776 • Practice Questions with Detailed Answers

20 questions

1

Define linear regression. Explain the roles of the dependent variable, independent variables, slope, and intercept.

2

Derive the least-squares formulas for the slope and intercept of a simple linear regression model.

3

Explain the major assumptions of linear regression and describe how the performance of a regression model can be evaluated.

4

Describe the steps required to build and use a linear regression model in Python with scikit-learn.

5

Explain how the K-nearest neighbours algorithm performs classification.

6

Discuss the importance of distance measures, feature scaling, and the choice of in K-nearest neighbours.

7

Distinguish between KNN classification and KNN regression.

8

Describe the advantages and limitations of K-nearest neighbours, including the effect of high-dimensional data.

9

Explain how a decision tree performs classification. Include entropy, Gini impurity, and information gain in your answer.

10

What is overfitting in a decision tree? Explain pre-pruning and post-pruning techniques used to control it.

11

Describe how a prediction from a decision tree can be interpreted, and state the main advantages and disadvantages of decision trees.

12

Explain how a regression tree selects splits and produces predictions.

13

Define a random forest and explain how it combines multiple decision trees.

14

Compare a single decision tree with a random forest.

15

Explain bootstrap aggregation, random feature selection, and out-of-bag evaluation in random forests.

16

Discuss important random forest hyperparameters and methods for estimating feature importance.

17

State the objective of K-means clustering and explain its iterative algorithm.

18

Explain how the elbow method, silhouette score, feature scaling, and centroid initialization are used when applying K-means.

19

Perform one K-means update for the one-dimensional observations using and initial centroids and .

20

Compare linear regression, KNN, decision trees, random forests, and K-means in terms of learning type, output, and suitable applications.