Bayesian Coarsened Exact Matching

Statistics
Introduced by
Iacus, King & Porro (CEM framework, 2012); Bayesian extensions by Hill and subsequent authors
Year
2011-2012
Type
Quasi-experimental matching with Bayesian inference
Family
Quasi-experimental / causal inference

What does it do?

Bayesian Coarsened Exact Matching (Bayesian CEM) combines the coarsened exact matching step of Iacus, King, and Porro with Bayesian inference on the matched sample.

Continuous covariates are coarsened into bins so that treated and control units are matched exactly within bins, and priors on the treatment-effect parameters then yield a posterior distribution over the effect on the treated rather than a single point estimate. CEM matching and Bayesian outcome modelling are established as separate components in the literature; the combination described here is a general way of assembling them rather than one named, standardised procedure.

The intuition behind the method

Ordinary CEM reduces confounding by grouping covariates into bins and keeping only units whose bins contain both treated and control members. The Bayesian step asks what the matched data say about the treatment effect and how uncertain that estimate is. Prior beliefs are updated by the likelihood of the matched outcomes to give a posterior over the average effect on the treated. A single point estimate and interval can hide how much the answer depends on modelling assumptions, so the full posterior is most useful when the matched sample is small or the prior matters.

History

Coarsened exact matching was introduced by Iacus, King, and Porro in Political Analysis as a matching method that bounds imbalance without iterative balance checking. Hill's Journal of Computational and Graphical Statistics paper develops Bayesian Additive Regression Trees (BART) for modelling the response surface in causal inference; it contains no matching step and belongs to a separate line of work. No single originator of combining CEM matching with a Bayesian outcome model is established, so the combination is not attributed to a particular author.

When to use it

Choose Bayesian CEM for observational data with a binary treatment, several pre-treatment covariates that can be sensibly binned, and a continuous or binary outcome, when you want covariate-based matching together with a full posterior for the effect on the treated. It suits modest samples in which frequentist intervals may be unreliable, or analyses in which prior information should enter explicitly. Do not use it when treatment is not binary, when many covariates would leave most strata empty, or when matching would discard so many units that too little information remains to update the posterior. For a continuous treatment, the discretisation needed would change the estimand.

Limitations and considerations

  • Unmatched units are discarded, so the estimate applies to the retained subsample and can cover much less of the treated group when covariate overlap is poor.
  • Bin boundaries determine which units are matched; different cutpoints can change both the retained sample and the posterior, so sensitivity to binning should be reported.
  • Fitting the Bayesian outcome model by MCMC or variational methods adds computational and software steps beyond standard CEM.
  • The approach assumes conditional ignorability: given the coarsened covariates, treatment assignment is unrelated to potential outcomes. Unobserved confounders violate this assumption, and neither matching nor the posterior corrects for them.
  • The stable unit treatment value assumption (SUTVA) requires that one unit's treatment does not affect another unit's outcome and that the treatment is defined consistently across units. Interference between units or ambiguous treatment versions undermine the effect estimate.
  • With many covariates the number of strata grows quickly and many become empty, which lowers the matching rate.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Matching is applied directly to the coarsened covariates, so imbalance within each stratum on those covariates is limited by construction, whereas propensity-score methods balance covariates only through the estimated score.
  • Because matching does not use a propensity model, a misspecified propensity model cannot change which units are retained.
  • The output is a posterior distribution for the effect on the treated, so uncertainty is reported directly rather than through a separately constructed interval.
  • Substantive prior knowledge about the outcome model can enter the analysis explicitly.
  • The matched strata are defined by explicit bins, so the matching rule can be reported and reproduced.

Applications

  • Estimating the effect of a training programme on earnings using administrative records with several pre-treatment covariates and modest sample sizes.
  • Evaluating a medical treatment in observational clinical data where randomisation was not feasible.
  • Assessing an educational intervention in district-level data where covariate overlap is partial and the uncertainty of the estimate must be communicated.
  • Studying the effect of an institutional change on political outcomes when treated and control units can be matched on a few binned covariates.

