- Source: Inverse probability weighting
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. 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
{
(
X
i
,
A
i
,
Y
i
)
}
i
=
1
n
{\displaystyle \{{\bigl (}X_{i},A_{i},Y_{i}{\bigr )}\}_{i=1}^{n}}
drawn i.i.d (independent and identically distributed) from unknown distribution P, where
X
∈
R
p
{\displaystyle X\in \mathbb {R} ^{p}}
covariates
A
∈
{
0
,
1
}
{\displaystyle A\in \{0,1\}}
are the two possible treatments.
Y
∈
R
{\displaystyle Y\in \mathbb {R} }
response
We do not assume treatment is randomly assigned.
The goal is to estimate the potential outcome,
Y
∗
(
a
)
{\displaystyle Y^{*}{\bigl (}a{\bigr )}}
, that would be observed if the subject were assigned treatment
a
{\displaystyle a}
. Then compare the mean outcome if all patients in the population were assigned either treatment:
μ
a
=
E
Y
∗
(
a
)
{\displaystyle \mu _{a}=\mathbb {E} Y^{*}(a)}
. We want to estimate
μ
a
{\displaystyle \mu _{a}}
using observed data
{
(
X
i
,
A
i
,
Y
i
)
}
i
=
1
n
{\displaystyle \{{\bigl (}X_{i},A_{i},Y_{i}{\bigr )}\}_{i=1}^{n}}
.
= Estimator Formula
=μ
^
a
,
n
I
P
W
E
=
1
n
∑
i
=
1
n
Y
i
1
A
i
=
a
p
^
n
(
A
i
|
X
i
)
{\displaystyle {\hat {\mu }}_{a,n}^{IPWE}={\frac {1}{n}}\sum _{i=1}^{n}Y_{i}{\frac {\mathbf {1} _{A_{i}=a}}{{\hat {p}}_{n}(A_{i}|X_{i})}}}
Constructing the IPWE
μ
a
=
E
[
1
A
=
a
Y
p
(
A
|
X
)
]
{\displaystyle \mu _{a}=\mathbb {E} \left[{\frac {\mathbf {1} _{A=a}Y}{p(A|X)}}\right]}
where
p
(
a
|
x
)
=
P
(
A
=
a
,
X
=
x
)
P
(
X
=
x
)
{\displaystyle p(a|x)={\frac {P(A=a,X=x)}{P(X=x)}}}
construct
p
^
n
(
a
|
x
)
{\displaystyle {\hat {p}}_{n}(a|x)}
or
p
(
a
|
x
)
{\displaystyle p(a|x)}
using any propensity model (often a logistic regression model)
μ
^
a
,
n
I
P
W
E
=
∑
i
=
1
n
Y
i
1
A
i
=
a
n
p
^
n
(
A
i
|
X
i
)
{\displaystyle {\hat {\mu }}_{a,n}^{IPWE}=\sum _{i=1}^{n}{\frac {Y_{i}1_{A_{i}=a}}{n{\hat {p}}_{n}(A_{i}|X_{i})}}}
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
)
∼
P
{\displaystyle (X,A,Y)\sim P}
for the covariate
X
{\displaystyle X}
, action
A
{\displaystyle A}
, and response
Y
{\displaystyle Y}
. If
X
{\displaystyle X}
and
A
{\displaystyle A}
are known as
x
{\displaystyle x}
and
a
{\displaystyle a}
, respectively, then the response
Y
(
X
=
x
,
A
=
a
)
=
Y
(
x
,
a
)
{\displaystyle Y(X=x,A=a)=Y(x,a)}
has the distribution
Y
(
x
,
a
)
∼
P
(
x
,
a
,
⋅
)
∫
P
(
x
,
a
,
y
)
d
y
.
{\displaystyle {\begin{aligned}Y(x,a)\sim {\frac {P(x,a,\cdot )}{\int P(x,a,y)\,dy}}.\end{aligned}}}
We make the following assumptions.
(A1) Consistency:
Y
=
Y
∗
(
A
)
{\displaystyle Y=Y^{*}(A)}
(A2) No unmeasured confounders:
{
Y
∗
(
0
)
,
Y
∗
(
1
)
}
⊥
A
|
X
{\displaystyle \{Y^{*}(0),Y^{*}(1)\}\perp A|X}
. More formally, for each bounded and measurable functions
f
{\displaystyle f}
and
g
{\displaystyle g}
,
E
(
A
,
Y
)
[
f
(
Y
(
X
,
a
)
)
g
(
A
)
|
X
]
=
E
Y
[
f
(
Y
(
X
,
a
)
)
|
X
]
E
A
[
g
(
A
)
|
X
]
.
{\displaystyle {\begin{aligned}\qquad \mathbb {E} _{(A,Y)}\left[f(Y(X,a))\,g(A)\,|\,X\right]=\mathbb {E} _{Y}\left[f(Y(X,a))\,|\,X\right]\,\mathbb {E} _{A}\left[g(A)\,|\,X\right].\end{aligned}}}
This means that treatment assignment is based solely on covariate data and independent of potential outcomes.
(A3) Positivity:
P
(
A
=
a
|
X
=
x
)
=
E
A
[
1
(
A
=
a
)
|
X
=
x
]
>
0
{\displaystyle P(A=a|X=x)=\mathbb {E} _{A}[\mathbf {1} (A=a)\,|\,X=x]>0}
for all
a
{\displaystyle a}
and
x
{\displaystyle x}
.
Formal derivation
Under the assumptions (A1)-(A3), we will derive the following identities
E
[
Y
∗
(
a
)
]
=
E
(
X
,
Y
)
[
Y
(
X
,
a
)
]
=
E
(
X
,
A
,
Y
)
[
Y
1
(
A
=
a
)
P
(
A
=
a
|
X
)
]
.
⋯
⋯
(
∗
)
{\displaystyle {\begin{aligned}\mathbb {E} \left[Y^{*}(a)\right]=\mathbb {E} _{(X,Y)}\left[Y(X,a)\right]=\mathbb {E} _{(X,A,Y)}\left[{\frac {Y\mathbf {1} (A=a)}{P(A=a|X)}}\right].\qquad \cdots \cdots (*)\end{aligned}}}
The first equality follows from the definition and (A1). For the second equality, first use the iterated expectation to write
E
(
X
,
Y
)
[
Y
(
X
,
a
)
]
=
E
X
[
E
Y
[
Y
(
X
,
a
)
|
X
]
]
.
{\displaystyle {\begin{aligned}\mathbb {E} _{(X,Y)}\left[Y(X,a)\right]=\mathbb {E} _{X}\left[\mathbb {E} _{Y}\left[Y(X,a)\,|\,X\right]\right].\end{aligned}}}
By (A3),
E
A
[
1
(
A
=
a
)
|
X
]
>
0
{\displaystyle \mathbb {E} _{A}[\mathbf {1} (A=a)\,|\,X]>0}
almost surely. Then using (A2), note that
E
Y
[
Y
(
X
,
a
)
|
X
]
=
E
Y
[
Y
(
X
,
a
)
|
X
]
E
A
[
1
(
A
=
a
)
|
X
]
E
A
[
1
(
A
=
a
)
|
X
]
=
E
(
A
,
Y
)
[
Y
(
X
,
a
)
1
(
A
=
a
)
|
X
]
E
[
1
(
A
=
a
)
|
X
]
⋯
⋯
(
A
2
)
=
E
(
A
,
Y
)
[
Y
(
X
,
a
)
1
(
A
=
a
)
E
[
1
(
A
=
a
)
|
X
]
|
X
]
.
⋯
⋯
(
denominator is a function of X
)
{\displaystyle {\begin{aligned}\mathbb {E} _{Y}\left[Y(X,a)\,|\,X\right]&={\frac {\mathbb {E} _{Y}\left[Y(X,a)\,|\,X\right]\,\mathbb {E} _{A}[\mathbf {1} (A=a)\,|\,X]}{\mathbb {E} _{A}[\mathbf {1} (A=a)\,|\,X]}}\\&={\frac {\mathbb {E} _{(A,Y)}\left[Y(X,a)\mathbf {1} (A=a)\,|\,X\right]}{\mathbb {E} [\mathbf {1} (A=a)\,|\,X]}}\qquad \cdots \cdots (A2)\\&=\mathbb {E} _{(A,Y)}\left[{\frac {Y(X,a)\mathbf {1} (A=a)}{\mathbb {E} [\mathbf {1} (A=a)\,|\,X]}}\,{\bigg |}\,X\right].\qquad \cdots \cdots ({\text{denominator is a function of X}})\end{aligned}}}
Hence integrating out the last expression with respect to
X
{\displaystyle X}
and noting that
Y
(
X
,
a
)
1
(
A
=
a
)
=
Y
(
X
,
A
)
1
(
A
=
a
)
=
Y
1
(
A
=
a
)
{\displaystyle Y(X,a)\mathbf {1} (A=a)=Y(X,A)\mathbf {1} (A=a)=Y\,\mathbf {1} (A=a)}
almost surely, the second equality in
(
∗
)
{\displaystyle (*)}
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 can be dominated by a small number of subjects with large weights. To address this issue, a smoothed IPW estimator using Rao-Blackwellization has been proposed, which reduces the variance of IPWE by up to 7-fold and helps protect the 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).
= Estimator Formula
=μ
^
a
,
n
A
I
P
W
E
=
1
n
∑
i
=
1
n
(
Y
i
1
A
i
=
a
p
^
n
(
A
i
|
X
i
)
−
1
A
i
=
a
−
p
^
n
(
A
i
|
X
i
)
p
^
n
(
A
i
|
X
i
)
Q
^
n
(
X
i
,
a
)
)
=
1
n
∑
i
=
1
n
(
1
A
i
=
a
p
^
n
(
A
i
|
X
i
)
Y
i
+
(
1
−
1
A
i
=
a
p
^
n
(
A
i
|
X
i
)
)
Q
^
n
(
X
i
,
a
)
)
=
1
n
∑
i
=
1
n
(
Q
^
n
(
X
i
,
a
)
)
+
1
n
∑
i
=
1
n
1
A
i
=
a
p
^
n
(
A
i
|
X
i
)
(
Y
i
−
Q
^
n
(
X
i
,
a
)
)
{\displaystyle {\begin{aligned}{\hat {\mu }}_{a,n}^{AIPWE}&={\frac {1}{n}}\sum _{i=1}^{n}{\Biggl (}{\frac {Y_{i}1_{A_{i}=a}}{{\hat {p}}_{n}(A_{i}|X_{i})}}-{\frac {1_{A_{i}=a}-{\hat {p}}_{n}(A_{i}|X_{i})}{{\hat {p}}_{n}(A_{i}|X_{i})}}{\hat {Q}}_{n}(X_{i},a){\Biggr )}\\&={\frac {1}{n}}\sum _{i=1}^{n}{\Biggl (}{\frac {1_{A_{i}=a}}{{\hat {p}}_{n}(A_{i}|X_{i})}}Y_{i}+(1-{\frac {1_{A_{i}=a}}{{\hat {p}}_{n}(A_{i}|X_{i})}}){\hat {Q}}_{n}(X_{i},a){\Biggr )}\\&={\frac {1}{n}}\sum _{i=1}^{n}{\Biggl (}{\hat {Q}}_{n}(X_{i},a){\Biggr )}+{\frac {1}{n}}\sum _{i=1}^{n}{\frac {1_{A_{i}=a}}{{\hat {p}}_{n}(A_{i}|X_{i})}}{\Biggl (}Y_{i}-{\hat {Q}}_{n}(X_{i},a){\Biggr )}\end{aligned}}}
With the following notations:
1
A
i
=
a
{\displaystyle 1_{A_{i}=a}}
is an indicator function if subject i is part of treatment group a (or not).
Construct regression estimator
Q
^
n
(
x
,
a
)
{\displaystyle {\hat {Q}}_{n}(x,a)}
to predict outcome
Y
{\displaystyle Y}
based on covariates
X
{\displaystyle X}
and treatment
A
{\displaystyle A}
, for some subject i. For example, using ordinary least squares regression.
Construct propensity (probability) estimate
p
^
n
(
A
i
|
X
i
)
{\displaystyle {\hat {p}}_{n}(A_{i}|X_{i})}
. For example, using logistic regression.
Combine in AIPWE to obtain
μ
^
a
,
n
A
I
P
W
E
{\displaystyle {\hat {\mu }}_{a,n}^{AIPWE}}
= 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
∑
i
=
1
n
(
Q
^
n
(
X
i
,
a
)
)
{\displaystyle {\frac {1}{n}}\sum _{i=1}^{n}{\Biggl (}{\hat {Q}}_{n}(X_{i},a){\Biggr )}}
). 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
∑
i
=
1
n
1
A
i
=
a
p
^
n
(
A
i
|
X
i
)
(
Y
i
−
Q
^
n
(
X
i
,
a
)
)
{\displaystyle {\frac {1}{n}}\sum _{i=1}^{n}{\frac {1_{A_{i}=a}}{{\hat {p}}_{n}(A_{i}|X_{i})}}{\Biggl (}Y_{i}-{\hat {Q}}_{n}(X_{i},a){\Biggr )}}
). 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 ).
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
Q
^
n
(
X
i
,
a
)
{\displaystyle {\hat {Q}}_{n}(X_{i},a)}
or
p
^
n
(
A
i
|
X
i
)
{\displaystyle {\hat {p}}_{n}(A_{i}|X_{i})}
, 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.
The bias of the doubly robust estimators is called a second-order bias, and it depends on the product of the difference
1
p
^
n
(
A
i
|
X
i
)
−
1
p
n
(
A
i
|
X
i
)
{\displaystyle {\frac {1}{{\hat {p}}_{n}(A_{i}|X_{i})}}-{\frac {1}{{p}_{n}(A_{i}|X_{i})}}}
and the difference
Q
^
n
(
X
i
,
a
)
−
Q
n
(
X
i
,
a
)
{\displaystyle {\hat {Q}}_{n}(X_{i},a)-Q_{n}(X_{i},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).
See also
Propensity score matching
References
Kata Kunci Pencarian:
- Tf–idf
- Inverse probability weighting
- List of statistics articles
- Spillover (experiment)
- Tf–idf
- Horvitz–Thompson estimator
- Prior probability
- Design effect
- Marginal structural model
- Censoring (statistics)
- Missing data