ROCK Clustering for Categorical Data
ROCK clusters records made of categorical attributes by counting links: two records are neighbours when enough of their attribute values coincide, and the link between them is the number of neighbours they share. Clusters are merged agglomeratively according to a goodness measure that rewards many links relative to what the cluster sizes would produce by chance.
범주형 속성으로 된 기록을 자카드 유사도로 이웃 여부를 정하고, 두 기록이 공유하는 이웃 수(링크)를 바탕으로 적합도가 가장 높은 군집부터 합치는 응집형 군집 방법입니다.
How can I group records described only by categories, such as survey answers or purchased items, so that groups are held together by many shared neighbours rather than by a few chance matches?
범주로만 된 응답이나 구매 기록을 우연한 일치가 아니라 많은 공통 이웃으로 묶으려면 어떻게 해야 할까요?
Records are compared by Jaccard similarity of their attribute values, neighbours are pairs above the threshold theta, and links count common neighbours. Clusters with the highest normalised link count merge first until the requested number remains; records without neighbours are outliers, and records outside the sample join the cluster where they have the most neighbours relative to its size.
When to use ROCK Clustering for Categorical Data
- All clustering variables are categorical and distances between category codes make no sense.
- Similar records should be connected through shared neighbours rather than direct similarity alone.
- Some records may be isolated and should be left out as outliers.
When to use something else
- Answers should be explained by latent classes with probabilities: use Latent Class Analysis (LCA)
- Variables are a mix of numeric and categorical: use Mixed-Type Clustering (Gower PAM, K-Prototypes, K-Modes)
- All variables are binary and you want splits by single variables: use MONA Monothetic Divisive Clustering of Binary Data
Assumptions and requirements
- The similarity threshold theta suits the data
- The number of clusters is chosen in advance
- The random sample contains every cluster
What the analysis reports
- Cluster labels and sizes
- Most frequent category of each variable per cluster
- Number of outliers
- Whether merging stopped early for lack of links
How to report it
ROCK clustering with theta = [value] gave [value] clusters of sizes [value]; [value] records had no neighbours and were treated as outliers.
Related methods
- Latent Class Analysis (LCA)
- Mixed-Type Clustering (Gower PAM, K-Prototypes, K-Modes)
- MONA Monothetic Divisive Clustering of Binary Data
- Hierarchical Cluster Analysis
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run ROCK Clustering for Categorical Data 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
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.