
Ultimate access to all questions.
Which of the following best describes the role of linear regression and logistic regression in machine learning?
A
Linear regression is used to predict continuous variables, while logistic regression is used to predict categorical variables.
B
Linear regression is used for unsupervised learning, while logistic regression is used for supervised learning.
C
Linear regression is used for classification, while logistic regression is used for regression.
D
Both linear regression and logistic regression can be used for both classification and regression.
Explanation:
Linear regression is used to predict continuous variables, while logistic regression is used to predict categorical variables. Linear regression is a type of regression analysis that is used to predict a continuous target variable based on one or more input features. Logistic regression, on the other hand, is a classification algorithm that is used to predict a binary outcome (such as "yes" or "no") based on one or more input features.
Why other options are incorrect: