Ask Question
15 September, 06:28

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?

+3
Answers (1)
  1. 15 September, 08:05
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers