Skip to main content
replaced http://stats.stackexchange.com/ with https://stats.stackexchange.com/
Source Link

When should we discretize/bin independent variables/features and when should not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?What is the benefit of breaking up a continuous predictor variable?

When should we discretize/bin independent variables/features and when should not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

When should we discretize/bin independent variables/features and when should not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

edited tags; edited title
Source Link
ttnphns
  • 58.8k
  • 53
  • 286
  • 511

When should we discretize/binningbin continuous independent variables  / featuresfeatures and when should not?

When should we discretize/binningbin independent variables  / featuresfeatures and when should not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

When should we discretize/binning continuous independent variables  / features and when not?

When should we discretize/binning independent variables  / features and when not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

When should we discretize/bin continuous independent variables/features and when should not?

When should we discretize/bin independent variables/features and when should not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

deleted 174 characters in body
Source Link
Haitao Du
  • 37.3k
  • 25
  • 148
  • 244

When should we discretize/binning independent variables / features and when not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


  • I thought this question should be asked many times but I cannot find it in CV only these posts

I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

  • Thanks for the great answer by Alexis. In addition, Is there any publications on "machine learning" that empirically compare bin vs not bin on many real world data set?

When should we discretize/binning independent variables / features and when not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


  • I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

  • Thanks for the great answer by Alexis. In addition, Is there any publications on "machine learning" that empirically compare bin vs not bin on many real world data set?

When should we discretize/binning independent variables / features and when not?

My attempts to answer the question:

  • In general, we should not bin, because binning will lose information.
  • Binning is actually increasing the degree of freedom of the model, so, it is possible to cause over-fitting after binning. If we have a "high bias" model, binning may not be bad, but if we have a "high variance" model, we should avoid binning.
  • It depends on what model we are using. If it is a linear mode, and data has a lot of "outliers" binning probability is better. If we have a tree model, then, outlier and binning will make too much difference.

Am I right? and what else?


I thought this question should be asked many times but I cannot find it in CV only these posts

Should we bin continuous variables?

What is the benefit of breaking up a continuous predictor variable?

added 44 characters in body
Source Link
Haitao Du
  • 37.3k
  • 25
  • 148
  • 244
Loading
Tweeted twitter.com/StackStats/status/766761185962233857
added 73 characters in body
Source Link
Haitao Du
  • 37.3k
  • 25
  • 148
  • 244
Loading
added 27 characters in body; edited title
Source Link
Haitao Du
  • 37.3k
  • 25
  • 148
  • 244
Loading
deleted 21 characters in body
Source Link
Haitao Du
  • 37.3k
  • 25
  • 148
  • 244
Loading
Source Link
Haitao Du
  • 37.3k
  • 25
  • 148
  • 244
Loading