Ask Question
18 December, 15:17

You are using ""state"" a categorical variable in your linear regression model with 50 possible values. How many variables will this variable ""state"" should be expanded for your model?

+5
Answers (1)
  1. 18 December, 17:38
    0
    49

    Explanation:

    Categorical variables are variables that take on values that are names or labels. They are not numerical, they contain a finite number of categories.

    In this exercise, i will first convert "state" into a dummy variable, and use one hot encoding that uses one column for each value to compare all other values and produce estimates for n-1 states which in this case is 50-1 = 49.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You are using ""state"" a categorical variable in your linear regression model with 50 possible values. How many variables will this ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers