index Introduction
Concepts, Techniques and Tools

Segmentation & Pattern Discovery

What groups or patterns exist?
Set 09 · Level 9 of the Analytics Ladder

Finding Natural Groups in Your Data

No predefined categories. No outcome variable. Just the question: what natural structures exist in this data?

9Analytics Ladder · Level 09 of 10

Sets 05 and 06 required a pre-defined outcome — a group to test, a class to predict. Set 09 is different. Segmentation and pattern discovery are unsupervised — there is no "correct answer" in the data to learn from. The algorithms find structure that the analyst did not specify in advance.

This is powerful but requires more judgement. The algorithm always finds clusters — whether they are real or coincidental. The analyst must decide whether the discovered structure is meaningful, stable, and actionable.

Unsupervised learning does not find the truth. It finds patterns. Whether those patterns mean something is your job to determine.
8
Techniques
K
Your Choice
number of clusters
Lift
Key Metric
association rules
4
Tools Covered
Technique 01

K-Means Clustering

Partitions data into K groups by minimising within-cluster variance. Fast and scalable. Requires specifying K in advance. Most widely used clustering algorithm.

Technique 02

Hierarchical Clustering

Builds a tree of nested clusters (dendrogram) without requiring K in advance. Agglomerative (bottom-up) is most common. Excellent for visualising structure and exploring natural groupings.

Technique 03

DBSCAN

Density-Based Spatial Clustering. Finds clusters of arbitrary shape and automatically identifies outliers as noise. No K required — number of clusters emerges from the data.

Technique 04

Cluster Profiling

Describing the characteristics of each cluster using summary statistics and visualisations. Turns mathematical output into business-actionable segment descriptions.

Technique 05

Association Rules (Apriori)

Finds co-occurrence rules in transactional data. "Customers who buy X also frequently buy Y." The foundation of market basket analysis and recommendation systems.

Technique 06

Market Basket Analysis

Specific application of association rules to purchase data. Identifies product combinations for cross-selling, promotions, and shelf placement decisions.

Technique 07

Elbow Method

Determines the optimal number of clusters K by plotting within-cluster sum of squares against K. The "elbow" point suggests where adding more clusters stops meaningfully improving fit.

Technique 08

Silhouette Analysis

Validates cluster quality. Silhouette score (−1 to +1) measures how similar each point is to its own cluster vs the nearest other cluster. Higher is better.

⚠ Clustering always produces clusters

K-means will always produce exactly K clusters regardless of whether natural groups exist in the data. The algorithm has no way to tell you "there are no meaningful groups here." Always validate: do the clusters replicate on different samples? Do they predict outcomes the business cares about? Do they make business sense? Clustering is hypothesis-generating — not conclusion-confirming.

Technique 01 · 07 · Elbow Method

K-Means Clustering

The most widely used segmentation technique. Fast, scalable, and intuitive — but requires you to specify the number of clusters.

How K-Means Works

01
Choose K and initialise
Specify the number of clusters K. The algorithm randomly places K centroids (centre points) in the data space.
02
Assign each point to the nearest centroid
Every observation is assigned to the cluster whose centroid is closest (using Euclidean distance). This creates K initial clusters.
03
Recalculate centroids
Move each centroid to the mathematical centre (mean) of all the points currently assigned to it.
04
Repeat until stable
Repeat steps 2–3 until assignments stop changing (convergence). The algorithm has found a locally optimal solution.
Important — K-means requires standardisation

K-means uses Euclidean distance. If one variable is measured in thousands of dollars and another is a 1–5 rating, the dollar variable will dominate the clustering simply because of its larger scale. Always standardise all variables to mean=0 and standard deviation=1 before running K-means. In Python: StandardScaler(). In SPSS: Z-scores transformation before clustering.

The Elbow Method — Choosing K

The elbow method runs K-means for K = 1, 2, 3 ... n and plots the Within-Cluster Sum of Squares (WCSS) — how compact the clusters are. As K increases, WCSS always decreases. The optimal K is where the curve bends — adding more clusters beyond this point gives diminishing returns.

Business Example
Retail Customer Segmentation

