6

I am applying logistic regression and I am using a mixture of continuous and binary features. My question would be how do you go about binary features when trying to normalize. I would very much appreciate any help.

Mojo Jojo
  • 69
  • 3

1 Answers1

2

Normalization means that you put your data in a particular range, often $0$ to $1$. If you have coded your binary variable with $0$ and $1$, you already have this property and do not need to do anything. If you use a different type of coding of your binary variable, such as $\pm 1$, then the usual $\dfrac{x_i - \min(x)}{\max(x) - \min(x)}$ should work.

If you have not coded your categories with numbers, your software does it under the hood, and the documentation should say how.

Dave
  • 62,186