How it works

How it works

1

Each covariate is coarsened into bins, either chosen by the analyst on substantive grounds or set by an automatic rule such as quartiles. Coarser bins produce more matches but allow more heterogeneity within each stratum, so the bin choice trades off residual imbalance against the number of retained units.

2

Treated and control units that fall in the same coarsened stratum on all matching covariates are kept; units in strata containing only one group are discarded. Within each retained stratum the units agree on the coarsened covariates, which limits imbalance on those covariates. Iacus, King, and Porro develop this property within the monotonic imbalance bounding class from which CEM is derived.

3

Prior distributions are placed on the outcome-model parameters, including the treatment effect. Weakly informative priors, such as normal or Student-t distributions, are a common choice, and substantive knowledge can justify tighter priors. The outcome model is then fitted to the matched sample only.

4

The posterior distribution of the effect on the treated is proportional to the prior multiplied by the likelihood of the matched outcome data, as the formula states. Its mean or median gives a point summary, and its spread expresses the remaining uncertainty.

Formula
\tau_{ATT} \mid \text{data} \propto p(\tau_{ATT}) \cdot \mathcal{L}(\text{data} \mid \tau_{ATT})
5

The reported estimate is the posterior mean or median of the effect on the treated, together with a highest-density or equal-tailed credible interval. Posterior predictive checks and sensitivity analysis over prior choices are used to judge whether the conclusion holds.

Common pitfalls

  • Choosing bins for convenience rather than substance can leave large imbalance within a bin that the matching rule does not reveal.
  • Overlooking discarded units: if many treated units are dropped, the posterior describes the matched subsample, not the full treated population.
  • Using vague flat priors without checking sensitivity; in small matched samples the prior can carry much of the posterior weight.
  • Reading the result as an average effect for all units: the estimand is the effect on the treated among matched units.
  • Skipping posterior predictive checks, so misfit in the outcome model may go unnoticed.

Frequently asked questions

How does Bayesian CEM differ from standard CEM?

Standard CEM reports a weighted difference-in-means or a regression estimate on the matched sample using frequentist inference. Bayesian CEM replaces that last step with a Bayesian outcome model, yielding a posterior distribution over the ATT rather than a point estimate with a confidence interval. The matching step is identical in both.

How do I choose the coarsening bins?

Bins should reflect substantive knowledge about where covariate values meaningfully differ (e.g., age decades, income quintiles). Automatic cutpoints, such as quantile-based cuts, can serve as a starting point, but sensitivity of the matched sample and the posterior to bin choices should always be reported.

What prior should I use for the treatment effect?

A weakly informative prior such as a normal distribution centred at zero with a scale that reflects plausible effect magnitudes is a reasonable default. If domain knowledge suggests a direction or magnitude, a more informative prior is appropriate. Always run a sensitivity analysis varying the prior to check how much it influences the posterior.

What if many units are discarded by the matching step?

A high discard rate signals poor covariate overlap between treated and control groups. Options include relaxing the coarsening (wider bins), restricting the analysis to the region of common support, or switching to a method that does not require exact stratum membership, such as propensity-score weighting with Bayesian inference.

Can Bayesian CEM handle continuous treatments?

The standard CEM framework is designed for binary treatments. Extending it to continuous treatments requires discretising the treatment variable, which changes the causal estimand and interpretation. For continuous treatments, Bayesian nonparametric response-surface models such as BART, which Hill (2011) reports can handle continuous treatment variables, or Bayesian marginal structural models are more natural choices.

Related methods

Sources

  1. Iacus, S. M., King, G., & Porro, G. (2012). Causal Inference without Balance Checking: Coarsened Exact Matching. Political Analysis, 20(1), 1-24.

    Open DOI reference
  2. Hill, J. L. (2011). Bayesian Nonparametric Modeling for Causal Inference. Journal of Computational and Graphical Statistics, 20(1), 217-240.

    Open DOI reference