In linear regression, all independent variables must be numeric.

Prepare for the Data Mining Test with our comprehensive quizzes. Practice with various question types, each with hints and explanations. Boost your understanding and ensure success on your exam!

Multiple Choice

In linear regression, all independent variables must be numeric.

Explanation:
Linear regression models the target as a weighted sum of the predictors: y = beta0 + beta1*x1 + ... + betap*xp. For this to work, each predictor must be numeric so you can multiply it by its coefficient and add it to the rest of the terms. Categorical predictors are not numbers in their raw form, so they can’t enter the model directly; they must be converted into numeric indicators through encoding (for example, one-hot). Binary variables are naturally numeric (0 or 1) and fit directly as predictors. Text data isn’t numeric either and needs to be transformed into numeric features via vectorization before inclusion. Because the question asks for the general requirement, numeric predictors is the correct framing, making the option Numeric the best choice.

Linear regression models the target as a weighted sum of the predictors: y = beta0 + beta1x1 + ... + betapxp. For this to work, each predictor must be numeric so you can multiply it by its coefficient and add it to the rest of the terms. Categorical predictors are not numbers in their raw form, so they can’t enter the model directly; they must be converted into numeric indicators through encoding (for example, one-hot). Binary variables are naturally numeric (0 or 1) and fit directly as predictors. Text data isn’t numeric either and needs to be transformed into numeric features via vectorization before inclusion. Because the question asks for the general requirement, numeric predictors is the correct framing, making the option Numeric the best choice.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy