Binning — or discretization — groups a continuous column into a handful of ordered buckets, as the diagram above shows. Ages become age brackets; incomes become income bands. The detail smooths into ranges that are steadier and easier to read.
Note
Three Ways to Draw the Bins
| Method | How the edges are set |
|---|---|
| Equal-width | Same value range per bin — simple, but bins can be empty or crowded |
| Equal-frequency | Same count per bin (quantiles) — balanced, edges vary |
| Custom | Domain-driven cut points — most meaningful when they exist |
Equal-frequency (quantile) bins are a safe default because each bucket carries a similar number of rows.
When Binning Helps
- Taming outliers — extreme values fall into a top bucket instead of dominating
- Readability — 'high / medium / low' communicates faster than a raw number
- Capturing non-linear steps — thresholds where behavior changes abruptly
When It Hurts
Every bin edge throws away the differences inside it — two very different values in the same bucket become identical to the model. For most tree-based and linear models, binning a smooth relationship just discards signal.
Watch out
Binning in the SKARI Data Editor
The Data Editor builds binned columns as derived columns: choose the source column and the cut points or number of quantiles, preview the buckets, and keep the original alongside the binned version.
- Equal-width and quantile bins on any numeric column
- A distribution preview so you see how rows land in each bucket
- The binned column added as a tracked pipeline step, original preserved
Takeaway
Frequently Asked Questions
Equal-width or equal-frequency?
Equal-frequency is usually safer — it avoids near-empty bins when the data is skewed. Equal-width is fine for uniform data.
How many bins?
Few enough to be interpretable, many enough to keep signal — often 4 to 10. Preview the counts before deciding.
Does binning help tree models?
Rarely — trees already find their own thresholds. Binning is most useful for readability or for linear models needing a step effect.
Conclusion
Binning turns a continuous column into readable, robust groups — a real gain when interpretability or outlier resistance matters, and a quiet loss of signal when it doesn't. Choose the method, keep the original, and bin on purpose.
Takeaway
Feature Engineering
Binning among other derived features
Categorical Encoding
Encoding the groups you just made
Outlier Detection
The alternative to binning them away