Equal-width binning
Equal-width binning divides the range of a numeric variable into a chosen number of bins, each covering the same interval. It is also called equidistant or equal-interval binning, and is the binning used in a histogram.
Example
For illustration, monthly incomes from $1,000 to $8,800 can be grouped into four $2,000-wide bands, from $1,000 to $3,000 through $7,000 to $9,000. The bands cover equal ranges, even though they contain different numbers of applicants.
Calculate equal-width bins with a lending example
For the twenty applicant incomes, choose four bins. The minimum is $1,000 and the maximum is $8,800, so the exact width is ($8,800 − $1,000) ÷ 4 = $1,950. For readable bands, round to $2,000 and set edges at $1,000, $3,000, $5,000, $7,000 and $9,000.
Place each income in the interval that contains it. For example, include the lower edge and exclude the upper edge, with the final bin closed. An income exactly on an interior edge then goes into the band that begins there. The resulting counts are 9, 7, 3 and 1.
Equal-width and equal-frequency bins compared
Equal-width bins keep the value range per bin constant. Equal-frequency bins keep about the same number of values in each bin, so their ranges differ. Equal-frequency bins can suit analyses that need similar counts in each group.
Income can be skewed, leaving few values in the higher equal-width bins. An outlier stretches the range and can leave bins sparse or empty. Capping extreme values first or using a log scale reduces this effect.
Equal-width bins provide round, stable edges for histograms and reports, and for comparing a variable across months or samples on fixed edges. In scorecard fine classing, equal-frequency bins usually start the analysis because each bin needs enough goods and bads to estimate a weight of evidence.
Questions we get asked
How do outliers affect equal-width binning?
An outlier stretches the data range, which makes every equal-width bin wider and can leave some bins sparse or empty. Capping extreme values first or using a log scale reduces this effect.
Can equal-width binning be used for categorical variables?
Equal-width binning applies to numeric variables, whose values lie on a numeric range. It does not describe how to group text categories.
Is equal-width binning suitable for scorecard development?
It can leave some fine classes with too few cases to estimate a weight of evidence. Scorecard development usually starts with equal-frequency bins so each bin has enough goods and bads.
The information value calculator accepts typed or pasted goods and bads counts for up to twenty bins, including equal-width bands.