Entropy Balancing

Statistics
Introduced by
Jens Hainmueller
Year
2012
Type
Covariate-balancing reweighting
Family
Quasi-experimental / causal inference

What does it do?

Entropy balancing is a preprocessing method for observational causal inference with a binary treatment.

It assigns weights to control-group units so that the reweighted controls match the treatment group on a chosen set of covariate moments, such as means, variances and, where needed, skewness. Introduced by Hainmueller (2012), it uses a constrained maximum-entropy reweighting scheme and so avoids continual balance checking and iterative searching over propensity-score models. Balance is achieved only on the observed covariates and moments you specify; a causal interpretation of the estimate still requires unconfoundedness given those covariates.

The intuition behind the method

In observational data, treated and untreated units often differ on observed characteristics, so a naive comparison of outcomes is confounded by those differences. Entropy balancing keeps the treated group fixed as the reference and searches for control weights that stay as close to uniform as the constraints allow, subject to exact equality between the weighted control moments and the treated moments for each specified covariate. The reweighted control group then resembles the treated group on those features, and the outcome comparison is made on that basis. Because the constraints are imposed directly, balance on the specified moments holds by construction whenever the optimiser converges, rather than being sought by re-estimating a propensity model until balance appears. This balance concerns observed covariates only; it does not address unmeasured confounding.

History

Entropy balancing was introduced by Jens Hainmueller in a 2012 article in Political Analysis (volume 20, issue 1; published online in 2011), which presented it as an alternative to iterative propensity-score searching and reported Monte Carlo simulations and empirical applications. The article describes balancing on first, second and possibly higher covariate moments under a maximum-entropy reweighting scheme. Zhao and Percival (2017) later showed that entropy balancing is doubly robust for the ATT: the estimator is consistent if the control outcome is linear in the covariate moments that are balanced, and combining the weights with an outcome regression gives a doubly robust estimator.

When to use it

Use entropy balancing when the treatment is binary, the data are observational, and the question concerns the effect on the treated, so that the treated group can serve as the fixed reference. It is useful when you want exact balance on specified means and higher moments without repeated propensity-model re-specification, and when you want the balance achieved to be reported explicitly. It is a reasonable choice for cross-sectional or panel data with a continuous or binary outcome. Do not use it when the treatment is continuous or has more than two levels, when there are too few control units to satisfy the chosen constraints, or when unconfoundedness on the observed covariates is not credible. It does not by itself remove control units that lie outside the treated group's covariate range; if overlap is poor, restrict the sample to common support before weighting.

Limitations and considerations

  • Balance is achieved only on observed covariates included in the constraints; the method provides no protection against unmeasured confounding.
  • The optimisation may have no feasible solution when many moments are requested relative to the number of control units, in which case constraints must be reduced or the sample trimmed.
  • Adding covariates or higher-order moments enlarges the constraint set, which can concentrate weight on a few control units and reduce effective sample size.
  • Standard errors must account for the estimated weights; ordinary regression standard errors on the reweighted sample ignore that uncertainty.

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

Strengths

  • Imposes exact balance on the specified covariate moments in one optimisation, so there is no cycle of re-fitting and checking a propensity model.
  • Because the treated group is the fixed reference, the weights target the ATT directly and do not reweight the treated units.
  • The entropy objective keeps weights close to uniform, which limits the extreme weights that inverse-probability schemes can produce, although it does not remove them when constraints are demanding.
  • Extends naturally from means to variances and higher moments, which a standard mean-only balancing step does not target.
  • Gives an explicit, inspectable balance table: if the optimiser converges, the specified moments match the treated group by construction.

Applications

  • Estimating the effect of a programme on participants when the comparison group is large and must be reweighted to match participants on several covariate means and variances.
  • Reweighting a control sample before fitting an outcome regression, so that the regression is fitted to a control distribution resembling the treated group.
  • Evaluating a policy adopted by a defined set of jurisdictions, where the adopters serve as the fixed treated reference and other jurisdictions are weighted to match them.
  • Observational studies where skewed covariates, such as income, are part of the balancing set and mean-only matching is judged insufficient.

How it works

How it works

1

Identify the binary treatment D, the outcome Y, and the pre-treatment covariates X to be balanced. For each covariate, choose which moments (mean, and where relevant variance or skewness) should match the treatment group. Each chosen moment becomes one balancing constraint.

2

Under the control-group weights w, each constraint requires the weighted control moment of a covariate function c_r(X) to equal the corresponding moment m_r computed in the treatment group, that is, the treated-group average of c_r(X). Only control units receive weights, because the treated units define the target.

Formula
\sum_{i: D_i=0} w_i \, c_r(X_i) = m_r, \quad r = 1, \ldots, R
3

Among positive control weights that sum to one and satisfy all balancing constraints, the solution minimises the sum of w_i log w_i over the control units, an entropy objective that penalises departure from uniform weights. A solution exists only if the constraints can be met jointly by the available control units.

Formula
\min_{w} \sum_{i: D_i=0} w_i \log w_i \quad \text{s.t. } \sum_{i: D_i=0} w_i = 1,\; w_i > 0,\; \sum_{i: D_i=0} w_i\, c_j(X_i) = c_{1j}
4

The average treatment effect on the treated (ATT) is the difference between the treated mean outcome and the entropy-weighted control mean outcome. Because the weights were themselves estimated, standard errors must account for that step; a bootstrap that re-estimates the weights and the ATT in every replicate is a straightforward way to do so. The entropy weights can also be used in a weighted least squares outcome regression; this combined estimator is doubly robust in the sense described by Zhao and Percival (2017): it is consistent if either the weighting or the outcome model is correctly specified.

Formula
\hat{\tau}_{ATT} = \bar{Y}_{treated} - \sum_{i: D_i=0} w_i^* Y_i

Common pitfalls

  • Balancing only means when the treated and control distributions differ in spread or skew, leaving higher-moment imbalance that can still bias the estimated effect.
  • Accepting weights without inspecting their distribution; a few control units carrying most of the weight signals poor overlap and calls for trimming or a smaller constraint set.
  • Using ordinary standard errors on the weighted control sample, which treats the weights as fixed and understates uncertainty.
  • Treating exact balance on the chosen moments as evidence that confounding has been removed; the estimate is valid only under unconfoundedness, so sensitivity analysis remains necessary.
  • Applying the method to a continuous treatment; it is defined for binary treatments, and continuous-treatment analogues require separate frameworks.

Frequently asked questions

How does entropy balancing differ from propensity score weighting?

Propensity score weighting first estimates the probability of treatment with a model, then forms inverse-probability weights. Balance is an indirect result of that model and may require repeated re-specification. Entropy balancing treats balance as a hard constraint and solves for weights that meet it in one optimisation, without estimating a propensity score.

What moments should I balance?

At minimum, balance the means of the pre-treatment covariates. If the treated and control distributions differ in spread, add variances; for strongly skewed variables, consider third moments. The choice should follow substantive knowledge of which covariate features are likely to affect the outcome.

What if the optimisation reports no feasible solution?

No set of positive weights summing to one can meet all the constraints at once. Options include reducing the constraint set (fewer moments or covariates) or restricting the sample to the region of common support.

Does entropy balancing handle multiple treatment groups?

The method as described here is defined for a binary treatment. For several groups, one option is a set of separate pairwise comparisons against a common reference group, each analysed as a binary problem.

How should I report standard errors after entropy balancing?

Use a bootstrap that resamples units and re-estimates both the weights and the ATT in each replicate. Ordinary standard errors on the reweighted sample treat the weights as fixed and are therefore likely to be too small.

Is entropy balancing doubly robust?

Zhao and Percival (2017) showed that the entropy balancing ATT estimator is consistent if the control outcome is linear in the balanced covariate moments, and that combining the weights with an outcome regression gives a doubly robust estimator: it is consistent if either the weighting or the outcome model is correct.

Related methods

Sources

  1. Hainmueller, J. (2012). Entropy balancing for causal effects: A multivariate reweighting method to produce balanced samples in observational studies. Political Analysis, 20(1), 25-46.

    Open DOI reference
  2. Zhao, Q., & Coey, D. (2017). Entropy balancing is doubly robust. Journal of Causal Inference, 5(1). (Working paper version widely cited; see also Zhao & Coey 2018, Stanford GSB Research Paper.)

    Open publication reference
  3. Robustness in Econometrics, p. ?