SlideShare a Scribd company logo
SPSS TutorialSPSS Tutorial
AEB 37 / AE 802
Marketing Research Methods
Week 7
Cluster analysisCluster analysis
Lecture / Tutorial outline
• Cluster analysis
• Example of cluster analysis
• Work on the assignment
Cluster AnalysisCluster Analysis
• It is a class of techniques used to
classify cases into groups that are
relatively homogeneous within
themselves and heterogeneous
between each other, on the basis of
a defined set of variables. These
groups are called clusters.
Cluster Analysis andCluster Analysis and
marketing researchmarketing research
• Market segmentation. E.g. clustering of
consumers according to their attribute
preferences
• Understanding buyers behaviours.
Consumers with similar
behaviours/characteristics are clustered
• Identifying new product opportunities.
Clusters of similar brands/products can help
identifying competitors / market opportunities
• Reducing data. E.g. in preference mapping
Steps to conduct aSteps to conduct a
Cluster AnalysisCluster Analysis
1. Select a distance measure
2. Select a clustering algorithm
3. Determine the number of clusters
4. Validate the analysis
REGR factor score 2 for analysis 1
43210-1-2-3
REGRfactorscore1foranalysis1
3
2
1
0
-1
-2
-3
-4
Defining distance: theDefining distance: the
Euclidean distanceEuclidean distance
Dij distance between cases i and j
xki value of variable Xk for case j
Problems:
• Different measures = different weights
• Correlation between variables (double
counting)
Solution: Principal component analysis
 
