Free courses in AI, Data Science & Machine Learning Written lessons · Quizzes · Final exams
Future Data Academy
Log inGet started ↗
← Clustering and Unsupervised Learning
FREE LESSON PREVIEW

Scaling and stable segments

The decision

Customer segmentation uses visit counts and spending. Converting pounds to pence can change raw Euclidean clusters without changing behaviour. A cluster is a model-generated grouping, not a discovered identity or an automatic basis for consequential decisions.

Synthetic case data

customer,visits,spend
A,1,10
B,2,12
C,8,38
D,9,40

Work it through

Before reading the worked analysis, identify the unit of observation, required quantities and missing information. Write your own answer, including units and a limitation.

Worked analysis

Visits range 1–9 and spend 10–40. Pence changes the spend range from 30 to 3000 while visit range stays 8. Min-max scaling maps endpoints to 0 and 1: B becomes (.125,.0667) and C (.875,.9333). Other scaling choices may fit the purpose better. Fit and retain scaling parameters for later data. Repeated initialisations and resampled data help assess stability. Cluster numbers are arbitrary labels, so cluster 2 is not twice as valuable as cluster 1. Exclude numeric customer IDs whose distances lack behavioural meaning.

Independent challenge

Compare raw, min-max and standardised representations. Explain which pairs are near each other and why. Propose a low-risk use such as tutorial recommendations, plus a validation plan before any consequential application.

Acceptance checks

Record features, scaler parameters and random seeds. Evaluate stability and usefulness, not just a visually separated plot. Do not rank arbitrary labels.

Further reading

Official reference. This original academy exercise uses synthetic data; the reference provides background and does not endorse the academy.

Explore the full course →