Inverse probability weighting explained

Inverse probability weighting is a statistical technique for estimating quantities related to a population other than the one from which the data was collected. Study designs with a disparate sampling population and population of target inference (target population) are common in application. There may be prohibitive factors barring researchers from directly sampling from the target population such as cost, time, or ethical concerns. A solution to this problem is to use an alternate design strategy, e.g. stratified sampling. Weighting, when correctly applied, can potentially improve the efficiency and reduce the bias of unweighted estimators.

One very early weighted estimator is the Horvitz–Thompson estimator of the mean.[1] When the sampling probability is known, from which the sampling population is drawn from the target population, then the inverse of this probability is used to weight the observations. This approach has been generalized to many aspects of statistics under various frameworks. In particular, there are weighted likelihoods, weighted estimating equations, and weighted probability densities from which a majority of statistics are derived. These applications codified the theory of other statistics and estimators such as marginal structural models, the standardized mortality ratio, and the EM algorithm for coarsened or aggregate data.

Inverse probability weighting is also used to account for missing data when subjects with missing data cannot be included in the primary analysis.With an estimate of the sampling probability, or the probability that the factor would be measured in another measurement, inverse probability weighting can be used to inflate the weight for subjects who are under-represented due to a large degree of missing data.

Inverse Probability Weighted Estimator (IPWE)

The inverse probability weighting estimator can be used to demonstrate causality when the researcher cannot conduct a controlled experiment but has observed data to model. Because it is assumed that the treatment is not randomly assigned, the goal is to estimate the counterfactual or potential outcome if all subjects in population were assigned either treatment.

Suppose observed data are

