Choosing a regression model

Report a typo

Imagine that you have several regression models to predict the value of the target attribute YY from two inputs, X1X_1 and X2X_2. You have the following dataset to evaluate them:

X1X_1 X2X_2 YY
-2 2 1.5
-1 1 1
0 0 0
1 -1 -0.5
2 2 9

Which model is the best in terms of the MSE score on the dataset above? If several models achieve the best performance, select all of them.

Hint

Input values as python lists:

X_1 = [-2, -1, 0, 1, 2]
X_2 = [2, 1, 0, -1, 2]
Y = [1.5, 1, 0, -0.5, 9]

To answer this question, first compute the predictions produced by each model. Then, compute the MSE score of each model by comparing the predicted values of the target with the real ones.

Select one or more options from the list
___

Create a free account to access the full topic