Answer :

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.

Other Questions