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

a rectangular field has a perimeter of 500m and an area of 14400m2.  Find the lengths of the sides
The Afrikaners who settled in southern Africa traced their origin back to which European region? (A) England (B) Germany (C) Netherlands (D) France (E) Spain
Jonathan’s parents told him that for every 5 hours of homework or reading he completes, he will be able to play 3 hours of video games. His friend Lucas’s paren
A sample of iron has the dimesions of 2 cm x 3cm x 2cm. If the mass of this rectangular-shaped object is 94g, what is the densityof iron?
write the equation of the line, with the given properties,in slope intercept form.slope = - 3 through  (3,8)
What is 1/10 of .003=
how do you find the ratio of 11 days to 14 days
Find the speedExample:      396  miles in 6 hours
what bay cuts into and is almost completely surrounded by the Canadian shield?
How would I solve k-17=(-12)