Implications of Different Encodings of Binned Data when Clustering

Abstract When using clustering to uncover patterns in a dataset, a data analyst must make several decisions. In some cases, one of those decisions is how to handle binned data (e.g., age or income bands), which is a common data type collected in surveys. When clustering, it is possible to encode this variable as a nominal, ordinal, or interval-scaled variable (e.g., using the bin’s midpoint), and it is not clear which of these encodings, if any, should be preferred over others. We examined the impacts of these encodings on clustering results obtained from four clustering algorithms: partitioning around medoids (PAM) with Gower’s distance, K-prototypes, a latent class model, and KAMILA, on several simulated datasets and three household finance survey datasets from North America. We found that the optimal encoding varies depending on the clustering algorithm. We recommend the nominal encoding for latent class models, the ordinal encoding for K-prototypes and KAMILA (although the results were less definitive for these two), and the midpoint encoding for PAM.

Authors

Institutions

Publication Details

Journal
Journal of Classification
Published
2025-12-03
DOI
https://doi.org/10.1007/s00357-025-09522-5
Primary Topic
Bayesian Methods and Mixture Models
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Implications of Different Encodings of Binned Data when Clustering

Nathan Phelps
Journal of Classification
Bayesian Methods and Mixture Models
article

Implications of Different Encodings of Binned Data when Clustering

Nathan Phelps
article en

Abstract

Abstract When using clustering to uncover patterns in a dataset, a data analyst must make several decisions. In some cases, one of those decisions is how to handle binned data (e.g., age or income bands), which is a common data type collected in surveys. When clustering, it is possible to encode this variable as a nominal, ordinal, or interval-scaled variable (e.g., using the bin’s midpoint), and it is not clear which of these encodings, if any, should be preferred over others. We examined the impacts of these encodings on clustering results obtained from four clustering algorithms: partitioning around medoids (PAM) with Gower’s distance, K-prototypes, a latent class model, and KAMILA, on several simulated datasets and three household finance survey datasets from North America. We found that the optimal encoding varies depending on the clustering algorithm. We recommend the nominal encoding for latent class models, the ordinal encoding for K-prototypes and KAMILA (although the results were less definitive for these two), and the midpoint encoding for PAM.

Journal of ClassificationVol. 43(1)
Western University (CA)
Natural Sciences and Engineering Research Council of Canada
Openalex Percentile: Top 80%
Bayesian Methods and Mixture Models
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.