TK Study

Multiple choice › ML algorithms

ML algorithms

1. ML algorithms

Which problem is BEST solved with linear regression?

  1. Predicting the winner of a two-party election
  2. Deciding whether an email is spam
  3. Predicting the price of a house from its floor area
  4. Deciding whether a student is admitted to a course
Answer

C

Linear regression predicts a continuous numeric value. The other three are yes/no classifications (logistic regression). 2025 Q12 tested this.

2. ML algorithms

Logistic regression is most appropriate for:

  1. Predicting a binary outcome such as pass/fail
  2. Grouping unlabelled data
  3. Compressing images
  4. Predicting a continuous value such as temperature
Answer

A

Despite its name, logistic regression is a classification method that outputs a probability for a category (usually two).

3. ML algorithms

K-nearest neighbour (KNN) classifies a new item by:

  1. Looking at the labels of the K closest examples in the training data
  2. Randomly choosing a label
  3. Drawing a straight line through all the data
  4. Removing all labelled data
Answer

A

KNN is a supervised algorithm: the majority label of the K nearest neighbours is used. It is not a clustering algorithm (school notes say 'clustering such as KNN' which is incorrect).

4. ML algorithms

Polynomial regression is useful when:

  1. There are no numeric inputs
  2. The outcome must be yes or no
  3. The relationship between the variables is curved rather than a straight line
  4. The data is unlabelled
Answer

C

Polynomial regression fits a curve (x squared, x cubed...) to numeric data; it is still used to predict numeric values.