Skip to content

Methods · Causal inference · Distributional decomposition

Counterfactual Distribution Decomposition (Machado-Mata / Chernozhukov-Fernandez-Val-Melly)

Counterfactual distribution decomposition splits the difference between two groups' outcome distributions, quantile by quantile, into a part explained by different covariates (composition) and a part explained by different conditional quantile functions (structure), using the distribution the reference group would have had with the other group's covariates.

반사실 분포 분해는 두 집단의 결과 분포 차이를 분위수마다 공변량 구성의 차이로 설명되는 부분과 조건부 분위수 함수의 차이로 설명되는 부분으로 나눕니다. 기준 집단이 비교 집단의 공변량을 가졌을 때의 반사실 분포를 이용합니다.

Is the gap between two groups at the bottom and the top of the outcome distribution driven by who is in each group or by how characteristics are rewarded?

두 집단의 격차가 분포의 아래쪽과 위쪽에서 집단 구성 때문인지, 특성에 대한 보상 구조 때문인지 알 수 있을까요?

Linear quantile regressions are fitted for each group over a fine grid of quantiles. Combining the reference group's coefficients with the comparison group's covariates gives a counterfactual distribution. The gap at each chosen quantile is then the composition effect (counterfactual minus reference) plus the structure effect (comparison minus counterfactual); a bootstrap gives intervals.

When to use Counterfactual Distribution Decomposition (Machado-Mata / Chernozhukov-Fernandez-Val-Melly)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

At the [value] quantile the gap of [value] split into a composition effect of [value] and a structure effect of [value] (95% bootstrap CI [value, value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with reference values computed independently in the test suite.

    독립 계산. 시험에서 따로 계산한 참조값 대조 참조 시험 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 Counterfactual Distribution Decomposition (Machado-Mata / Chernozhukov-Fernandez-Val-Melly) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable, a grouping variable and 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.

Method ID Q81072 · Reviewed 2026-10-25