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

can you tell me what is a mandolin?
A 1.0 kg book is lifted 0.5 m above the table , but the table is 1.0 m above the floor , what would be the P.E of the book if the reference level where the flo
find the value of x , if log₂ [log₅ (log₃x)] = 0
2x2 + 6x + 5 = 0 what are the real roots for the quadratic equation
What are 3 things an Apple, Knife and Mirror have in common?
State a true conclusion. 1) If you accept the hypothesis, then you accept the conclusion. 2) You accept the conclusion. Conclusion: ?
show that at least 3 of any 25 days chosen must fall in the same month of the year.please halp!
A ball of mass 2 kg is kept on the hill of height 3 km. Calculate the potential energy possessed by it ?How can I get the potential energy ?
Two numbers add to 251 and the second is 41 bigger then the first. what are the two numbers?
why oxygen important in your body?