A retailer uses K-means on 50,000 customers using three variables: total annual spend, purchase frequency, and average basket size. All three are standardised. The elbow plot shows a clear bend at K=4 — four natural customer segments emerge.

The four clusters are profiled and labelled: Cluster 1 (high spend, high frequency, large basket) = "Champions" · Cluster 2 (high spend, low frequency, very large basket) = "Big Occasion Shoppers" · Cluster 3 (medium spend, high frequency, small basket) = "Regular Convenience Shoppers" · Cluster 4 (low spend, low frequency, small basket) = "Occasional Browsers"

Each segment receives a different marketing strategy: Champions get loyalty rewards, Big Occasion Shoppers get event promotions, Regular Convenience Shoppers get subscription offers, Occasional Browsers get re-engagement campaigns.

PropertyK-Means behaviourImplication
ShapeFinds spherical (round) clustersWill fail on elongated, crescent-shaped, or interlocking clusters. Use DBSCAN for irregular shapes.
OutliersSensitive — outliers pull centroids toward themRemove or cap extreme outliers before clustering. One extreme customer can distort an entire segment.
InitialisationRandom start = different results each runUse K-means++ initialisation (default in Python/SPSS) and run multiple times. Take the run with lowest WCSS.
ScaleScales to millions of recordsThe most practical algorithm for large business datasets. Results in minutes on modern hardware.
Techniques 02 & 03

Hierarchical Clustering & DBSCAN

Two alternatives when K-means falls short — flexible structure, no K required.

Hierarchical Clustering — the Dendrogram

Hierarchical clustering builds a tree diagram (dendrogram) that shows how observations and clusters merge as the similarity threshold increases. Unlike K-means, you do not need to specify K in advance — you can cut the tree at any level to produce any number of clusters.

Linkage methodHow distance between clusters is measuredWhen to use
Ward's linkageMinimises the increase in total within-cluster variance when merging two clustersMost commonly used. Produces compact, roughly equal-sized clusters. Default choice for business use.
Complete linkageDistance between the two farthest points in each clusterProduces tight, compact clusters. Sensitive to outliers.
Average linkageAverage distance between all pairs of points across the two clustersCompromise between single and complete. Robust to outliers.
Single linkageDistance between the two closest points across clustersGood for elongated clusters. Prone to chaining — linking clusters through a single bridge point.
Business Example
Reading a dendrogram

A dendrogram for 200 employee satisfaction survey responses is produced using Ward's linkage. The vertical axis shows the distance (dissimilarity) at which clusters merge. By cutting the tree at a height of 15, the analyst obtains 3 clusters. By cutting at height 8, they get 5 clusters. The height at which you cut is a business decision — how many meaningful segments does your use case require?

A large "jump" in merge height between two levels suggests that the two clusters being merged are genuinely different. This jump identifies the natural number of clusters in the data.

DBSCAN — Density-Based Clustering

DBSCAN (Density-Based Spatial Clustering of Applications with Noise) finds clusters as dense regions of points separated by sparse regions. It requires two parameters: ε (epsilon) — the radius of the neighbourhood, and minPts — the minimum number of points required to form a dense region.

DBSCAN advantage

No K required

The number of clusters emerges from the data structure. If 3 dense regions exist, DBSCAN finds 3. If 7 exist, it finds 7. You do not need to guess K in advance.

DBSCAN advantage

Finds irregular shapes

Works on crescent, ring, or any arbitrary shape — K-means and hierarchical clustering assume compact, roughly spherical groups. DBSCAN does not.

DBSCAN advantage

Identifies noise

Points in sparse regions are labelled as noise (outliers) rather than forced into a cluster. In customer data this can identify genuinely unusual accounts worth separate investigation.

DBSCAN limitation

Sensitive to ε and minPts

Results change substantially with different parameter choices. Try multiple values and use silhouette scores to evaluate. Works poorly when clusters have very different densities.

AlgorithmK required?ShapeOutlier handlingBest for
K-MeansYes — specify upfrontSphericalPoor — outliers distort centroidsLarge datasets, clear spherical groups, known K
HierarchicalNo — choose afterFlexibleModerateSmall-medium datasets, exploratory segmentation, visual dendrograms
DBSCANNo — emergesAny shapeExcellent — labels noise explicitlyIrregular cluster shapes, anomaly detection, geospatial data
Technique 04

