Bayesian-Multiplicative Zero Replacement for Compositions (GBM)
Log-ratio analysis of compositions cannot handle zeros. When zeros arise because counts were too small to observe a part, the Bayesian-multiplicative method replaces each zero by its posterior expectation under a Dirichlet prior and rescales the non-zero parts multiplicatively so that their ratios are kept. In the geometric Bayesian-multiplicative version the prior expectation of each part comes from the geometric means of that part in the other samples, so the data inform the replacement without using the sample's own values.
조성 자료의 로그비 분석은 0을 다룰 수 없습니다. 0이 표본 수가 적어 어떤 부분을 관측하지 못해 생긴 것이라면, 베이즈-곱셈 대체는 각 0을 디리클레 사전분포 아래의 사후 기댓값으로 바꾸고 0이 아닌 부분은 곱셈으로 다시 맞춰 그 사이의 비율을 지킵니다. 기하 베이즈-곱셈 방식은 각 부분의 사전 기댓값을 다른 표본에서 그 부분의 기하평균으로 정하므로, 자기 값은 쓰지 않으면서 자료의 정보를 대체에 반영합니다.
How should the count zeros in these compositions be replaced so that log-ratio methods can be applied without distorting the ratios among observed parts?
로그비 방법을 쓸 수 있도록 이 조성 자료의 계수 0을 관측된 부분 사이의 비율을 흐리지 않고 어떻게 대체해야 합니까?
You get the replaced compositions (as proportions or pseudo-counts) for every row with zeros, the prior strength used, and per-part counts of zeros with their mean replacement value.
When to use Bayesian-Multiplicative Zero Replacement for Compositions (GBM)
- Compositional count data (microbiome reads, species counts, votes, expenditure counts) contain sampling zeros.
- You plan to use log-ratio transformations, Aitchison distances or compositional regression afterwards.
- Zeros are due to limited sampling depth rather than true absence.
When to use something else
- You want the log-ratio analysis itself: use Compositional Data Analysis (Log-Ratio Methods)
- The zeros are true absences that should remain zero: use Dirichlet Regression for Compositional Outcomes
- You want to cluster the compositions: use Compositional Data Clustering (Aitchison Distance)
Assumptions and requirements
- Zeros are count (sampling) zeros, not structural zeros
- Every part is positive in at least two rows (for the geometric prior)
- Rows are counts of the same set of parts
What the analysis reports
- Replaced compositions for rows containing zeros
- Prior strength per row
- Number of zeros and mean replacement per part
- Warning when a replacement exceeds the smallest observed proportion of its part
How to report it
[value] count zeros in [value] of [value] compositions were replaced by geometric Bayesian-multiplicative estimates (mean replaced proportion [value]).
Related methods
- Compositional Data Analysis (Log-Ratio Methods)
- Compositional Data Clustering (Aitchison Distance)
- 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) at a stated tolerance of 1e-12.
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-12).
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 Bayesian-Multiplicative Zero Replacement for Compositions (GBM) 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.