0
$\begingroup$

As discussed here, In most cases, bin a continuous variable to discrete one is a bad idea. But when it will be good?

May attempt to answer:

  • Can I think binning will increase the variance of the model? As suggested in this post? Should we bin continuous variables?

  • If a variable has some extreme outliers or lots noise (say, income, there are persons make billions, and some data points are incorrect collected and shown as 0), binning might be better?

$\endgroup$
  • $\begingroup$ none linear relationships? :) $\endgroup$ – Richard Hardy Nov 14 '16 at 13:50
  • $\begingroup$ See What is the benefit of breaking up a continuous predictor variable?. A brief riposte to your 2nd point is here: stats.stackexchange.com/questions/68834/… $\endgroup$ – Scortchi - Reinstate Monica Nov 14 '16 at 14:17
  • $\begingroup$ Didn't you ask this before: stats.stackexchange.com/questions/230750/… ? $\endgroup$ – Matthew Drury Nov 14 '16 at 15:00
  • 1
    $\begingroup$ Heh. Occasionally I find an answer and think "What, that's so wrong!" and then I scroll down, and it's me from a year ago. $\endgroup$ – Matthew Drury Nov 14 '16 at 15:02
  • 1
    $\begingroup$ Binning, taken to an extreme, puts all data into a single category--which obviously has no variance. Therefore binning decreases variance; it does not increase it. However, if you are referring to the variance of the error in a regression model, then binning a regressor (assuming the bins continue to be treated numerically rather than as factors) typically will increase the error variance because it destroys the (presumed) linear relationship between regressor and response, introducing "noise." $\endgroup$ – whuber Nov 14 '16 at 17:16