Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 14 subjective questions Machine learning algorithms

ECAP776 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

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

  2. Question 2 of 20

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

  3. Question 3 of 20

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

  4. Question 4 of 20

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

  5. Question 5 of 20

    Explain how the K-nearest neighbours algorithm performs classification.

  6. Question 6 of 20

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

  7. Question 7 of 20

    Distinguish between KNN classification and KNN regression.

  8. Question 8 of 20

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

  9. Question 9 of 20

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

  10. Question 10 of 20

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

  11. Question 11 of 20

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

  12. Question 12 of 20

    Explain how a regression tree selects splits and produces predictions.

  13. Question 13 of 20

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

  14. Question 14 of 20

    Compare a single decision tree with a random forest.

  15. Question 15 of 20

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

  16. Question 16 of 20

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

  17. Question 17 of 20

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

  18. Question 18 of 20

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

  19. Question 19 of 20

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

  20. Question 20 of 20

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

That's unit 14

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.