rouaamakki7902 rouaamakki7902
  • 26-02-2020
  • Computers and Technology
contestada

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?

Respuesta :

kollybaba55 kollybaba55
  • 27-02-2020

Answer:

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.

Answer Link

Otras preguntas

help please .........​
2. What are some problems that Jim wants to expose about the Nike company?
ANSWER FAST AND GET 20 POINTS!!!
PLEASE HELP DUE TODAY!!What is the value of x? (Hint: Write and equation to help you solve) 30° 4x Hint: How many degrees is the sum of complementary angles? 45
Find out what X equals 0=x-8
Hello can someone please help me with these math estimates I would really appreciate it.
Demarco tells a colleague about a major prospect he plans to call on in the next few days and asks the colleague to pretend to be a customer while he makes his
what does a triangle have to do with your mental health?
what would be the slope intercept form for (-2, - 8) ( 1, 4)​
What legislation was passed in 1964 as a result of the march on washington.