# Optimal binning: mathematical programming formulation

arXiv: https://arxiv.org/abs/2001.08025 · HTML: https://mlsanity.com/paper/2001.08025/

## Key facts

- Cited by 9 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 22 Jan 2020.

## Built on by (most cited first, 9 of 9)

- [Learning Optimal Predictive Checklists](https://mlsanity.com/paper/2112.01020/) (2021)
- [Optimal Counterfactual Explanations for Scorecard modelling](https://mlsanity.com/paper/2104.08619/) (2021)
- [Powering In-Database Dynamic Model Slicing for Structured Data Analytics](https://mlsanity.com/paper/2405.00568/) (2024)
- [PiML Toolbox for Interpretable Machine Learning Model Development and Diagnostics](https://mlsanity.com/paper/2305.04214/) (2023)
- [From Principle to Practice: Vertical Data Minimization for Machine Learning](https://mlsanity.com/paper/2311.10500/) (2023)
- [Less Discriminatory Alternative and Interpretable XGBoost Framework for Binary Classification](https://mlsanity.com/paper/2410.19067/) (2024)
- [Statistical Hypothesis Testing for Information Value (IV)](https://mlsanity.com/paper/2309.13183/) (2023)
- [A machine learning workflow to address credit default prediction](https://mlsanity.com/paper/2403.03785/) (2024)
- [Optimal Multi-way Decision Trees for Stratified Sampling in Online Controlled Experiments](https://mlsanity.com/paper/2609.23308/) (2026)

## Abstract (arXiv)

The optimal binning is the optimal discretization of a variable into bins given a discrete or continuous numeric target. We present a rigorous and extensible mathematical programming formulation for solving the optimal binning problem for a binary, continuous and multi-class target type, incorporating constraints not previously addressed. For all three target types, we introduce a convex mixed-integer programming formulation. Several algorithmic enhancements, such as automatic determination of the most suitable monotonic trend via a Machine-Learning-based classifier and implementation aspects are thoughtfully discussed. The new mathematical programming formulations are carefully implemented in the open-source python library OptBinning.
