University of Auckland · FACULTY OF STATISTICS

BUSINFO700 Chap.8 Cluster Analysis for Customer Segmentation

- one subject, every graph, every model, every mark
6 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 8 of 9 · BUSINFO700

Cluster Analysis for Customer Segmentation

This chapter shows how k-means cluster analysis turns a varied customer base into a few segments a business can act on. It contrasts segmentation by one or two manager-chosen cut-offs with data-driven segmentation across several variables, and explains why the method counts as unsupervised machine learning.

The core mechanics are Euclidean distance, nearest-centre assignment and the need to standardise variables so that the widest-ranging one does not dominate. A worked example shows a distance changing completely once two variables are scaled. You will choose the number of clusters with average silhouette scores and the course's quality bands, then apply analyst judgement on statistical, visual and business grounds.

The chapter ends with profiling: frequencies for cluster sizes, chi-square for categorical traits, ANOVA with Levene and post-hoc tests for metric ones, and naming each segment from its profile. Cluster analysis is taught in Week 7, after the November test, so this chapter is not part of the test scope.

In this chapter

What this chapter covers

  • 01

    Cut-off segmentation versus data-driven segments

  • 02

    Euclidean distance and nearest-centre assignment

  • 03

    Standardising variables with scale()

  • 04

    Choosing k with silhouette scores

  • 05

    Analyst judgement on statistical, visual and business grounds

  • 06

    Profiling and naming clusters

Worked example · free

Assign a new member to the nearest cluster centre

Q [4 marks]. AskSia-authored practice. A café chain has clustered members on standardised visits per month and spend per visit. The cluster centres are regulars at (1.2, −0.9), treat seekers at (−1.0, 1.3) and drifters at (−0.4, −0.6). A new member scores (0.5, −0.8). Use Euclidean distance to decide which cluster k-means would assign the new member to. The marks shown are an AskSia study allocation, not an official University marking scheme.
Three clusters of café membersNine members plotted on standardised visits per month and spend per visit form three clusters with crosses at their centres: regulars at high visits and low spend, treat seekers at low visits and high spend, and drifters below average on both. A new member at 0.5 and minus 0.8 lies nearest the regulars centre.Visits (z)Spend per visit (z)RegularsTreat seekersDriftersNew member
Nine café members are plotted on standardised visits per month and spend per visit, coloured by cluster, with a cross at each cluster centre; the new member, shown as a square, sits nearest the regulars centre, so k-means would assign it there.
  • 1Distance to regulars = √((0.5 − 1.2)² + (−0.8 + 0.9)²) = √(0.49 + 0.01) = √0.50 = 0.71.
  • 1Distance to treat seekers = √((0.5 + 1.0)² + (−0.8 − 1.3)²) = √(2.25 + 4.41) = √6.66 = 2.58.
  • 1Distance to drifters = √((0.5 + 0.4)² + (−0.8 + 0.6)²) = √(0.81 + 0.04) = √0.85 = 0.92.
  • 1The smallest distance is 0.71, so the new member joins the regulars cluster: more visits than average and below-average spend per visit.
The new member is 0.71 from the regulars centre, 0.92 from the drifters centre and 2.58 from the treat seekers centre, so k-means assigns the member to the regulars. Because the drifters centre is not much further away, the member is a borderline case worth watching as more visits are recorded.
Sia tip — Compute every distance in the same standardised units; mixing raw and scaled values makes the comparison meaningless.
Glossary

Key terms

Market segmentation
Dividing a varied market into smaller groups of customers with similar needs so that each group can be served differently.
Euclidean distance
The straight-line gap between two observations, found as the square root of their summed squared differences across variables.
Cluster centre
The average position of a cluster's members on every clustering variable, recalculated as k-means reassigns observations.
Silhouette score
A value up to 1 comparing how close an observation is to its own cluster against the nearest other cluster.
Cluster profiling
Describing each segment after clustering by comparing its size and characteristics with frequencies, chi-square and ANOVA.
FAQ

Cluster Analysis for Customer Segmentation FAQ

Why must variables be standardised before k-means?

k-means compares customers by Euclidean distance, so a variable measured on a wide range, such as annual spend in dollars, would swamp one on a narrow range, such as visits per month. Converting each variable to z-scores with scale() gives every variable an equal say in the distance.

How do I pick the number of clusters?

Run k-means for k from 2 to 8, average the silhouette scores for each solution and start from the highest. Then apply judgement: treat differences of about 0.01 as negligible and prefer fewer clusters, check the scatter plot for overlap, and confirm that every cluster is big enough to target.

What do the silhouette quality bands mean?

The course grades an average score of 0.71 to 1.00 as strong, 0.51 to 0.70 as reasonable, 0.26 to 0.50 as weak with some overlap, and anything below 0.25 as showing no meaningful structure. Weak solutions are common with real customer data and may still be useful if they make business sense.

What are the main limitations of k-means?

The number of clusters has to be fixed before running it, and the algorithm gives no guarantee of the best possible solution. Categorical variables need dummy coding or other distance measures, and every observation is forced into a cluster, so extreme outliers can distort the centres.

How are clusters profiled once they are found?

Treat cluster membership as a categorical variable. Report each cluster's share of customers with a frequency table, compare categorical traits across clusters with a cross-table and chi-square, and compare metric traits with ANOVA, a Levene test and the matching post-hoc procedure, wrapping cluster membership in factor().

Study strategy

Assessment move

Draw a small scatter plot by hand with eight or nine invented customers on two standardised variables, mark three centres and assign each point to its nearest centre by computing the distances. Then repeat one distance calculation on raw values with very different ranges to see why scaling matters. Write the k-means call from memory, including the seed and the number of random starts, and explain each argument in a sentence.

Practise reading a silhouette chart: name the peak, its quality band and whether a neighbouring k is close enough to prefer a simpler solution. Finally, take a cluster profile table you have built yourself and write one short paragraph per segment, giving it a name, its size and the two variables that most clearly separate it, and say which bivariate test supports each claim.

Close by explaining to an imaginary manager why one segment deserves its own campaign and another does not.

Working through Cluster Analysis for Customer Segmentation in BUSINFO700? Sia is AskSia’s AI Statistics tutor — ask any BUSINFO700 Cluster Analysis for Customer Segmentation question and get a clear, step-by-step explanation grounded in how BUSINFO700 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 32 of your University of Auckland subjects - and 1,000+ Bibles across every Australian university.
Sia - your BUSINFO700 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works