Cluster Profiling

The algorithm finds clusters. You decide what they mean. Profiling turns numbers into actionable segment descriptions.

Cluster profiling is not a separate algorithm — it is the analytical discipline of characterising each cluster using descriptive statistics, visualisations, and domain knowledge. A cluster without a profile is just a number. A cluster with a profile is a business segment.

The Profiling Process

01
Calculate means and medians per cluster
For every clustering variable, compute the mean (and median if skewed) for each cluster. Compare across clusters. What makes each cluster distinctive?
02
Calculate frequency distributions for categorical variables
If gender, region, product category, or contract type were NOT used in clustering, check whether they differ across clusters. These "external" variables validate whether the clusters represent real business differences.
03
Test whether clusters differ significantly
Run ANOVA (for continuous variables) or Chi-square tests (for categorical variables) to confirm that cluster differences are statistically significant — not just numerical noise.
04
Visualise with a radar/spider chart or heat map
A radar chart with one spoke per clustering variable makes each cluster's profile immediately legible. A heat map of cluster means (rows = clusters, columns = variables) shows the full picture at a glance.
05
Name each cluster
Give each cluster a memorable, descriptive name based on its defining characteristics. "Cluster 2" is not actionable. "High-Value Loyalists" and "Price-Sensitive Occasionals" are.
Business Example
Telecom Customer Segments — Profile Summary
ClusterAvg Spend/moAvg TenureSupport TicketsData UsageSegment Name
1 (n=4,200)$9548 mo0.3/moHigh🟢 Loyal High-Value
2 (n=7,800)$4812 mo0.8/moMedium🟡 New At-Risk
3 (n=5,100)$7236 mo0.2/moLow🔵 Stable Mid-Value
4 (n=2,900)$316 mo1.4/moLow🔴 High-Risk Churners

Cluster 4 is the immediate priority: recent acquisition, low spend, high support volume — clear churn risk. Cluster 2 also warrants early intervention. Cluster 1 should receive loyalty rewards to maintain their high-value relationship.

Validating cluster business relevance

A statistically clean cluster solution is not enough. Ask: Do the clusters predict something that matters? (e.g. Do they have different churn rates? Different lifetime values?) If the clusters do not separate on any meaningful outcome variable, the segmentation — however mathematically sound — may not be actionable for the business.

Techniques 05 & 06

Association Rules & Market Basket Analysis

Finding what goes together. Which products are bought simultaneously — and how reliably?

Association rule mining discovers co-occurrence patterns in transactional data. The classic application is market basket analysis: "customers who buy bread also frequently buy butter." But the same technique applies to any dataset where items co-occur: website pages visited together, insurance products held simultaneously, diagnostic codes appearing in the same patient record.

Three Key Metrics

MetricDefinitionFormulaBusiness interpretation
Support How often the itemset (A and B together) appears in all transactions P(A ∩ B) = transactions containing both / total transactions Support = 0.05 means 5% of all transactions contain both A and B. Low support = rare combination — may not be worth acting on.
Confidence How often B appears in transactions that contain A P(B|A) = transactions with both A and B / transactions with A Confidence = 0.72 means 72% of customers who buy A also buy B. This is the "reliability" of the rule.
Lift How much more likely B is to be purchased given A — compared to B's baseline frequency Confidence(A→B) / Support(B) Lift = 1.0 means no association — buying A tells you nothing about B. Lift > 1 = positive association. Lift = 2.5 means B is 2.5× more likely when A is in the basket. Lift is the most important metric for identifying genuinely useful rules.
Why lift matters more than confidence

Bread has confidence = 0.85 for the rule "Beer → Bread" (85% of customers who buy beer also buy bread). Sounds impressive. But if 82% of ALL customers buy bread regardless of what else they buy, the rule is almost useless. Lift = 0.85/0.82 = 1.04 — barely better than random. High confidence alone is misleading if the consequent is a very popular item. Always use lift as the primary filter. Lift > 1.5 is typically considered meaningful for action.