2
1
n
ij ki kj
k
D x x

 
Clustering proceduresClustering procedures
• Hierarchical procedures
– Agglomerative (start from n clusters,
to get to 1 cluster)
– Divisive (start from 1 cluster, to get to
n cluster)
• Non hierarchical procedures
– K-means clustering
Agglomerative clusteringAgglomerative clustering
AgglomerativeAgglomerative
clusteringclustering
• Linkage methods
– Single linkage (minimum distance)
– Complete linkage (maximum distance)
– Average linkage
• Ward’s method
1. Compute sum of squared distances within clusters
2. Aggregate clusters with the minimum increase in the
overall sum of squares
• Centroid method
– The distance between two clusters is defined as the
difference between the centroids (cluster averages)
KK--means clusteringmeans clustering
1. The number k of cluster is fixed
2. An initial set of k “seeds” (aggregation centres) is
provided
• First k elements
• Other seeds
3. Given a certain treshold, all units are assigned to
the nearest cluster seed
4. New seeds are computed
5. Go back to step 3 until no reclassification is
necessary
Units can be reassigned in successive steps
(optimising partioning)
Hierarchical vs NonHierarchical vs Non
hierarchical methodshierarchical methods
Hierarchical
clustering
• No decision about the
number of clusters
• Problems when data
contain a high level of
error
• Can be very slow
• Initial decision are
more influential (one-
step only)
Non hierarchical
clustering
• Faster, more reliable
• Need to specify the
number of clusters
(arbitrary)
• Need to set the initial
seeds (arbitrary)
Suggested approachSuggested approach
1. First perform a hierarchical
method to define the number of
clusters
2. Then use the k-means procedure
to actually form the clusters
Defining the number ofDefining the number of
clusters: elbow rule (1)clusters: elbow rule (1)
Agglomeration Schedule
4 7 .015 0 0 4
6 10 .708 0 0 5
8 9 .974 0 0 4
4 8 1.042 1 3 6
1 6 1.100 0 2 7
4 5 3.680 4 0 7
1 4 3.492 5 6 8
1 11 6.744 7 0 9
1 2 8.276 8 0 10
1 12 8.787 9 0 11
1 3 11.403 10 0 0
Stage
1
2
3
4
5
6
7
8
9
10
11
Cluster 1Cluster 2
Cluster Combined
CoefficientsCluster 1 Cluster 2
Stage Cluster First
Appears
Next Stage
Stage Number of clusters
0 12
1 11
2 10
3 9
4 8
5 7
6 6
7 5
8 4
9 3
10 2
11 1
n
Elbow rule (2): theElbow rule (2): the
screescree diagramdiagram
0
2
4
6
8
10
12
11 10 9 8 7 6 5 4 3 2 1
Number of clusters
Distance
Validating theValidating the
analysisanalysis
• Impact of initial seeds / order of
cases
• Impact of the selected method
• Consider the relevance of the
chosen set of variables
SPSS ExampleSPSS Example
Component1
2.01.51.0.50.0-.5-1.0-1.5
Component2
1.5
1.0
.5
0.0
-.5
-1.0
-1.5
-2.0
LUCY
JULIA
FRED
ARTHUR
JENNIFER
THOMAS
MATTHEW
NICOLE
PAMELA
JOHN
Agglomeration Schedule
3 6 .026 0 0 8
2 5 .078 0 0 7
4 9 .224 0 0 5
1 7 .409 0 0 6
4 10 .849 3 0 8
1 8 1.456 4 0 7
1 2 4.503 6 2 9
3 4 9.878 1 5 9
1 3 18.000 7 8 0
Stage
1
2
3
4
5
6
7
8
9
Cluster 1 Cluster 2
Cluster Combined
Coefficients Cluster 1 Cluster 2
Stage Cluster First
Appears
Next Stage
Number of clusters: 10 – 6 = 4
Component1
2.01.51.0.50.0-.5-1.0-1.5
Component2
1.5
1.0
.5
0.0
-.5
-1.0
-1.5
-2.0
Cluster Number of Ca
4
3
2
1
LUCY
JULIA
FRED
ARTHUR
JENNIFER
THOMAS
MATTHEW
NICOLE
PAMELA
JOHN
Open the datasetOpen the dataset
supermarkets.savsupermarkets.sav
From your N: directory (if you saved it
there last time
Or download it from:
http://www.rdg.ac.uk/~aes02mm/
supermarket.sav
• Open it in SPSS
TheThe supermarkets.savsupermarkets.sav
datasetdataset
Run PrincipalRun Principal
Components AnalysisComponents Analysis
and save scoresand save scores
• Select the variables to perform the
analysis
• Set the rule to extract principal
components
• Give instruction to save the
principal components as new
variables
Cluster analysis:Cluster analysis:
basic stepsbasic steps
• Apply Ward’s methods on the
principal components score
• Check the agglomeration schedule
• Decide the number of clusters
• Apply the k-means method
Analyse / ClassifyAnalyse / Classify
Select the componentSelect the component
scoresscores
Select from here Untick this
Select WardSelect Ward’’s algorithms algorithm
Click here
first
Select
method here
Output: AgglomerationOutput: Agglomeration
scheduleschedule
Number of clustersNumber of clusters
Identify the step where the “distance coefficients” makes a bigger
jump
TheThe screescree diagramdiagram
(Excel needed)(Excel needed)
Distance
0
100
200
300
400
500
600
700
800
118
120
122
124
126
128
130
132
134
136
138
140
142
144
146
148
Step
Number of clustersNumber of clusters
Number of cases 150
Step of ‘elbow’ 144
__________________________________
Number of clusters 6
Now repeat theNow repeat the
analysisanalysis
• Choose the k-means technique
• Set 6 as the number of clusters
• Save cluster number for each case
• Run the analysis
KK--meansmeans
KK--means dialog boxmeans dialog box
Specify
number of
clusters
Save cluster membershipSave cluster membership
Click here
first Thick here
Final outputFinal output
Cluster membershipCluster membership
Component Matrixa
.810 -.294 -4.26E-02 .183 .173
.480 -.152 .347 .334 -5.95E-02
.525 -.206 -.475 -4.35E-02 .140
.192 -.345 -.127 .383 .199
.646 -.281 -.134 -.239 -.207
.536 .619 -.102 -.172 6.008E-02
.492 -.186 .190 .460 .342
1.784E-02 -9.24E-02 .647 -.287 .507
.649 .612 .135 -6.12E-02 -3.29E-03
.369 .663 .247 .184 1.694E-02
.124 -9.53E-02 .462 .232 -.529
2.989E-02 .406 -.349 .559 -8.14E-02
.443 -.271 .182 -5.61E-02 -.465
.908 -4.75E-02 -7.46E-02 -.197 -3.26E-02
.891 -5.64E-02 -6.73E-02 -.228 6.942E-04
Monthly amount spent
Meat expenditure
Fish expenditure
Vegetables expenditure
% spent in own-brand
product
Own a car
% spent in organic food
Vegetarian
Household Size
Number of kids
Weekly TV watching
(hours)
Weekly Radio listening
(hours)
Surf the web
Yearly household income
Age of respondent
1 2 3 4 5
Component
Extraction Method: Principal Component Analysis.
5 components extracted.a.
Component meaningComponent meaning
(tutorial week 5)(tutorial week 5)
1. “Old Rich Big
Spender” 3. Vegetarian TV
lover
4. Organic radio
listener
2. Family shopper
5. Vegetarian TV and
web hater
Final Cluster Centers
-1.34392 .21758 .13646 .77126 .40776 .72711
.38724 -.57755 -1.12759 .84536 .57109 -.58943
-.22215 -.09743 1.41343 .17812 1.05295 -1.39335
.15052 -.28837 -.30786 1.09055 -1.34106 .04972
.04886 -.93375 1.23631 -.11108 .31902 .87815
REGR factor score
1 for analysis 1
REGR factor score
2 for analysis 1
REGR factor score
3 for analysis 1
REGR factor score
4 for analysis 1
REGR factor score
5 for analysis 1
1 2 3 4 5 6
Cluster
Cluster interpretationCluster interpretation
through mean component valuesthrough mean component values
• Cluster 1 is very far from profile 1 (-1.34) and
more similar to profile 2 (0.38)
• Cluster 2 is very far from profile 5 (-0.93) and
not particularly similar to any profile
• Cluster 3 is extremely similar to profiles 3 and 5
and very far from profile 2
• Cluster 4 is similar to profiles 2 and 4
• Cluster 5 is very similar to profile 3 and very far
from profile 4
• Cluster 6 is very similar to profile 5 and very far
from profile 3
Which cluster toWhich cluster to
target?target?
• Objective: target the organic
consumer
• Which is the cluster that looks more
“organic”?
• Compute the descriptive statistics
on the original variables for that
cluster
Representation of factors 1Representation of factors 1
and 4and 4
(and cluster membership)(and cluster membership)
REGR factor score 1 for analysis 1
210-1-2-3
REGRfactorscore4foranalysis1
3
2
1
0
-1
-2
-3
Cluster Number of Ca
6
5
4
3
2
1

More Related Content

What's hot

Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...Simplilearn
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysissaba khan
 
Time series and forecasting
Time series and forecastingTime series and forecasting
Time series and forecastingmvskrishna
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis pptMukesh Bisht
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Dr. Rupendra Bharti
 
Factor Analysis in Research
Factor Analysis in ResearchFactor Analysis in Research
Factor Analysis in ResearchQasim Raza
 
Marketing Research-Factor Analysis
Marketing Research-Factor AnalysisMarketing Research-Factor Analysis
Marketing Research-Factor AnalysisArun Gupta
 
discriminant analysis
discriminant analysisdiscriminant analysis
discriminant analysiskrishnadk
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive StatisticsBhagya Silva
 
Arima model
Arima modelArima model
Arima modelJassika
 
Sampling - Stratified vs Cluster
Sampling - Stratified vs ClusterSampling - Stratified vs Cluster
Sampling - Stratified vs ClusterAniruddha Deshmukh
 
Anova lecture
Anova lectureAnova lecture
Anova lecturedoublem44
 

What's hot (20)

Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
 
conjoint analysis
conjoint analysisconjoint analysis
conjoint analysis
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Time series and forecasting
Time series and forecastingTime series and forecasting
Time series and forecasting
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis ppt
 
Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student Non parametric study; Statistical approach for med student
Non parametric study; Statistical approach for med student
 
Factor Analysis in Research
Factor Analysis in ResearchFactor Analysis in Research
Factor Analysis in Research
 
Marketing Research-Factor Analysis
Marketing Research-Factor AnalysisMarketing Research-Factor Analysis
Marketing Research-Factor Analysis
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 
discriminant analysis
discriminant analysisdiscriminant analysis
discriminant analysis
 
Descriptive Statistics
Descriptive StatisticsDescriptive Statistics
Descriptive Statistics
 
Arima model
Arima modelArima model
Arima model
 
Sampling - Stratified vs Cluster
Sampling - Stratified vs ClusterSampling - Stratified vs Cluster
Sampling - Stratified vs Cluster
 
Time Series FORECASTING
Time Series FORECASTINGTime Series FORECASTING
Time Series FORECASTING
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Anova lecture
Anova lectureAnova lecture
Anova lecture
 
Normality
NormalityNormality
Normality
 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
 

Viewers also liked

Eastboro case analysis
Eastboro case analysisEastboro case analysis
Eastboro case analysisFajar Muhammad
 
Clustering
ClusteringClustering
ClusteringMeme Hei
 
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...Edureka!
 
Data Mining: clustering and analysis
Data Mining: clustering and analysisData Mining: clustering and analysis
Data Mining: clustering and analysisDataminingTools Inc
 
Factor analysis in Spss
Factor analysis in SpssFactor analysis in Spss
Factor analysis in SpssFayaz Ahmad
 
Process capability
Process capabilityProcess capability
Process capabilitypadam nagar
 
Cluster spss week7
Cluster spss week7Cluster spss week7
Cluster spss week7Birat Sharma
 
Introduction to Data Science - ESCP Europe
Introduction to Data Science - ESCP Europe Introduction to Data Science - ESCP Europe
Introduction to Data Science - ESCP Europe Martin Daniel
 
How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...
How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...
How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...Galvanize
 
Multivariate data analysis regression, cluster and factor analysis on spss
Multivariate data analysis   regression, cluster and factor analysis on spssMultivariate data analysis   regression, cluster and factor analysis on spss
Multivariate data analysis regression, cluster and factor analysis on spssAditya Banerjee
 
Telco Churn Roi V3
Telco Churn Roi V3Telco Churn Roi V3
Telco Churn Roi V3hkaul
 
Hierarchical clustering
Hierarchical clusteringHierarchical clustering
Hierarchical clusteringishmecse13
 

Viewers also liked (20)

Cluster Analysis
Cluster AnalysisCluster Analysis
Cluster Analysis
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Cluster Analysis for Dummies
Cluster Analysis for DummiesCluster Analysis for Dummies
Cluster Analysis for Dummies
 
Eastboro case analysis
Eastboro case analysisEastboro case analysis
Eastboro case analysis
 
Clustering
ClusteringClustering
Clustering
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
K-Means Clustering Algorithm - Cluster Analysis | Machine Learning Algorithm ...
 
Clustering in Data Mining
Clustering in Data MiningClustering in Data Mining
Clustering in Data Mining
 
Data Mining: clustering and analysis
Data Mining: clustering and analysisData Mining: clustering and analysis
Data Mining: clustering and analysis
 
PROCESS CAPABILITY
PROCESS CAPABILITYPROCESS CAPABILITY
PROCESS CAPABILITY
 
Factor analysis in Spss
Factor analysis in SpssFactor analysis in Spss
Factor analysis in Spss
 
Curso Modelamiento De Datos
Curso Modelamiento De DatosCurso Modelamiento De Datos
Curso Modelamiento De Datos
 
Process capability
Process capabilityProcess capability
Process capability
 
Cluster spss week7
Cluster spss week7Cluster spss week7
Cluster spss week7
 
Introduction to Data Science - ESCP Europe
Introduction to Data Science - ESCP Europe Introduction to Data Science - ESCP Europe
Introduction to Data Science - ESCP Europe
 
How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...
How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...
How to Become a Data Scientist – By Ryan Orban, VP of Operations and Expansio...
 
Multivariate data analysis regression, cluster and factor analysis on spss
Multivariate data analysis   regression, cluster and factor analysis on spssMultivariate data analysis   regression, cluster and factor analysis on spss
Multivariate data analysis regression, cluster and factor analysis on spss
 
Telco Churn Roi V3
Telco Churn Roi V3Telco Churn Roi V3
Telco Churn Roi V3
 
Hierarchical clustering
Hierarchical clusteringHierarchical clustering
Hierarchical clustering
 
Spss tutorial 1
Spss tutorial 1Spss tutorial 1
Spss tutorial 1
 

Similar to Spss tutorial-cluster-analysis

SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by StatsworkSPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by StatsworkStats Statswork
 
Unsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptxUnsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptxFaridAliMousa1
 
machine learning - Clustering in R
machine learning - Clustering in Rmachine learning - Clustering in R
machine learning - Clustering in RSudhakar Chavan
 
House Sale Price Prediction
House Sale Price PredictionHouse Sale Price Prediction
House Sale Price Predictionsriram30691
 
What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...
What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...
What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...Smarten Augmented Analytics
 
Pattern recognition binoy k means clustering
Pattern recognition binoy  k means clusteringPattern recognition binoy  k means clustering
Pattern recognition binoy k means clustering108kaushik
 
MODULE 4_ CLUSTERING.pptx
MODULE 4_ CLUSTERING.pptxMODULE 4_ CLUSTERING.pptx
MODULE 4_ CLUSTERING.pptxnikshaikh786
 
Advanced database and data mining & clustering concepts
Advanced database and data mining & clustering conceptsAdvanced database and data mining & clustering concepts
Advanced database and data mining & clustering conceptsNithyananthSengottai
 
26-Clustering MTech-2017.ppt
26-Clustering MTech-2017.ppt26-Clustering MTech-2017.ppt
26-Clustering MTech-2017.pptvikassingh569137
 
05 Clustering in Data Mining
05 Clustering in Data Mining05 Clustering in Data Mining
05 Clustering in Data MiningValerii Klymchuk
 
Hyperparameter Tuning
Hyperparameter TuningHyperparameter Tuning
Hyperparameter TuningJon Lederman
 
clustering in DataMining and differences in models/ clustering in data mining
clustering in DataMining and differences in models/ clustering in data miningclustering in DataMining and differences in models/ clustering in data mining
clustering in DataMining and differences in models/ clustering in data miningRevathiSundar4
 
Decision tree for data mining and computer
Decision tree for data mining and computerDecision tree for data mining and computer
Decision tree for data mining and computertttiba
 
Lect5_GSEA_Classify (1).ppt
Lect5_GSEA_Classify (1).pptLect5_GSEA_Classify (1).ppt
Lect5_GSEA_Classify (1).pptSaiGanesh836443
 

Similar to Spss tutorial-cluster-analysis (20)

SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by StatsworkSPSS Step-by-Step Tutorial and Statistical Guides by Statswork
SPSS Step-by-Step Tutorial and Statistical Guides by Statswork
 
Unsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptxUnsupervised Learning Clustering KMean and Hirarchical.pptx
Unsupervised Learning Clustering KMean and Hirarchical.pptx
 
machine learning - Clustering in R
machine learning - Clustering in Rmachine learning - Clustering in R
machine learning - Clustering in R
 
House Sale Price Prediction
House Sale Price PredictionHouse Sale Price Prediction
House Sale Price Prediction
 
Lec13 Clustering.pptx
Lec13 Clustering.pptxLec13 Clustering.pptx
Lec13 Clustering.pptx
 
Data Mining Lecture_8(a).pptx
Data Mining Lecture_8(a).pptxData Mining Lecture_8(a).pptx
Data Mining Lecture_8(a).pptx
 
What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...
What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...
What is the KMeans Clustering Algorithm and How Does an Enterprise Use it to ...
 
Pattern recognition binoy k means clustering
Pattern recognition binoy  k means clusteringPattern recognition binoy  k means clustering
Pattern recognition binoy k means clustering
 
MODULE 4_ CLUSTERING.pptx
MODULE 4_ CLUSTERING.pptxMODULE 4_ CLUSTERING.pptx
MODULE 4_ CLUSTERING.pptx
 
Advanced database and data mining & clustering concepts
Advanced database and data mining & clustering conceptsAdvanced database and data mining & clustering concepts
Advanced database and data mining & clustering concepts
 
26-Clustering MTech-2017.ppt
26-Clustering MTech-2017.ppt26-Clustering MTech-2017.ppt
26-Clustering MTech-2017.ppt
 
Multivariate Analysis
Multivariate AnalysisMultivariate Analysis
Multivariate Analysis
 
Clusters (4).pptx
Clusters (4).pptxClusters (4).pptx
Clusters (4).pptx
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
05 Clustering in Data Mining
05 Clustering in Data Mining05 Clustering in Data Mining
05 Clustering in Data Mining
 
Hyperparameter Tuning
Hyperparameter TuningHyperparameter Tuning
Hyperparameter Tuning
 
Clustering on DSS
Clustering on DSSClustering on DSS
Clustering on DSS
 
clustering in DataMining and differences in models/ clustering in data mining
clustering in DataMining and differences in models/ clustering in data miningclustering in DataMining and differences in models/ clustering in data mining
clustering in DataMining and differences in models/ clustering in data mining
 
Decision tree for data mining and computer
Decision tree for data mining and computerDecision tree for data mining and computer
Decision tree for data mining and computer
 
Lect5_GSEA_Classify (1).ppt
Lect5_GSEA_Classify (1).pptLect5_GSEA_Classify (1).ppt
Lect5_GSEA_Classify (1).ppt
 

More from Animesh Kumar

10th class weaker students case
10th class weaker students case10th class weaker students case
10th class weaker students caseAnimesh Kumar
 
Portfolios, mutual funds class
Portfolios, mutual funds  classPortfolios, mutual funds  class
Portfolios, mutual funds classAnimesh Kumar
 
Mit18 05 s14_class4slides
Mit18 05 s14_class4slidesMit18 05 s14_class4slides
Mit18 05 s14_class4slidesAnimesh Kumar
 
Mit18 05 s14_class3slides
Mit18 05 s14_class3slidesMit18 05 s14_class3slides
Mit18 05 s14_class3slidesAnimesh Kumar
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slidesAnimesh Kumar
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slidesAnimesh Kumar
 

More from Animesh Kumar (13)

10th class weaker students case
10th class weaker students case10th class weaker students case
10th class weaker students case
 
Model selection
Model selectionModel selection
Model selection
 
Portfolios, mutual funds class
Portfolios, mutual funds  classPortfolios, mutual funds  class
Portfolios, mutual funds class
 
2016 may cover
2016 may cover2016 may cover
2016 may cover
 
2016 june cover
2016 june cover2016 june cover
2016 june cover
 
2016 april cover
2016 april cover2016 april cover
2016 april cover
 
2016 march cover
2016 march cover2016 march cover
2016 march cover
 
Cjc tutorial
Cjc tutorialCjc tutorial
Cjc tutorial
 
Pen drive bootable
Pen drive bootablePen drive bootable
Pen drive bootable
 
Mit18 05 s14_class4slides
Mit18 05 s14_class4slidesMit18 05 s14_class4slides
Mit18 05 s14_class4slides
 
Mit18 05 s14_class3slides
Mit18 05 s14_class3slidesMit18 05 s14_class3slides
Mit18 05 s14_class3slides
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slides
 
Mit18 05 s14_class2slides
Mit18 05 s14_class2slidesMit18 05 s14_class2slides
Mit18 05 s14_class2slides
 

Recently uploaded

BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly BulletinBLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly BulletinBalmerLawrie
 
TikTok: The Cultural Revolution in 10 minutes!
TikTok: The Cultural Revolution in 10 minutes! TikTok: The Cultural Revolution in 10 minutes!
TikTok: The Cultural Revolution in 10 minutes! Tasos Veliadis
 
Mastering Topical Authority for SEO Success
Mastering Topical Authority for SEO SuccessMastering Topical Authority for SEO Success
Mastering Topical Authority for SEO SuccessJomer Gregorio
 
A quick journey across brands, industries and people.
A quick journey across brands, industries and people.A quick journey across brands, industries and people.
A quick journey across brands, industries and people.Stacey Cost
 
Unleashing Digital Marketing's Potential: Faith Cheltenham's Insights
Unleashing Digital Marketing's Potential: Faith Cheltenham's InsightsUnleashing Digital Marketing's Potential: Faith Cheltenham's Insights
Unleashing Digital Marketing's Potential: Faith Cheltenham's InsightsFaith Cheltenham
 
The Wealth of a Homeonwers association is analogous to the wealth of a Nation
The Wealth of a Homeonwers association is analogous to the wealth of a NationThe Wealth of a Homeonwers association is analogous to the wealth of a Nation
The Wealth of a Homeonwers association is analogous to the wealth of a NationJoseph Lewis Aguirre
 
A chronological journey of jobs and responsibilities.
A chronological journey of jobs and responsibilities.A chronological journey of jobs and responsibilities.
A chronological journey of jobs and responsibilities.Stacey Cost
 
How Your Platform Can Achieve a 90% Demo-to-Customer CVR
How Your Platform Can Achieve a 90% Demo-to-Customer CVRHow Your Platform Can Achieve a 90% Demo-to-Customer CVR
How Your Platform Can Achieve a 90% Demo-to-Customer CVRAnton Shulke
 
20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf
20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf
20221005110010_633d63baa84f6_learn___week_3_ch._5.pdflevuag
 
Liquid Staking: An Overview for Beginners in 2024
Liquid Staking: An Overview for Beginners in 2024Liquid Staking: An Overview for Beginners in 2024
Liquid Staking: An Overview for Beginners in 2024nehapardhi711
 
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_VersionThe_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_VersionAmirYakdi
 
Taking The Guesswork Out of Your Lead Generation Campaign
Taking The Guesswork Out of Your Lead Generation CampaignTaking The Guesswork Out of Your Lead Generation Campaign
Taking The Guesswork Out of Your Lead Generation CampaignMartal Group
 
Blue and Yellow Illustrative Digital Education Presentation (1).pptx
Blue and Yellow Illustrative Digital Education Presentation (1).pptxBlue and Yellow Illustrative Digital Education Presentation (1).pptx
Blue and Yellow Illustrative Digital Education Presentation (1).pptxayush20231
 
All Over Conclusion Digital Marketing / Digital Marketing Benefits
All Over Conclusion Digital Marketing / Digital Marketing BenefitsAll Over Conclusion Digital Marketing / Digital Marketing Benefits
All Over Conclusion Digital Marketing / Digital Marketing Benefitsshiekhalam2015019199
 
DSOM Dehradun-Mastering-Off & on Page-SEO
DSOM Dehradun-Mastering-Off & on Page-SEODSOM Dehradun-Mastering-Off & on Page-SEO
DSOM Dehradun-Mastering-Off & on Page-SEOsafarnamapahadi
 
SAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdf
SAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdfSAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdf
SAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdfJaveed khawaja
 
Awesome Free Global Opportunity Online Mining Crypto Currency On Your Mobile...
Awesome Free Global  Opportunity Online Mining Crypto Currency On Your Mobile...Awesome Free Global  Opportunity Online Mining Crypto Currency On Your Mobile...
Awesome Free Global Opportunity Online Mining Crypto Currency On Your Mobile...faugserv
 
Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...
Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...
Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...Prof. Marcus Renato de Carvalho
 
NexGen Alignment: ABM’s Role in Uniting Marketing and Sales
NexGen Alignment: ABM’s Role in Uniting Marketing and SalesNexGen Alignment: ABM’s Role in Uniting Marketing and Sales
NexGen Alignment: ABM’s Role in Uniting Marketing and SalesDemandbase
 

Recently uploaded (20)

Media Wall Street | Best Branding And Marketing Agency In Chandigarh
Media Wall Street | Best Branding And Marketing Agency In ChandigarhMedia Wall Street | Best Branding And Marketing Agency In Chandigarh
Media Wall Street | Best Branding And Marketing Agency In Chandigarh
 
BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly BulletinBLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
BLOOM_May2024. Balmer Lawrie Online Monthly Bulletin
 
TikTok: The Cultural Revolution in 10 minutes!
TikTok: The Cultural Revolution in 10 minutes! TikTok: The Cultural Revolution in 10 minutes!
TikTok: The Cultural Revolution in 10 minutes!
 
Mastering Topical Authority for SEO Success
Mastering Topical Authority for SEO SuccessMastering Topical Authority for SEO Success
Mastering Topical Authority for SEO Success
 
A quick journey across brands, industries and people.
A quick journey across brands, industries and people.A quick journey across brands, industries and people.
A quick journey across brands, industries and people.
 
Unleashing Digital Marketing's Potential: Faith Cheltenham's Insights
Unleashing Digital Marketing's Potential: Faith Cheltenham's InsightsUnleashing Digital Marketing's Potential: Faith Cheltenham's Insights
Unleashing Digital Marketing's Potential: Faith Cheltenham's Insights
 
The Wealth of a Homeonwers association is analogous to the wealth of a Nation
The Wealth of a Homeonwers association is analogous to the wealth of a NationThe Wealth of a Homeonwers association is analogous to the wealth of a Nation
The Wealth of a Homeonwers association is analogous to the wealth of a Nation
 
A chronological journey of jobs and responsibilities.
A chronological journey of jobs and responsibilities.A chronological journey of jobs and responsibilities.
A chronological journey of jobs and responsibilities.
 
How Your Platform Can Achieve a 90% Demo-to-Customer CVR
How Your Platform Can Achieve a 90% Demo-to-Customer CVRHow Your Platform Can Achieve a 90% Demo-to-Customer CVR
How Your Platform Can Achieve a 90% Demo-to-Customer CVR
 
20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf
20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf
20221005110010_633d63baa84f6_learn___week_3_ch._5.pdf
 
Liquid Staking: An Overview for Beginners in 2024
Liquid Staking: An Overview for Beginners in 2024Liquid Staking: An Overview for Beginners in 2024
Liquid Staking: An Overview for Beginners in 2024
 
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_VersionThe_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
The_Canvas_of_Creative_Mastery_Newsletter_May_2024_Version
 
Taking The Guesswork Out of Your Lead Generation Campaign
Taking The Guesswork Out of Your Lead Generation CampaignTaking The Guesswork Out of Your Lead Generation Campaign
Taking The Guesswork Out of Your Lead Generation Campaign
 
Blue and Yellow Illustrative Digital Education Presentation (1).pptx
Blue and Yellow Illustrative Digital Education Presentation (1).pptxBlue and Yellow Illustrative Digital Education Presentation (1).pptx
Blue and Yellow Illustrative Digital Education Presentation (1).pptx
 
All Over Conclusion Digital Marketing / Digital Marketing Benefits
All Over Conclusion Digital Marketing / Digital Marketing BenefitsAll Over Conclusion Digital Marketing / Digital Marketing Benefits
All Over Conclusion Digital Marketing / Digital Marketing Benefits
 
DSOM Dehradun-Mastering-Off & on Page-SEO
DSOM Dehradun-Mastering-Off & on Page-SEODSOM Dehradun-Mastering-Off & on Page-SEO
DSOM Dehradun-Mastering-Off & on Page-SEO
 
SAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdf
SAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdfSAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdf
SAUDI ARABIA MARKET OVERVIEW-PARTICLE BOARD.docx.pdf
 
Awesome Free Global Opportunity Online Mining Crypto Currency On Your Mobile...
Awesome Free Global  Opportunity Online Mining Crypto Currency On Your Mobile...Awesome Free Global  Opportunity Online Mining Crypto Currency On Your Mobile...
Awesome Free Global Opportunity Online Mining Crypto Currency On Your Mobile...
 
Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...
Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...
Relatório da OMS / Unicef / IBFAN sobre a situação do Código Internacional de...
 
NexGen Alignment: ABM’s Role in Uniting Marketing and Sales
NexGen Alignment: ABM’s Role in Uniting Marketing and SalesNexGen Alignment: ABM’s Role in Uniting Marketing and Sales
NexGen Alignment: ABM’s Role in Uniting Marketing and Sales
 

Spss tutorial-cluster-analysis

  • 1. SPSS TutorialSPSS Tutorial AEB 37 / AE 802 Marketing Research Methods Week 7
  • 2. Cluster analysisCluster analysis Lecture / Tutorial outline • Cluster analysis • Example of cluster analysis • Work on the assignment
  • 3. Cluster AnalysisCluster Analysis • It is a class of techniques used to classify cases into groups that are relatively homogeneous within themselves and heterogeneous between each other, on the basis of a defined set of variables. These groups are called clusters.
  • 4. Cluster Analysis andCluster Analysis and marketing researchmarketing research • Market segmentation. E.g. clustering of consumers according to their attribute preferences • Understanding buyers behaviours. Consumers with similar behaviours/characteristics are clustered • Identifying new product opportunities. Clusters of similar brands/products can help identifying competitors / market opportunities • Reducing data. E.g. in preference mapping
  • 5. Steps to conduct aSteps to conduct a Cluster AnalysisCluster Analysis 1. Select a distance measure 2. Select a clustering algorithm 3. Determine the number of clusters 4. Validate the analysis
  • 6. REGR factor score 2 for analysis 1 43210-1-2-3 REGRfactorscore1foranalysis1 3 2 1 0 -1 -2 -3 -4
  • 7. Defining distance: theDefining distance: the Euclidean distanceEuclidean distance Dij distance between cases i and j xki value of variable Xk for case j Problems: • Different measures = different weights • Correlation between variables (double counting) Solution: Principal component analysis   2 1 n ij ki kj k D x x   
  • 8. Clustering proceduresClustering procedures • Hierarchical procedures – Agglomerative (start from n clusters, to get to 1 cluster) – Divisive (start from 1 cluster, to get to n cluster) • Non hierarchical procedures – K-means clustering
  • 10. AgglomerativeAgglomerative clusteringclustering • Linkage methods – Single linkage (minimum distance) – Complete linkage (maximum distance) – Average linkage • Ward’s method 1. Compute sum of squared distances within clusters 2. Aggregate clusters with the minimum increase in the overall sum of squares • Centroid method – The distance between two clusters is defined as the difference between the centroids (cluster averages)
  • 11. KK--means clusteringmeans clustering 1. The number k of cluster is fixed 2. An initial set of k “seeds” (aggregation centres) is provided • First k elements • Other seeds 3. Given a certain treshold, all units are assigned to the nearest cluster seed 4. New seeds are computed 5. Go back to step 3 until no reclassification is necessary Units can be reassigned in successive steps (optimising partioning)
  • 12. Hierarchical vs NonHierarchical vs Non hierarchical methodshierarchical methods Hierarchical clustering • No decision about the number of clusters • Problems when data contain a high level of error • Can be very slow • Initial decision are more influential (one- step only) Non hierarchical clustering • Faster, more reliable • Need to specify the number of clusters (arbitrary) • Need to set the initial seeds (arbitrary)
  • 13. Suggested approachSuggested approach 1. First perform a hierarchical method to define the number of clusters 2. Then use the k-means procedure to actually form the clusters
  • 14. Defining the number ofDefining the number of clusters: elbow rule (1)clusters: elbow rule (1) Agglomeration Schedule 4 7 .015 0 0 4 6 10 .708 0 0 5 8 9 .974 0 0 4 4 8 1.042 1 3 6 1 6 1.100 0 2 7 4 5 3.680 4 0 7 1 4 3.492 5 6 8 1 11 6.744 7 0 9 1 2 8.276 8 0 10 1 12 8.787 9 0 11 1 3 11.403 10 0 0 Stage 1 2 3 4 5 6 7 8 9 10 11 Cluster 1Cluster 2 Cluster Combined CoefficientsCluster 1 Cluster 2 Stage Cluster First Appears Next Stage Stage Number of clusters 0 12 1 11 2 10 3 9 4 8 5 7 6 6 7 5 8 4 9 3 10 2 11 1 n
  • 15. Elbow rule (2): theElbow rule (2): the screescree diagramdiagram 0 2 4 6 8 10 12 11 10 9 8 7 6 5 4 3 2 1 Number of clusters Distance
  • 16. Validating theValidating the analysisanalysis • Impact of initial seeds / order of cases • Impact of the selected method • Consider the relevance of the chosen set of variables
  • 19. Agglomeration Schedule 3 6 .026 0 0 8 2 5 .078 0 0 7 4 9 .224 0 0 5 1 7 .409 0 0 6 4 10 .849 3 0 8 1 8 1.456 4 0 7 1 2 4.503 6 2 9 3 4 9.878 1 5 9 1 3 18.000 7 8 0 Stage 1 2 3 4 5 6 7 8 9 Cluster 1 Cluster 2 Cluster Combined Coefficients Cluster 1 Cluster 2 Stage Cluster First Appears Next Stage Number of clusters: 10 – 6 = 4
  • 20. Component1 2.01.51.0.50.0-.5-1.0-1.5 Component2 1.5 1.0 .5 0.0 -.5 -1.0 -1.5 -2.0 Cluster Number of Ca 4 3 2 1 LUCY JULIA FRED ARTHUR JENNIFER THOMAS MATTHEW NICOLE PAMELA JOHN
  • 21. Open the datasetOpen the dataset supermarkets.savsupermarkets.sav From your N: directory (if you saved it there last time Or download it from: http://www.rdg.ac.uk/~aes02mm/ supermarket.sav • Open it in SPSS
  • 23. Run PrincipalRun Principal Components AnalysisComponents Analysis and save scoresand save scores • Select the variables to perform the analysis • Set the rule to extract principal components • Give instruction to save the principal components as new variables
  • 24. Cluster analysis:Cluster analysis: basic stepsbasic steps • Apply Ward’s methods on the principal components score • Check the agglomeration schedule • Decide the number of clusters • Apply the k-means method
  • 26. Select the componentSelect the component scoresscores Select from here Untick this
  • 27. Select WardSelect Ward’’s algorithms algorithm Click here first Select method here
  • 29. Number of clustersNumber of clusters Identify the step where the “distance coefficients” makes a bigger jump
  • 30. TheThe screescree diagramdiagram (Excel needed)(Excel needed) Distance 0 100 200 300 400 500 600 700 800 118 120 122 124 126 128 130 132 134 136 138 140 142 144 146 148 Step
  • 31. Number of clustersNumber of clusters Number of cases 150 Step of ‘elbow’ 144 __________________________________ Number of clusters 6
  • 32. Now repeat theNow repeat the analysisanalysis • Choose the k-means technique • Set 6 as the number of clusters • Save cluster number for each case • Run the analysis
  • 34. KK--means dialog boxmeans dialog box Specify number of clusters
  • 35. Save cluster membershipSave cluster membership Click here first Thick here
  • 38. Component Matrixa .810 -.294 -4.26E-02 .183 .173 .480 -.152 .347 .334 -5.95E-02 .525 -.206 -.475 -4.35E-02 .140 .192 -.345 -.127 .383 .199 .646 -.281 -.134 -.239 -.207 .536 .619 -.102 -.172 6.008E-02 .492 -.186 .190 .460 .342 1.784E-02 -9.24E-02 .647 -.287 .507 .649 .612 .135 -6.12E-02 -3.29E-03 .369 .663 .247 .184 1.694E-02 .124 -9.53E-02 .462 .232 -.529 2.989E-02 .406 -.349 .559 -8.14E-02 .443 -.271 .182 -5.61E-02 -.465 .908 -4.75E-02 -7.46E-02 -.197 -3.26E-02 .891 -5.64E-02 -6.73E-02 -.228 6.942E-04 Monthly amount spent Meat expenditure Fish expenditure Vegetables expenditure % spent in own-brand product Own a car % spent in organic food Vegetarian Household Size Number of kids Weekly TV watching (hours) Weekly Radio listening (hours) Surf the web Yearly household income Age of respondent 1 2 3 4 5 Component Extraction Method: Principal Component Analysis. 5 components extracted.a. Component meaningComponent meaning (tutorial week 5)(tutorial week 5) 1. “Old Rich Big Spender” 3. Vegetarian TV lover 4. Organic radio listener 2. Family shopper 5. Vegetarian TV and web hater
  • 39. Final Cluster Centers -1.34392 .21758 .13646 .77126 .40776 .72711 .38724 -.57755 -1.12759 .84536 .57109 -.58943 -.22215 -.09743 1.41343 .17812 1.05295 -1.39335 .15052 -.28837 -.30786 1.09055 -1.34106 .04972 .04886 -.93375 1.23631 -.11108 .31902 .87815 REGR factor score 1 for analysis 1 REGR factor score 2 for analysis 1 REGR factor score 3 for analysis 1 REGR factor score 4 for analysis 1 REGR factor score 5 for analysis 1 1 2 3 4 5 6 Cluster
  • 40. Cluster interpretationCluster interpretation through mean component valuesthrough mean component values • Cluster 1 is very far from profile 1 (-1.34) and more similar to profile 2 (0.38) • Cluster 2 is very far from profile 5 (-0.93) and not particularly similar to any profile • Cluster 3 is extremely similar to profiles 3 and 5 and very far from profile 2 • Cluster 4 is similar to profiles 2 and 4 • Cluster 5 is very similar to profile 3 and very far from profile 4 • Cluster 6 is very similar to profile 5 and very far from profile 3
  • 41. Which cluster toWhich cluster to target?target? • Objective: target the organic consumer • Which is the cluster that looks more “organic”? • Compute the descriptive statistics on the original variables for that cluster
  • 42. Representation of factors 1Representation of factors 1 and 4and 4 (and cluster membership)(and cluster membership) REGR factor score 1 for analysis 1 210-1-2-3 REGRfactorscore4foranalysis1 3 2 1 0 -1 -2 -3 Cluster Number of Ca 6 5 4 3 2 1