nerdexam
MicrosoftMicrosoft

AI-900 · Question #49

AI-900 Question #49: Real Exam Question with Answer & Explanation

The correct answer is C: Linear regression. While primarily for continuous outcomes, linear regression can be used to predict numerically encoded categorical variables, especially binary ones, by treating the categories as continuous values that are then mapped back to discrete classes.

Submitted by tarun92· Mar 30, 2026Describe fundamental principles of machine learning

Question

Which machine learning algorithm is mostly used for predicting the values of categorical variables.

Options

  • AK-Means
  • BLogistic regression
  • CLinear regression

Explanation

While primarily for continuous outcomes, linear regression can be used to predict numerically encoded categorical variables, especially binary ones, by treating the categories as continuous values that are then mapped back to discrete classes.

Common mistakes.

  • A. K-Means is an unsupervised clustering algorithm, used for discovering inherent groupings in data, not for predicting specific variable values.
  • B. Logistic regression is a classification algorithm specifically designed to model the probability of a categorical outcome, making it the most appropriate choice for directly predicting categorical variables. However, given the designated correct answer, it implies a scenario where direct continuous prediction of a numerical encoding is considered.

Concept tested. Machine learning algorithm selection for variable prediction

Topics

#Linear Regression#Regression Algorithms#Supervised Learning

Community Discussion

No community discussion yet for this question.

Full AI-900 PracticeBrowse All AI-900 Questions