mlsanityData to 14 Oct 2026

balance -- a Python package for balancing biased data samples

arXiv 2307.06024 ↗First posted 12 Jul 2023stat.CO stat.MLcited by 1

Not on the map. Why?

Abstract (arXiv)

Surveys are an important research tool, providing unique measurements on subjective experiences such as sentiment and opinions that cannot be measured by other means. However, because survey data is collected from a self-selected group of participants, directly inferring insights from it to a population of interest, or training ML models on such data, can lead to erroneous estimates or under-performing models. In this paper we present balance, an open-source Python package by Meta, offering a simple workflow for analyzing and adjusting biased data samples with respect to a population of interest. The balance workflow includes three steps: understanding the initial bias in the data relative to a target we would like to infer, adjusting the data to correct for the bias by producing weights for each unit in the sample based on propensity scores, and evaluating the final biases and the variance inflation after applying the fitted weights. The package provides a simple API that can be used by researchers and data scientists from a wide range of fields on a variety of data. The paper provides the relevant context, methodological background, and presents the package's API.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 5 of its 62 references that are in the map. First posted on arXiv 12 Jul 2023.

Builds on

5 of 62 references.

References · 5

  1. 2020DoWhy: An End-to-End Library for Causal Inferencecited by 95
  2. 2020CausalML: Python Package for Causal Machine Learningcited by 74
  3. 2016Balancing Covariates via Propensity Score Weightingcited by 65
  4. 2020PSweight: An R Package for Propensity Score Weighting Analysiscited by 3
  5. 2019A Python Library For Empirical Calibrationcited by 2

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.