Skip to Content

Equal Distance

Context

Equal Distance is one of the Automatic Discretization algorithms for Continuous variables in Step 4 — Discretization and Aggregation of the Data Import Wizard.

Algorithm details & recommendations

The Equal Distance algorithm computes equal intervals based on the range of the variable. This method is particularly useful for discretizing variables that share the same variation domain (e.g., satisfaction measures in surveys). Additionally, this method is suitable for obtaining a discrete representation of the density function. However, the Equal Distance algorithm is extremely sensitive to outliers and can generate intervals that do not contain any data points. Please see the Normalized Equal Distance algorithm, which addresses this particular issue.

Loading SVG...

Each dot represents one observation. Dividing the range from 0 to 12 into thirds gives bins that are four units wide.

Loading SVG...

Change only the largest observation, from 12 to 36. Each bin now spans 12 units. Eleven observations fall in the first bin and the middle bin is empty.