Business Example
Supermarket — Top Association Rules
Rule (A → B)SupportConfidenceLiftBusiness Action
Nappies → Beer3.2%68%3.1Place beer near nappy aisle; bundle promotions
Pasta → Pasta Sauce8.4%81%2.8Display together; cross-sell at checkout
Espresso Pods → Milk5.1%74%2.2Bundle in subscription box; cross-discount
Bread → Milk22%87%1.1High confidence but low lift — both are staples bought by everyone. No targeted action needed.

The Apriori Algorithm

The Apriori algorithm efficiently generates association rules by first finding all frequent itemsets (those meeting the minimum support threshold), then deriving rules from those itemsets that meet the minimum confidence threshold. It uses the property that any subset of a frequent itemset must also be frequent — dramatically reducing the number of candidate itemsets to evaluate.

Technique 08

Cluster Validation

The elbow told you K. The silhouette tells you if that K is actually good.

Cluster validation answers a fundamental question: are these clusters real, stable, and well-separated — or are they just a mathematical artefact of the algorithm? Three validation approaches work together to answer this.

1. Silhouette Analysis

The silhouette score for each point measures: how compact is its own cluster vs how far away is the nearest other cluster? A score near +1 means the point fits well in its cluster. Near 0 means it is on the boundary. Negative means it probably belongs to a different cluster.

Average Silhouette ScoreCluster qualityAction
0.71 to 1.00Strong — clusters are well-separated and compactUse this K with confidence
0.51 to 0.70Reasonable — clusters are distinct but some overlapAcceptable for most business applications
0.26 to 0.50Weak — clusters overlap significantlyConsider a different K or a different algorithm
< 0.25Poor — no real cluster structure foundThe data may not have meaningful groups. Do not act on these clusters.

2. Stability Testing

Run the same clustering on a random 80% sample of your data, then on a different 80% sample. Do the same clusters emerge? Do the same observations land in the same clusters? Stable clusters replicate; coincidental groupings do not. This is the single most important validation test for business use.

3. External Validation

Test whether the clusters predict outcomes the business cares about. Run an ANOVA: do the clusters significantly differ on churn rate, lifetime value, or complaint frequency? If the clusters do not separate on any meaningful external variable, the segmentation — however internally coherent — may have no business value.

The full validation workflow

Step 1: Run elbow method to narrow to 2–4 candidate K values. Step 2: Run silhouette analysis on each candidate K — pick the K with the highest average score. Step 3: Test stability by re-running on a holdout sample. Step 4: Profile clusters and test external validation (ANOVA on outcome variables). Step 5: Only then name the clusters and present to stakeholders.

Tool Guide 🟡 Go Deeper

SPSS & Tableau

K-means and hierarchical clustering in SPSS. One-click clustering in Tableau. No code required.

