Compositional Data Clustering (Aitchison Distance)
Compositional clustering groups rows whose parts are shares of a whole, such as budget shares, time-use percentages or chemical compositions, by measuring their differences in the Aitchison geometry. Rows are closed to proportions, zeros are replaced, and the centred log-ratio transform turns ratios between parts into coordinates where ordinary k-means or Ward clustering respects the relative nature of the data.
전체의 몫으로 이루어진 자료를 비율로 닫고 0을 대체한 뒤 중심 로그비로 바꾸어, 에이치슨 거리에 따라 k-평균이나 Ward 방식으로 군집하는 방법입니다.
Which households, samples or regions have similar mixes of parts when only the relative proportions matter and the totals do not?
총량은 상관없고 구성 비율만 중요할 때, 구성이 비슷한 가구나 시료는 어떻게 묶일까요?
Each composition is turned into centred log-ratios, so the Euclidean distance between two rows equals their Aitchison distance. Clustering in that space gives groups whose centres are reported as closed geometric means in percent, and the number of clusters can be chosen by the average silhouette in the Aitchison metric.
When to use Compositional Data Clustering (Aitchison Distance)
- Each row is a set of non-negative parts that add up to a total that carries no information.
- You want clusters that do not depend on whether the data were recorded as counts, shares or percentages.
- Ratios between parts, rather than absolute differences, describe what makes rows alike.
When to use something else
- You want to compare or model compositions rather than group them: use Compositional Data Analysis (Log-Ratio Methods)
- The composition is the outcome of a regression: use Dirichlet Regression for Compositional Outcomes
- The variables are ordinary measurements on unrelated scales: use K-Means Clustering
Assumptions and requirements
- Parts are non-negative and only their ratios are meaningful
- Zeros are rounded values below detection rather than structural absences
- Clusters are roughly spherical in log-ratio space
What the analysis reports
- Cluster centres as compositions in percent
- Cluster sizes
- Average silhouette in the Aitchison metric for each k
- Share of total log-ratio variation between clusters
- Number of zero cells replaced
How to report it
Compositions of [value] parts were clustered by k-means on centred log-ratio coordinates; [value] clusters maximised the average Aitchison silhouette ([value]), with [value] of the total log-ratio variation between clusters.
Related methods
- Compositional Data Analysis (Log-Ratio Methods)
- K-Means Clustering
- Hierarchical Cluster Analysis
- Dirichlet Regression for Compositional Outcomes
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 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 Compositional Data Clustering (Aitchison Distance) 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.