Ask Question

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?

+4
Answers (1)
  1. 4 June, 06: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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers