Mixed-Type Clustering (Gower PAM, K-Prototypes, K-Modes)
Mixed-type clustering groups cases described by both numeric and categorical variables, using Gower dissimilarity with partitioning around medoids, k-prototypes cost minimisation, or k-modes for purely categorical data.
혼합형 군집분석은 수치형과 범주형 변수가 섞인 자료에서 Gower 비유사도와 PAM, k-prototypes 비용 최소화, 또는 범주형 전용 k-modes로 사례를 묶는 방법입니다.
Also known as: Mixed-Type Clustering (Gower Distance and PAM)
다른 이름: 혼합형 군집분석(Gower 거리·PAM)
My survey has age, income, region and occupation; how do I cluster respondents when some variables are categories and others are numbers?
나이·소득 같은 숫자 변수와 지역·직업 같은 범주 변수가 섞여 있는데, 응답자를 어떻게 군집으로 나누나요?
Compute Gower dissimilarity, which range-scales numeric differences and scores categorical mismatches as 0 or 1, and partition it with PAM, or minimise squared distance plus a weighted mismatch count with k-prototypes. Choose the number of clusters by the average silhouette width and describe each cluster by its medoid or by numeric means and category modes.
When to use Mixed-Type Clustering (Gower PAM, K-Prototypes, K-Modes)
- Cases are described by a mix of numeric and categorical variables.
- You want representative real cases (medoids) for each segment.
- All variables are categorical and you want mode-based segments (k-modes).
When to use something else
- All variables are continuous and roughly spherical clusters are expected; use K-Means Clustering instead.
- You need probabilistic membership and model-based fit statistics; use Latent Class Analysis instead.
Assumptions and requirements
- Each variable contributes equally to Gower dissimilarity unless weighted otherwise.
- Rows with missing values are dropped rather than handled by partial Gower weights.
- Clusters are summarised well by a central case or by means and modes.
What the analysis reports
- Chosen k and Gower silhouette by k (2 to 10)
- Cluster sizes and medoid row identifiers (Gower PAM)
- Numeric means, category modes and modal share per cluster
- Total within-cluster cost and the gamma weight (k-prototypes)
- Medoid search on a random sample of 1,000 rows when N is larger, with the remaining rows assigned to the nearest medoid
How to report it
A Gower PAM cluster analysis of [p] variables ([p1] numeric, [p2] categorical; N = [n]) yielded k = [k] clusters (sizes: [sizes]), average silhouette width = [value].
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Mixed-Type Clustering (Gower PAM, K-Prototypes, K-Modes) itself, at the same price.
- Mixed-Type Clustering (k-Prototypes) — method set to “kprototypes”
Related methods
- K-Medoids (PAM) Clustering
- K-Means Clustering
- Latent Class Analysis
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run Mixed-Type Clustering (Gower PAM, K-Prototypes, K-Modes) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.