Medicine: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.[1] There may be prohibitive factors barring researchers from directly sampling from the target population such as cost, time, or ethical concerns.[2] 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.[3] 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.[4] 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 [math]\displaystyle{ \{\bigl(X_i,A_i,Y_i\bigr)\}^{n}_{i=1} }[/math] drawn i.i.d (independent and identically distributed) from unknown distribution P, where
- [math]\displaystyle{ X \in \mathbb{R}^{p} }[/math] covariates
- [math]\displaystyle{ A \in \{0, 1\} }[/math] are the two possible treatments.
- [math]\displaystyle{ Y \in \mathbb{R} }[/math] response
- We do not assume treatment is randomly assigned.
The goal is to estimate the potential outcome, [math]\displaystyle{ Y^{*}\bigl(a\bigr) }[/math], that would be observed if the subject were assigned treatment [math]\displaystyle{ a }[/math]. Then compare the mean outcome if all patients in the population were assigned either treatment: [math]\displaystyle{ \mu_{a} = \mathbb{E}Y^{*}(a) }[/math]. We want to estimate [math]\displaystyle{ \mu_a }[/math] using observed data [math]\displaystyle{ \{\bigl(X_i,A_i,Y_i\bigr)\}^{n}_{i=1} }[/math].
Estimator Formula
[math]\displaystyle{ \hat{\mu}^{IPWE}_{a,n} = \frac{1}{n}\sum^{n}_{i=1}Y_{i} \frac{\mathbf 1_{A_{i}=a}}{\hat{p}_{n}(A_{i}|X_{i})} }[/math]
Constructing the IPWE
- [math]\displaystyle{ \mu_{a} = \mathbb{E}\left[\frac{\mathbf{1}_{A=a} Y}{p(A|X)} \right] }[/math] where [math]\displaystyle{ p(a|x) = \frac{P(A=a,X=x)}{P(X=x)} }[/math]
- construct [math]\displaystyle{ \hat{p}_{n}(a|x) }[/math] or [math]\displaystyle{ p(a|x) }[/math] using any propensity model (often a logistic regression model)
- [math]\displaystyle{ \hat{\mu}^{IPWE}_{a,n} = \sum^{n}_{i=1}\frac{Y_{i} 1_{A_{i}=a}}{n\hat{p}_{n}(A_{i}|X_{i})} }[/math]
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 [math]\displaystyle{ (X,A,Y)\sim P }[/math] for the covariate [math]\displaystyle{ X }[/math], action [math]\displaystyle{ A }[/math], and response [math]\displaystyle{ Y }[/math]. If [math]\displaystyle{ X }[/math] and [math]\displaystyle{ A }[/math] are known as [math]\displaystyle{ x }[/math] and [math]\displaystyle{ a }[/math], respectively, then the response [math]\displaystyle{ Y(X=x, A=a)=Y(x, a) }[/math] has the distribution
[math]\displaystyle{ \begin{align} Y(x, a) \sim \frac{P(x,a,\cdot)}{\int P(x,a,y) \, dy}. \end{align} }[/math]
We make the following assumptions.
- (A1) Consistency: [math]\displaystyle{ Y = Y^{*}(A) }[/math]
- (A2) No unmeasured confounders: [math]\displaystyle{ \{Y^{*}(0), Y^{*}(1)\} \perp A|X }[/math]. More formally, for each bounded and measurable functions [math]\displaystyle{ f }[/math] and [math]\displaystyle{ g }[/math], [math]\displaystyle{ \begin{align} \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{align} }[/math]This means that treatment assignment is based solely on covariate data and independent of potential outcomes.
- (A3) Positivity: [math]\displaystyle{ P(A=a|X=x)=\mathbb{E}_{A}[\mathbf{1}(A=a)\,|\, X=x] \gt 0 }[/math] for all [math]\displaystyle{ a }[/math] and [math]\displaystyle{ x }[/math].
Formal derivation
Under the assumptions (A1)-(A3), we will derive the following identities
[math]\displaystyle{ \begin{align} \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{align} }[/math]
The first equality follows from the definition and (A1). For the second equality, first use the iterated expectation to write
[math]\displaystyle{ \begin{align} \mathbb{E}_{(X,Y)}\left[ Y(X,a)\right] = \mathbb{E}_{X}\left[ \mathbb{E}_{Y}\left[ Y(X,a) \,|\, X \right] \right]. \end{align} }[/math]
By (A3), [math]\displaystyle{ \mathbb{E}_{A}[\mathbf{1}(A=a)\,|\, X] \gt 0 }[/math] almost surely. Then using (A2), note that
[math]\displaystyle{ \begin{align} \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{align} }[/math]
Hence integrating out the last expression with respect to [math]\displaystyle{ X }[/math] and noting that [math]\displaystyle{ Y(X,a) \mathbf{1}(A=a) = Y(X,A)\mathbf{1}(A=a)= Y\,\mathbf{1}(A=a) }[/math] almost surely, the second equality in [math]\displaystyle{ (*) }[/math] 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. [5]
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).[6]
Estimator Formula
[math]\displaystyle{ \begin{align} \hat{\mu}^{AIPWE}_{a,n} &= \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{align} }[/math]
With the following notations:
- [math]\displaystyle{ 1_{A_{i}=a} }[/math] is an indicator function if subject i is part of treatment group a (or not).
- Construct regression estimator [math]\displaystyle{ \hat{Q}_n(x,a) }[/math] to predict outcome [math]\displaystyle{ Y }[/math] based on covariates [math]\displaystyle{ X }[/math] and treatment [math]\displaystyle{ A }[/math], for some subject i. For example, using ordinary least squares regression.
- Construct propensity (probability) estimate [math]\displaystyle{ \hat{p}_n(A_i|X_i) }[/math]. For example, using logistic regression.
- Combine in AIPWE to obtain [math]\displaystyle{ \hat{\mu}^{AIPWE}_{a,n} }[/math]
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.: [math]\displaystyle{ \frac{1}{n}\sum_{i=1}^n\Biggl(\hat{Q}_n(X_i,a)\Biggr) }[/math]). 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.: [math]\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) }[/math]). 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 [7]).
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 [math]\displaystyle{ \hat{Q}_n(X_i,a) }[/math] or [math]\displaystyle{ \hat{p}_{n}(A_{i}|X_{i}) }[/math], 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.[7][8][9]
The bias of the doubly robust estimators is called a second-order bias, and it depends on the product of the difference [math]\displaystyle{ \frac{1}{\hat{p}_{n}(A_{i}|X_{i})} - \frac{1}{{p}_{n}(A_{i}|X_{i})} }[/math] and the difference [math]\displaystyle{ \hat{Q}_n(X_i,a) - Q_n(X_i,a) }[/math]. 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).[10]
See also
References
- ↑ Robins, JM; Rotnitzky, A; Zhao, LP (1994). "Estimation of regression coefficients when some regressors are not always observed". Journal of the American Statistical Association 89 (427): 846–866. doi:10.1080/01621459.1994.10476818.
- ↑ Breslow, NE et al. (2009). "Using the Whole Cohort in the Analysis of Case-Cohort Data". Am J Epidemiol 169 (11): 1398–1405. doi:10.1093/aje/kwp055. PMID 19357328.
- ↑ Horvitz, D. G.; Thompson, D. J. (1952). "A generalization of sampling without replacement from a finite universe". Journal of the American Statistical Association 47 (260): 663–685. doi:10.1080/01621459.1952.10483446.
- ↑ Hernan, MA; Robins, JM (2006). "Estimating Causal Effects From Epidemiological Data". J Epidemiol Community Health 60 (7): 578–596. doi:10.1136/jech.2004.029496. PMID 16790829.
- ↑ Liao, JG; Rohde, C (2022). "Variance reduction in the inverse probability weighted estimators for the average treatment effect using the propensity score". Biometrics 78 (2): 660–667. doi:10.1111/biom.13454. PMID 33715153.
- ↑ Cao, Weihua; Tsiatis, Anastasios A.; Davidian, Marie (2009). "Improving efficiency and robustness of the doubly robust estimator for a population mean with incomplete data". Biometrika 96 (3): 723–734. doi:10.1093/biomet/asp033. ISSN 0006-3444. PMID 20161511.
- ↑ 7.0 7.1 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
- ↑ 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
- ↑ 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
- ↑ Hernán, Miguel A., and James M. Robins. "Causal inference." (2010): 2. link to the book - page 170
Original source: https://en.wikipedia.org/wiki/Inverse probability weighting.
Read more |