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 MCQs Machine learning algorithms

ECAP776 60 questions. Pick an option to check it.

Read the notes Subjective questions

0 of 60 answered 0 right 0 wrong , 60 left

  1. Question 1 of 60 Linear regression Easy

    What type of value does linear regression usually predict?

  2. Question 2 of 60 Linear regression Easy

    What does a simple linear regression model fit to the data?

  3. Question 3 of 60 Linear regression Easy

    In the equation , what does represent?

  4. Question 4 of 60 Linear regression Easy

    Which measure is commonly minimized when fitting a linear regression model?

  5. Question 5 of 60 K-nearest neighbours Easy

    What does the in K-nearest neighbours represent?

  6. Question 6 of 60 K-nearest neighbours Easy

    How does K-nearest neighbours commonly classify a new data point?

  7. Question 7 of 60 K-nearest neighbours Easy

    Which calculation is commonly used to find nearest neighbours?

  8. Question 8 of 60 K-nearest neighbours Easy

    Why are features often scaled before applying K-nearest neighbours?

  9. Question 9 of 60 Decision trees Easy

    What does an internal node in a decision tree usually represent?

  10. Question 10 of 60 Decision trees Easy

    What does a leaf node in a classification tree usually provide?

  11. Question 11 of 60 Decision trees Easy

    Which structure best describes a decision tree?

  12. Question 12 of 60 Decision trees Easy

    What is pruning used for in a decision tree?

  13. Question 13 of 60 Random forests Easy

    A random forest is mainly made up of multiple what?

  14. Question 14 of 60 Random forests Easy

    How does a random forest commonly make a classification prediction?

  15. Question 15 of 60 Random forests Easy

    Why is randomness introduced when building a random forest?

  16. Question 16 of 60 Random forests Easy

    Compared with one deep decision tree, a random forest often helps reduce what?

  17. Question 17 of 60 K-means clustering Easy

    What type of machine learning algorithm is K-means?

  18. Question 18 of 60 K-means clustering Easy

    What does represent in K-means clustering?

  19. Question 19 of 60 K-means clustering Easy

    What is a centroid in K-means clustering?

  20. Question 20 of 60 K-means clustering Easy

    How is a data point commonly assigned to a cluster in K-means?

  21. Question 21 of 60 Linear regression Medium

    A fitted linear regression model is . What prediction does it make when ?

  22. Question 22 of 60 Linear regression Medium

    A linear regression model is trained by minimizing mean squared error. What is the most likely effect of adding one extreme response-value outlier?

  23. Question 23 of 60 Linear regression Medium

    The relationship between two variables is . If the feature is transformed to , which equation expresses in terms of ?

  24. Question 24 of 60 Linear regression Medium

    A developer standardizes features before fitting linear regression and then evaluates the model on a test set. Which procedure best prevents data leakage?

  25. Question 25 of 60 K-nearest neighbours Medium

    Using Euclidean distance, which training point is nearest to the query point ?

  26. Question 26 of 60 K-nearest neighbours Medium

    A K-nearest neighbours classifier overfits noisy training data when . What is the most appropriate adjustment?

  27. Question 27 of 60 K-nearest neighbours Medium

    For a query sample, the five nearest neighbours have class labels A, B, A, B, and A. With uniform voting, what class is predicted?

  28. Question 28 of 60 K-nearest neighbours Medium

    A K-nearest neighbours model uses age values from 18 to 70 and annual income values from 20,000 to 200,000. Why should these features usually be scaled?

  29. Question 29 of 60 Decision trees Medium

    A node contains six samples from class A and four from class B. What is its Gini impurity?

  30. Question 30 of 60 Decision trees Medium

    A decision tree achieves 100% training accuracy but much lower validation accuracy. Which change is most likely to improve generalization?

  31. Question 31 of 60 Decision trees Medium

    A decision-tree node tests whether temperature <= 20. A sample has temperature = 20. Which branch does it follow?

  32. Question 32 of 60 Decision trees Medium

    What is the likely effect of increasing min_samples_leaf when training a decision tree?

  33. Question 33 of 60 Random forests Medium

    Which training strategy is central to a random forest?

  34. Question 34 of 60 Random forests Medium

    How does a random forest typically produce a final classification prediction?

  35. Question 35 of 60 Random forests Medium

    What are out-of-bag samples for a particular tree in a random forest?

  36. Question 36 of 60 Random forests Medium

    Why does averaging many relatively uncorrelated decision trees often improve predictions?

  37. Question 37 of 60 K-means clustering Medium

    Two K-means centroids are and . Using Euclidean distance, to which centroid is the point assigned?

  38. Question 38 of 60 K-means clustering Medium

    A K-means cluster contains the points , , and . What centroid is computed during the update step?

  39. Question 39 of 60 K-means clustering Medium

    Which quantity does standard K-means attempt to minimize?

  40. Question 40 of 60 K-means clustering Medium

    A dataset has one feature measured from 0 to 1 and another from 0 to 100,000. What should usually be done before applying K-means?

  41. Question 41 of 60 Linear regression Hard

    A simple linear regression with an intercept gives , , and slope . Define and . If is regressed on with an intercept, what are the new intercept and slope?

  42. Question 42 of 60 Linear regression Hard

    The true population model is , where , , and is uncorrelated with both predictors. What is the population slope when is regressed only on ?

  43. Question 43 of 60 Linear regression Hard

    In an ordinary least-squares model, observation has , fitted value , and leverage . Without refitting the model directly, what is its leave-one-out predicted value ?

  44. Question 44 of 60 Linear regression Hard

    A regression with an intercept contains predictors satisfying exactly. If the uniquely estimable fitted linear effect is , which condition characterizes every coefficient pair producing those fitted values?

  45. Question 45 of 60 K-nearest neighbours Hard

    A 1-NN classifier uses Euclidean distance. For query , the two training points are of class A and of class B. What happens if the second feature is multiplied by for both training and query data?

  46. Question 46 of 60 K-nearest neighbours Hard

    A distance-weighted 4-NN classifier assigns each neighbour weight . The neighbours have labels and distances A at , A at , B at , and B at . Which class is predicted?

  47. Question 47 of 60 K-nearest neighbours Hard

    Two points are independently sampled from the uniform distribution on . As increases, what happens to the coefficient of variation of their squared Euclidean distance?

  48. Question 48 of 60 K-nearest neighbours Hard

    An inverse-distance KNN classifier encounters three training samples exactly at the query: two have class B and one has class A. Other nonzero-distance neighbours have class A. Under the standard zero-distance safeguard, what should it predict?

  49. Question 49 of 60 Decision trees Hard

    A binary-class node contains 6 positive and 4 negative samples. A candidate split creates a pure left child containing 4 positives and a right child containing 2 positives and 4 negatives. What is the Gini impurity decrease?

  50. Question 50 of 60 Decision trees Hard

    A balanced dataset has two independent binary features and target , with every input combination equally represented. A tree algorithm refuses splits having zero immediate information gain. What model does it learn at the root?

  51. Question 51 of 60 Decision trees Hard

    Three candidate subtrees have training misclassification rates and leaf counts , , and . Which subtree minimizes the cost-complexity objective when ?

  52. Question 52 of 60 Decision trees Hard

    A continuous feature is replaced by a strictly increasing transformation of itself before training an exact greedy decision tree. Assuming no missing values and deterministic tie handling, what is preserved?

  53. Question 53 of 60 Random forests Hard

    Each tree in a random forest draws training observations with replacement from a dataset of size . As , what fraction of observations is expected to be out-of-bag for a particular tree?

  54. Question 54 of 60 Random forests Hard

    Individual trees have prediction variance , and every pair of trees has prediction correlation . Assuming equal variance and covariance, what is the variance of the average prediction from 100 trees?

  55. Question 55 of 60 Random forests Hard

    A dataset contains one very strong predictor and many weak predictors. What is the likely effect of setting max_features equal to the total number of predictors at every split?

  56. Question 56 of 60 Random forests Hard

    Which statement best compares impurity-based feature importance with held-out permutation importance in a random forest?

  57. Question 57 of 60 K-means clustering Hard

    A K-means cluster contains the points , , and . After updating its centroid optimally, what is this cluster's within-cluster sum of squared errors?

  58. Question 58 of 60 K-means clustering Hard

    For the one-dimensional points , what is the minimum possible K-means objective when ?

  59. Question 59 of 60 K-means clustering Hard

    A feature in a K-means dataset is multiplied by without changing other features. How does that feature's contribution to every squared Euclidean distance change?

  60. Question 60 of 60 K-means clustering Hard

    During K-means++ initialization in one dimension, the first center is at . The remaining candidate observations are at , , and , each occurring once. What is the probability that is selected as the next center?

That's unit 14

Answer a few questions and your score shows up here.