A Python Library For Empirical Calibration

Xiaojing Wang, Jingang Miao, Yunting Sun
6/27/2019
stat.COstat.APstat.ME

Official code: google/empirical_calibration (45 stars, Apache-2.0, last commit 2024-05-05).

Abstract

Dealing with biased data samples is a common task across many statistical fields. In survey sampling, bias often occurs due to unrepresentative samples. In causal studies with observational data, the treated versus untreated group assignment is often correlated with covariates, i.e., not random. Empirical calibration is a generic weighting method that presents a unified view on correcting or reducing the data biases for the tasks mentioned above. We provide a Python library EC to compute the empirical calibration weights. The problem is formulated as convex optimization and solved efficiently in the dual form. Compared to existing software, EC is both more efficient and robust. EC also accommodates different optimization objectives, supports weight clipping, and allows inexact calibration, which improves usability. We demonstrate its usage across various experiments with both simulated and real-world data.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
4516Python, StarlarkFeb 1, 20192 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2019python,
  title  = {A Python Library For Empirical Calibration},
  author = {Xiaojing Wang and Jingang Miao and Yunting Sun},
  year   = {2019},
  eprint = {1906.11920},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.11920}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.11920.svg)](https://codeofpaper.com/paper/1906.11920)

Discussion