Aitchison Distance Between Compositions
The Aitchison distance measures how different two compositions (parts of a whole such as budget shares, mineral or species proportions) are in relative terms. It is the Euclidean distance between centred log-ratio vectors, so it depends only on the ratios between parts and not on the totals. The method reports each composition's distance to the compositional centre, nearest-neighbour and pairwise distances, and with a group column the distances between group centres with a permutation pseudo-F test.
에이치슨 거리는 예산 비중, 광물이나 생물종의 구성비처럼 전체의 부분으로 이루어진 조성 자료가 서로 얼마나 다른지를 상대적인 비율로 잽니다. 중심 로그비 벡터 사이의 유클리드 거리이므로 총량과 무관하게 부분 사이의 비율만으로 정해집니다. 각 조성이 조성 중심에서 떨어진 거리, 가장 가까운 이웃과 쌍별 거리를 구하고, 집단 열을 주면 집단 중심 사이 거리와 순열 유사 F 검정을 함께 냅니다.
How far apart are these compositions, which ones are most atypical, and do group centres differ?
이 조성들은 서로 얼마나 떨어져 있고, 어떤 조성이 가장 특이하며, 집단 중심은 서로 다릅니까?
You get a table of compositions ranked by their Aitchison distance to the closed geometric mean, the closest pair, the mean pairwise distance and, when groups are given, a matrix of distances between group centres with a pseudo-F, R squared and permutation p-value.
When to use Aitchison Distance Between Compositions
- Rows are proportions, percentages or amounts whose total is arbitrary or fixed and only relative information matters.
- You want a distance that is scale invariant and consistent when parts are dropped or regrouped.
- You need to flag unusual compositions or compare the centres of several groups.
When to use something else
- You want clusters of compositions: use Compositional Data Clustering (Aitchison Distance)
- You want log-ratio coordinates, the variation matrix and a clr biplot: use Compositional Data Analysis (Log-Ratio Methods)
- Values are ordinary measurements, not parts of a whole: use PERMANOVA
Assumptions and requirements
- All parts are positive, or zeros are rare and can be replaced multiplicatively
- Each row describes the same set of parts
- For the permutation test, observations are exchangeable under the null hypothesis
What the analysis reports
- Distance of every composition to the compositional centre
- Nearest-neighbour distance and closest pair, mean and median pairwise distance
- Closed geometric mean (centre) of the compositions
- With groups: distances between group centres, pseudo-F, R squared and permutation p-value
How to report it
Across [value] compositions the mean Aitchison distance to the centre was [value]; group centres differed (pseudo-F([value], [value]) = [value], permutation p = [value]).
Related methods
- Compositional Data Analysis (Log-Ratio Methods)
- Compositional Data Clustering (Aitchison Distance)
- PERMANOVA
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-9.
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-9).
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 Aitchison Distance Between Compositions on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.