You work as a machine learning specialist for a company that runs a car rating website.
Your company wants to build a price prediction model that is more accurate than their current model, which is a linear regression model using the age of the car as the single independent variable in the regression to predict the price.
You have decided to add the horsepower, fuel type, city mpg (miles per gallon), drive wheels, and a number of doors as independent variables in your model.
You believe that adding these additional independent variables will give you a more accurate prediction of price. Which type of algorithm will you now use for your prediction?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: D.
Option A is incorrect.
Logistic regression is used for problems where you are trying to classify and estimate a discrete value (on or off, 1 or 0) based on a set of independent variables.
In your problem, you are trying to estimate a continuous numerical value: price, not a binary classification.
Option B is incorrect.
A decision tree can be used as a classification algorithm or a regression algorthm, however, this problem involves multiple independent variables which leads us to the more relevant answer: Multivariate Regression.
Option C is incorrect.
Naive Bayes is another classification algorithm, so it is not a good fit for your continuous numerical value prediction problem.
Option D is correct.
You are trying to predict the price of a car (dependent variable) based on a number of independent variables (horsepower, fuel type, city mpg, drive wheels, and a number of doors, etc.) The Multivariate Regression algorithm is the best choice for this type of problem.
(See the article Data Science Simplified Part 5: Multivariate Regression Models)
Reference:
Please see the Amazon Machine Learning developer guide titled Regression Model Insights, and the article titled Commonly Used Machine Learning Algorithms (with Python and R codes)
The appropriate algorithm for the price prediction model will be multivariate regression because it can handle multiple independent variables simultaneously to predict the dependent variable, which is price in this case. Multivariate regression can determine the relationship between the dependent variable and multiple independent variables.
The linear regression model that the company currently uses only uses the age of the car as the independent variable to predict the price. However, adding more independent variables, such as horsepower, fuel type, city mpg, drive wheels, and number of doors, will provide more information and increase the accuracy of the prediction. The multivariate regression model can take into account the effects of these additional variables on price, providing a more complete picture of the relationship between the independent variables and the dependent variable.
Logistic regression is used for binary classification problems, where the outcome is either 0 or 1. Decision trees are used for both regression and classification problems but are best suited for categorical or discrete data, which may not be the case for the car rating website. Naive Bayes is used for text classification and spam filtering.
Therefore, the appropriate algorithm for the price prediction model for the car rating website would be multivariate regression.