Having a lot of categorical features and other numerics why we need to transform the categorical to binary values? Is it for using the values in mathematics functions of the algorithms?
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.Sign up to join this community
You need to transfer the categorical variable to numerical to feed to the model and then comes the real question, why we convert it the way we do. We convert an n level of the categorical variable to n-1 dummy variables. There are two main reasons for it:
Do avoid the collinearity into the created dummy variables