Compositional Data Analysis (Log-Ratio Methods)
Compositional data analysis treats parts that sum to a constant, such as percentages or proportions, through log-ratio coordinates so that results do not depend on the arbitrary total.
조성 자료 분석은 백분율·비율처럼 합이 일정한 부분들을 로그비 좌표로 다루어, 임의의 총합에 결과가 좌우되지 않게 하는 방법입니다.
Also known as: Isometric Log-Ratio Transformation; Compositional Analysis with Multiplicative Zero Replacement
다른 이름: 등거리 로그비 변환; 승법 영 대체 조성 자료 분석
My variables are percentages that add up to 100; how should I summarise and analyse them without the spurious correlations caused by the constant sum?
변수들이 합해서 100이 되는 백분율인데, 합이 일정해서 생기는 가짜 상관 없이 요약하고 분석하려면 어떻게 하나요?
Compositional data analysis closes each row to 1, replaces zeros, and works with log-ratios: the centre is the closed geometric mean, the variation matrix gives the variance of every pairwise log-ratio, and a clr biplot shows the main patterns. Isometric log-ratio (ilr) coordinates can then be used in ordinary statistical models.
When to use Compositional Data Analysis (Log-Ratio Methods)
- Your variables are shares, percentages or concentrations that sum to a constant
- You want to describe the typical composition and which parts vary relative to each other
- You need coordinates of a composition to use in regression, clustering or tests
When to use something else
- The parts do not share a meaningful total and absolute amounts matter: analyse the raw amounts with Principal Component Analysis
- Many zeros are structural (the part truly cannot occur): log-ratios are undefined, so model the presence of each part separately or merge parts before a log-ratio analysis
Assumptions and requirements
- Only relative information between parts is of interest
- Zeros are rounded or below detection rather than structural
- Parts are measured on the same scale for each row
What the analysis reports
- Centre (closed geometric mean) and total variance
- Variation matrix of pairwise log-ratio variances
- clr variances and clr-PCA biplot loadings
- ilr (pivot or user balances), clr or alr coordinate summaries
- Zero replacement report
How to report it
The [D]-part composition (N = [n]) had a total variance of [value]; the centre was [part] = [value], [part] = [value], and the first clr principal component explained [value]% of the variance.
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Compositional Data Analysis (Log-Ratio Methods) itself, at the same price.
- Additive Log-Ratio Transformation — transform set to “alr”
- Centred Log-Ratio Transformation — transform set to “clr”
Related methods
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 Compositional Data Analysis (Log-Ratio Methods) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 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.