\{l(Xi,Ai,Y

n
i=1
drawn i.i.d (independent and identically distributed) from unknown distribution P, where

X\inRp

covariates

A\in\{0,1\}

are the two possible treatments.

Y\inR

response

The goal is to estimate the potential outcome,

Y*l(ar)

, that would be observed if the subject were assigned treatment

a

. Then compare the mean outcome if all patients in the population were assigned either treatment:

\mua=EY*(a)

. We want to estimate

\mua

using observed data

\{l(Xi,Ai,Y

n
i=1
.

Estimator Formula

IPWE
\hat{\mu}
a,n

=

1
n
n
\sum
i=1

Yi

1
Ai=a
\hat{p

n(Ai|Xi)}

Constructing the IPWE

\mua=E\left[

1A=aY
p(A|X)

\right]

where

p(a|x)=

P(A=a,X=x)
P(X=x)
  1. construct

\hat{p}n(a|x)

or

p(a|x)

using any propensity model (often a logistic regression model)
IPWE
\hat{\mu}
a,n

=

n
\sum
i=1
Y
1
Ai=a
i
n\hat{p

n(Ai|Xi)}

With the mean of each treatment group computed, a statistical t-test or ANOVA test can be used to judge difference between group means and determine statistical significance of treatment effect.

Assumptions

Recall the joint probability model

(X,A,Y)\simP

for the covariate

X

, action

A

, and response

Y

. If

X

and

A

are known as

x

and

a

, respectively, then the response

Y(X=x,A=a)=Y(x,a)

has the distribution

\begin{align} Y(x,a)\sim

P(x,a,)
\intP(x,a,y)dy

. \end{align}

We make the following assumptions.

Y=Y*(A)

\{Y*(0),Y*(1)\}\perpA|X

. More formally, for each bounded and measurable functions

f

and

g

, \begin\qquad \mathbb_\left[f(Y(X,a))\, g(A)\,|\, X\right] =\mathbb_\left[f(Y(X,a))\,|\, X\right] \, \mathbb_\left[g(A)\,|\, X\right].\endThis means that treatment assignment is based solely on covariate data and independent of potential outcomes.

P(A=a|X=x)=EA[1(A=a)|X=x]>0

for all

a

and

x

.

Formal derivation

Under the assumptions (A1)-(A3), we will derive the following identities

\begin{align} E\left[Y*(a)\right]=E(X,Y)\left[Y(X,a)\right]=E(X,A,Y)\left[

Y1(A=a)
P(A=a|X)

\right].    (*) \end{align}

The first equality follows from the definition and (A1). For the second equality, first use the iterated expectation to write

\begin{align} E(X,Y)\left[Y(X,a)\right]=EX\left[EY\left[Y(X,a)|X\right]\right]. \end{align}

By (A3),

EA[1(A=a)|X]>0

almost surely. Then using (A2), note that

\begin{align} EY\left[Y(X,a)|X\right]&=

EY\left[Y(X,a)|X\right]EA[1(A=a)|X]
EA[1(A=a)|X]

\\ &=

E(A,Y)\left[Y(X,a)1(A=a)|X\right]
E[1(A=a)|X]

   (A2)\\ &=E(A,Y)\left[

Y(X,a)1(A=a)
E[1(A=a)|X]

|X\right].    (denominatorisafunctionofX) \end{align}

Hence integrating out the last expression with respect to

X

and noting that

Y(X,a)1(A=a)=Y(X,A)1(A=a)=Y1(A=a)

almost surely, the second equality in

(*)

follows.

Variance reduction

The Inverse Probability Weighted Estimator (IPWE) is known to be unstable if some estimated propensities are too close to 0 or 1. In such instances, the IPWE is dominated by a small number of subjects with large weights. Recently developed smoothed IPW estimators by employing Rao-Blackwellization, however, reduce the variance of IPWE by up to 7-fold and can also protect the augmented inverse probability weighted estimator from model misspecification.

Augmented Inverse Probability Weighted Estimator (AIPWE)

An alternative estimator is the augmented inverse probability weighted estimator (AIPWE) combines both the properties of the regression based estimator and the inverse probability weighted estimator. It is therefore a 'doubly robust' method in that it only requires either the propensity or outcome model to be correctly specified but not both. This method augments the IPWE to reduce variability and improve estimate efficiency. This model holds the same assumptions as the Inverse Probability Weighted Estimator (IPWE).[2]

Estimator Formula

AIPWE
\begin{align} \hat{\mu}&=
a,n
1
n
nl(
Y
1
Ai=a
i
\hat{p
\sum
n

(Ai|Xi)}-

1-\hat{p
Ai=a
n(A

i|Xi)}{\hat{p}n(Ai|Xi)}\hat{Q}n(Xi,a)r)\\ &=

1
n
nl(
1
Ai=a
\hat{p
\sum
n

(Ai|Xi)}Yi+ (1-

1
Ai=a
\hat{p

n(Ai|Xi)})\hat{Q}n(Xi,a)r)\\ &=

1
n
nl(\hat{Q}
\sum
n(X

i,a)r)+

1
n
n
1
Ai=a
\hat{p
\sum
n

(Ai|Xi)}l(Yi-\hat{Q}n(Xi,a)r) \end{align}

With the following notations:

1
Ai=a
is an indicator function if subject i is part of treatment group a (or not).
  1. Construct regression estimator

\hat{Q}n(x,a)

to predict outcome

Y

based on covariates

X

and treatment

A

, for some subject i. For example, using ordinary least squares regression.
  1. Construct propensity (probability) estimate

\hat{p}n(Ai|Xi)

. For example, using logistic regression.
  1. Combine in AIPWE to obtain
AIPWE
\hat{\mu}
a,n

Interpretation and "double robustness"

The later rearrangement of the formula helps reveal the underlying idea: our estimator is based on the average predicted outcome using the model (i.e.:

1
n
nl(\hat{Q}
\sum
n(X

i,a)r)

). However, if the model is biased, then the residuals of the model will not be (in the full treatment group a) around 0. We can correct this potential bias by adding the extra term of the average residuals of the model (Q) from the true value of the outcome (Y) (i.e.:
1
n
n
1
Ai=a
\hat{p
\sum
n

(Ai|Xi)}l(Yi-\hat{Q}n(Xi,a)r)

). Because we have missing values of Y, we give weights to inflate the relative importance of each residual (these weights are based on the inverse propensity, a.k.a. probability, of seeing each subject observations) (see page 10 in [3]).

The "doubly robust" benefit of such an estimator comes from the fact that it's sufficient for one of the two models to be correctly specified, for the estimator to be unbiased (either

\hat{Q}n(Xi,a)

or

\hat{p}n(Ai|Xi)

, or both). This is because if the outcome model is well specified then its residuals will be around 0 (regardless of the weights each residual will get). While if the model is biased, but the weighting model is well specified, then the bias will be well estimated (And corrected for) by the weighted average residuals.[3] [4] [5]

The bias of the doubly robust estimators is called a second-order bias, and it depends on the product of the difference

1
\hat{p

n(Ai|Xi)}-

1
{p

n(Ai|Xi)}

and the difference

\hat{Q}n(Xi,a)-Qn(Xi,a)

. This property allows us, when having a "large enough" sample size, to lower the overall bias of doubly robust estimators by using machine learning estimators (instead of parametric models).[6]

See also

Notes and References

  1. D. G. . Horvitz . D. J. . Thompson . A generalization of sampling without replacement from a finite universe . . 47 . 663–685 . 1952 . 260 . 10.1080/01621459.1952.10483446.
  2. Cao. Weihua. Tsiatis. Anastasios A.. Davidian. Marie. Marie Davidian . 2009. Improving efficiency and robustness of the doubly robust estimator for a population mean with incomplete data. Biometrika. 96. 3. 723–734. 10.1093/biomet/asp033. 0006-3444. 2798744. 20161511.
  3. Kang, Joseph DY, and Joseph L. Schafer. "Demystifying double robustness: A comparison of alternative strategies for estimating a population mean from incomplete data." Statistical science 22.4 (2007): 523-539. link for the paper
  4. Kim, Jae Kwang, and David Haziza. "Doubly robust inference with missing data in survey sampling." Statistica Sinica 24.1 (2014): 375-394. link to the paper
  5. Seaman, Shaun R., and Stijn Vansteelandt. "Introduction to double robust methods for incomplete data." Statistical science: a review journal of the Institute of Mathematical Statistics 33.2 (2018): 184. link to the paper
  6. Hernán, Miguel A., and James M. Robins. "Causal inference." (2010): 2. link to the book - page 170