🟡 Go DeeperSPSS — K-Means Cluster Analysis
01
Standardise your variables first
Analyze → Descriptive Statistics → Descriptives → move all clustering variables to Variable(s) → tick Save standardised values as variables → OK. SPSS creates new Z-score variables (e.g. ZSpend, ZFrequency). Use these Z-score variables for clustering — not the originals.
02
Open K-Means Cluster
Analyze → Classify → K-Means Cluster
03
Configure
Move your Z-score variables to Variables. Set Number of Clusters to your chosen K. Set Maximum Iterations to 50. Method: Iterate and Classify.
04
Request output and save cluster membership
Click Save → tick Cluster membership (saves each case's cluster number as a new variable) → Click Options → tick Initial cluster centres · ANOVA table · Cluster information for each case → Continue → OK.
Key output to check
Initial & Final Cluster Centres table (shows mean of each variable per cluster) · ANOVA table (F-test confirming clusters differ significantly on each variable) · Number of cases in each cluster
05
Profile the clusters
With the cluster membership variable saved, run: Analyze → Compare Means → Means → add original (non-standardised) variables to Dependent List, cluster membership to Independent List → OK. This produces the plain-language profile of each cluster in original units.
🟡 Go DeeperSPSS — Hierarchical Clustering
01
Open Hierarchical Cluster
Analyze → Classify → Hierarchical Cluster
02
Configure
Move your (standardised) variables to Variables. Cluster: Cases. Display: Statistics + Plots.
03
Set method and measure
Click Method → Cluster Method: Ward's method → Measure: Squared Euclidean distance → Continue.
04
Request plots and statistics
Click Plots → tick Dendrogram → Continue. Click Statistics → tick Agglomeration schedule (shows at which step each merge happens — large jumps indicate natural cut points) → Continue → OK.
Reading the dendrogram
The Y-axis shows merge distance. Horizontal lines further up = more dissimilar clusters being merged. Cut where there is a large vertical gap — the number of vertical lines at that cut = K.
🟢 Start HereTableau — One-Click Clustering

Tableau's built-in clustering applies K-means automatically — the most accessible entry point for non-programmers.

01
Create a scatter plot
Drag two or more numeric measures to the Rows and Columns shelves (or X/Y axis of a scatter plot). Each mark represents one customer/record.
02
Open the Analytics pane
Click the Analytics tab (magnifying glass icon) in the left panel. Scroll to find Cluster under Model.
03
Drag Cluster onto the chart
Drag Cluster onto the view. Tableau opens a Clusters dialog. Set Number of Clusters or tick Automatic (Tableau suggests K). Click OK. Each cluster is colour-coded automatically.
04
Describe the clusters
Right-click the Clusters pill in the Marks card → Describe Clusters. Tableau shows the mean of each variable per cluster and an ANOVA table. This is the cluster profile built directly in the tool.
Tool Guide 🔵 Full Power

Python — scikit-learn, mlxtend & yellowbrick

Complete segmentation pipeline — from elbow and silhouette through clustering, profiling, and association rules.

🔵 Full PowerK-Means with Elbow & Silhouette
# pip install scikit-learn yellowbrick import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.preprocessing import StandardScaler from sklearn.cluster import KMeans, DBSCAN, AgglomerativeClustering from sklearn.metrics import silhouette_score, silhouette_samples # 1. Standardise scaler = StandardScaler() X_scaled = scaler.fit_transform(df[['spend', 'frequency', 'basket_size']]) # 2. Elbow method wcss = [] K_range = range(1, 11) for k in K_range: km = KMeans(n_clusters=k, init='k-means++', n_init=10, random_state=42) km.fit(X_scaled) wcss.append(km.inertia_) plt.plot(K_range, wcss, 'bo-') plt.xlabel('Number of Clusters (K)') plt.ylabel('Within-Cluster Sum of Squares') plt.title('Elbow Method — Find Optimal K') plt.show() # 3. Silhouette scores for K = 2 to 8 sil_scores = {} for k in range(2, 9): km = KMeans(n_clusters=k, init='k-means++', n_init=10, random_state=42) labels = km.fit_predict(X_scaled) sil_scores[k] = silhouette_score(X_scaled, labels) print(f"K={k}: Silhouette = {sil_scores[k]:.3f}") best_k = max(sil_scores, key=sil_scores.get) print(f"Best K = {best_k} (silhouette = {sil_scores[best_k]:.3f})")
🔵 Full PowerCluster Profiling & DBSCAN
# Final K-Means and profiling km_final = KMeans(n_clusters=4, init='k-means++', n_init=20, random_state=42) df['cluster'] = km_final.fit_predict(X_scaled) # Profile — means per cluster in original units profile = df.groupby('cluster')[['spend','frequency','basket_size']].agg(['mean','median','count']) print(profile) # Visualise clusters (first 2 PCA components if >2 variables) from sklearn.decomposition import PCA pca = PCA(n_components=2) coords = pca.fit_transform(X_scaled) plt.scatter(coords[:,0], coords[:,1], c=df['cluster'], cmap='tab10', alpha=0.6) plt.title('Cluster Visualisation (PCA)') plt.show() # DBSCAN for irregular clusters / anomaly detection dbscan = DBSCAN(eps=0.5, min_samples=10) df['dbscan_cluster'] = dbscan.fit_predict(X_scaled) noise = (df['dbscan_cluster'] == -1).sum() n_clusters = df['dbscan_cluster'].nunique() - (1 if -1 in df['dbscan_cluster'].values else 0) print(f"DBSCAN: {n_clusters} clusters, {noise} noise points")
🔵 Full PowerAssociation Rules — Market Basket Analysis
# pip install mlxtend from mlxtend.frequent_patterns import apriori, association_rules from mlxtend.preprocessing import TransactionEncoder import pandas as pd # Dataset: list of transactions, each a list of items transactions = [ ['bread', 'butter', 'milk'], ['bread', 'nappies', 'beer'], ['pasta', 'pasta_sauce', 'wine'], # ... thousands more ] # Encode to boolean matrix te = TransactionEncoder() te_array = te.fit_transform(transactions) df_basket = pd.DataFrame(te_array, columns=te.columns_) # Find frequent itemsets (min support = 2%) frequent_sets = apriori(df_basket, min_support=0.02, use_colnames=True) # Generate rules (min confidence = 50%) rules = association_rules(frequent_sets, metric='confidence', min_threshold=0.5) # Sort by lift — most interesting rules first rules = rules.sort_values('lift', ascending=False) print(rules[['antecedents','consequents','support','confidence','lift']].head(10)) # Filter to rules with lift > 1.5 (actionable associations) strong_rules = rules[rules['lift'] > 1.5] print(f"Strong rules (lift>1.5): {len(strong_rules)}")
Interactive Practice

Three Simulators

Build intuition for K selection, cluster profiling, and association rules through live interaction.

Simulator 1 · K-Means Elbow Visualiser

A customer dataset is clustered at different values of K. Watch how the scatter plot and WCSS change — and identify where the "elbow" occurs.

Move the slider to explore different values of K. Watch the elbow chart to identify the optimal number of clusters.

Simulator 2 · Cluster Profile Interpreter

Four customer clusters have been identified. Review the profile statistics and assign the most appropriate segment name to each cluster.

Read the cluster statistics and assign the correct segment label to each cluster.

Simulator 3 · Association Rules Evaluator

Six association rules are displayed with their support, confidence, and lift scores. Decide which rules are genuinely actionable and which should be filtered out — and why.

For each rule, click "Act On It" or "Filter Out" based on the metrics. Focus on lift as the primary criterion.
Best Practice

Common Mistakes

Segmentation mistakes can lead to strategies built on coincidence rather than real customer differences.

Mistake 01

Skipping standardisation before K-means

If annual revenue ($0–$500K) and satisfaction score (1–5) are both used, the revenue variable will dominate entirely. Every cluster difference will reflect revenue variation, not the full variable profile. Always standardise first.

Mistake 02

Accepting the first K-means solution without validation

K-means starts randomly. Two runs with the same K can produce very different clusters. Always run with multiple initialisations (n_init=20) and take the best result. Then validate with silhouette scores and stability testing.

Mistake 03

Using high confidence as the sole rule filter

High confidence on a popular item (bread, milk) tells you almost nothing. The lift metric controls for base rate popularity. Filter by lift > 1.5 as a minimum — otherwise you will act on rules that are not better than random.

Mistake 04

Treating discovered clusters as facts

Clusters are hypotheses. The algorithm always finds K clusters whether they are real or not. Present them as "proposed segments" and validate before building strategy. A cluster solution that fails stability testing should not drive a marketing budget.

Mistake 05

Including too many irrelevant variables in clustering

Adding unrelated variables (ID numbers, dates, irrelevant demographics) dilutes the clustering signal. Each variable should measure something conceptually relevant to the segmentation purpose. More is not better.

Mistake 06

Not profiling clusters in business terms

Cluster 1 has centroid (Z-score: 1.4, −0.8, 0.3) is meaningless to a marketing director. Always convert back to original units and create a named profile: "Champions: average spend $320/mo, 18 transactions/year, loyal 4+ years." The business value is in the profile, not the algorithm output.

Set 07 · Key Takeaway
Clusters are discovered, not invented — but they are also not guaranteed to be real. Always validate before acting.
Assessment

Knowledge Check

Five questions across all techniques in Set 07.

Q1 — A K-means clustering of customer data uses three variables: annual spend ($0–$200K), satisfaction score (1–10), and age (18–75). The analyst runs K-means without any preprocessing. What is the critical problem?
A
K-means cannot handle more than two variables
B
Annual spend ($0–$200K) will dominate the clustering because its scale dwarfs satisfaction (1–10) and age (18–75). The clusters will primarily reflect spend differences. Standardisation to Z-scores is required first.
C
Three variables is too many for K-means — use hierarchical clustering instead
D
Nothing — K-means handles mixed-scale variables automatically
K-means uses Euclidean distance. A $1,000 difference in annual spend is mathematically equivalent to a 1,000-unit difference in satisfaction — but satisfaction only ranges 9 points. Without standardisation, spend dominates 100% of the clustering, effectively ignoring satisfaction and age entirely. Standardise all variables to mean=0, SD=1 so each variable contributes proportionally to the clustering.
Q2 — An association rule analysis produces: Bread → Milk: Support=22%, Confidence=87%, Lift=1.06. Should the retailer act on this rule to drive cross-selling?
A
Yes — 87% confidence means this is a very reliable rule
B
No — lift = 1.06 means buying bread tells you almost nothing about whether the customer will buy milk. Both are staples bought by nearly everyone. Cross-selling effort here would be wasted.
C
Yes — 22% support is high, meaning this is a common transaction
D
No — 22% support is too low for an actionable rule
Lift = 1.06 means customers who buy bread are only 6% more likely to buy milk than the average customer — essentially random. If 82% of all customers buy milk regardless, the 87% confidence is almost entirely explained by milk's baseline popularity, not the bread-milk association. Lift is the key metric for actionable rules. Rules with lift near 1.0 should be filtered out regardless of how high the confidence appears.
Q3 — The elbow method suggests K=4 for a customer segmentation. Silhouette scores are: K=3: 0.61, K=4: 0.58, K=5: 0.49. What should the analyst do?
A
Use K=4 — the elbow method is the primary criterion
B
Consider K=3 — silhouette score is higher (0.61 vs 0.58), suggesting better-separated clusters. Present both to stakeholders and choose based on business interpretability.
C
Use K=5 — more segments gives the business more targeting options
D
The silhouette scores are too close — try K up to 15
When the elbow and silhouette methods disagree, use both as evidence. K=3 has a higher silhouette score (0.61 = "reasonable" quality) while K=4 scores 0.58. The difference is modest. Present both solutions to stakeholders: K=3 gives cleaner, more separable clusters; K=4 may offer more granular targeting. The final decision should balance statistical quality with business interpretability — are 3 or 4 segments more actionable for the specific use case?
Q4 — A DBSCAN analysis of geospatial customer data labels 15% of observations as cluster −1 (noise). What does this mean and what should the analyst do?
A
The algorithm failed — noise points indicate an incorrect ε parameter
B
15% of customers do not belong to any dense group — they are genuinely isolated. Investigate them separately: they may represent outliers, unusual locations, or a distinct segment too small to form a dense cluster.
C
Force the noise points into the nearest cluster
D
Noise means the data quality is too poor for clustering
DBSCAN's noise label (−1) is a feature, not a failure. Points labelled as noise are observations that do not meet the density threshold to belong to any cluster. In customer data, noise points are often the most interesting: isolated high-value customers, unusual geographic outliers, or emerging micro-segments too small to register as a dense cluster yet. Investigate noise points as a separate analytical task rather than forcing them into existing clusters.
Q5 — After K-means clustering on 80,000 customers, three clusters are identified. The analyst presents them to the marketing director as "the three customer types." What critical step has been skipped?
A
The clusters need to be visualised on a scatter plot before presentation
B
The analyst should have used K=5 for more segment granularity
C
Validation — the clusters have not been tested for stability (replicate on a holdout sample?), external validity (do they differ on churn rate or CLV?), or business interpretability. They are mathematical output, not confirmed customer types.
D
The cluster labels should have been checked with SPSS before Python
K-means always produces K clusters. Whether they represent real, stable, actionable customer types requires validation: (1) Stability — do the same clusters emerge from a different random sample? (2) External validity — do the clusters differ significantly on churn rate, CLV, or other business outcomes? (3) Business sense — do the profiles make intuitive sense to domain experts? Only after passing these tests should clusters be presented as "customer types" rather than "candidate segments."