Glossary
customer segmentation
Customer segmentation groups buyers into clusters by spending behaviour so each group can be served and priced distinctly. Its standard teaching benchmark is the UCI Wholesale Customers dataset: 440 clients of a Portuguese distributor, annual spend across six product categories, with channel and region labels.
What is customer segmentation?
Segmentation turns a transaction log into named buyer groups. The canonical practice dataset is UCI Wholesale Customers (repository id 292), donated by Margarida Cardoso in March 2014: 440 rows x 8 columns covering annual spend in monetary units on Fresh, Milk, Grocery, Frozen, Detergents_Paper and Delicassen, plus two label columns - Channel (298 Horeca versus 142 Retail) and Region (Lisbon 77, Oporto 47, Other 316).
Those labels make it self-checking: PCA, k-means and hierarchical clustering exercises routinely recover the channel split from Detergents_Paper-versus-Fresh/Frozen spending patterns. Descriptive statistics ship with the data - Fresh ranges 3 to 112,151 with mean around 12,000 - and there are no missing values. It distributes as a 14.7 KB CSV under commercial delivery terms 4.0 with a required citation.
Why does customer segmentation matter when choosing a dataset?
Segmentation quality decides where margin leaks. Mislabelled segments misdirect promotions, credit limits and stock allocation, and bad input data produces confident-looking clusters that do not survive contact with next quarter.
- Labels are ground truth for validation. The UCI benchmark's 298 Horeca versus 142 Retail labels let you score unsupervised clusters against reality - demand equivalent labels from any vendor.
- Category choice shapes clusters. Six spend dimensions yield the classic channel separation; fewer or coarser categories may not, so audit feature coverage before trusting segments.
- Static snapshots age quickly. This 440-row file is a single annual snapshot from one Portuguese distributor - useful for method development, not for current market sizing.
How do you evaluate customer segmentation in a data source?
- Confirm one-row-per-customer grain. UCI documents exactly that - 440 customers x 8 columns; ask other sources to state their grain equally precisely.
- Demand labeled channels or regions. Channel (Horeca vs Retail) and Region (Lisbon, Oporto, Other) columns make validation possible; unlabeled spend matrices cannot be scored.
- Check category completeness. Six product categories spanning fresh food through detergents and delicatessen give clustering enough spread to separate behaviour.
- Verify licensing and citation terms. commercial delivery terms 4.0 with required citation Cardoso (2014/2013), DOI 10.24432/C5030X - free for any purpose with credit.
- Prefer programmatic access for teaching pipelines. fetch_ucirepo(id=292) pulls it directly into Python alongside the 14.7 KB CSV download.
Related terms
Entries that sit next to customer segmentation in this glossary:
Frequently asked questions
Which dataset is standard for learning customer segmentation?
The UCI Wholesale Customers dataset: 440 clients of a Portuguese wholesale distributor with annual spend across six categories plus Horeca/Retail channel and Lisbon/Oporto/Other region labels, distributed as a 14.7 KB CSV.
Why do clusters separate so cleanly in this dataset?
Retail clients concentrate spending in Grocery and Detergents_Paper while Horeca clients weight Fresh and Frozen, so k-means and hierarchical methods recover the labeled channel split reliably.
Can I use the dataset commercially?
Yes - it is commercial delivery terms 4.0 licensed, permitting sharing and adaptation for any purpose with credit to Cardoso (2013) in the UCI Machine Learning Repository.
Datasets containing this field
Datasets containing customer segmentation
6 datasets carry customer segmentation in the catalog. Open one, count the fields, judge for yourself.
BIS CPMI Red Book Statistics — Retail Payments, Currency and FMIs
FREQ · REP_CTY · MEASURE …+12 more
Companies House — Bulk Company Data (UK, SIC 46 Wholesale)
CompanyName · CompanyNumber · CompanyCategory …+17 more
data.gov — US federal open data catalog (wholesale trade)
title · organization · description …+5 more
Traffic Settled in the TARGET Services — ECB Monthly Statistics
Federal Reserve Payments Study – U.S. Noncash Payments Volumes and Trends
Noncash payment type · Number · Value …+6 more
Every listing shows the field dictionary, sample rows, and coverage before you commit. API, files, or your warehouse. Daily, weekly, or hourly.
Get sample rows