In off-policy evaluation with context x, action a, reward r, logging policy μ(a∣x)>0 and target policy π(a∣x), the inverse propensity scoring (IPS) estimator is V^IPS=1n∑i=1nriπ(ai∣xi)μ(ai∣xi) and the doubly robust (DR) estimator is V^DR=1n∑i=1n[V^r^(xi)+π(ai∣xi)μ^(ai∣xi)(ri−r^(xi,ai))], where V^r^(x)=∑aπ(a∣x)r^(x,a). How do you prove that IPS is unbiased, and why is DR unbiased whenever either the propensity model μ^=μ or the reward model r^(x,a)=E[r∣x,a] is exact?

ML systems and evaluation, Causal inference
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can prove unbiasedness of importance-weighted counterfactual estimators and establish the double-robustness property.

Key idea

IPS reweights samples from μ to match π in expectation; DR adds a control-variate reward model r^ whose expectation cancels out if μ^=μ, while the importance-weighted residual cancels out if r^=E[r∣x,a].

Steps

  1. Write the true policy value: V(π)=Ex∼d[∑aπ(a∣x) rˉ(x,a)], where rˉ(x,a)=E[r∣x,a] and d is the context distribution.
  2. Prove IPS unbiasedness under positivity (μ(a∣x)>0 whenever π(a∣x)>0): condition on x and sum over a∼μ(⋅∣x): Ea∼μ,r[rπ(a∣x)μ(a∣x)∣x]=∑aμ(a∣x)π(a∣x)μ(a∣x)rˉ(x,a)=∑aπ(a∣x)rˉ(x,a); taking expectation over x gives V(π).
  3. For DR, let V^DR,i be the i-th summand and take its conditional expectation given xi=x with ai∼μ(⋅∣x): E[V^DR,i∣x]=∑aπ(a∣x)r^(x,a)+∑aμ(a∣x)π(a∣x)μ^(a∣x)(rˉ(x,a)−r^(x,a)).
  4. Case 1 (propensity model is exact, μ^=μ, even if r^ is wrong): under positivity, μ/μ^=1, so the ∑aπ(a∣x)r^(x,a) terms cancel, leaving ∑aπ(a∣x)rˉ(x,a); averaging over x∼d gives V(π).
  5. Case 2 (reward model is exact, r^(x,a)=rˉ(x,a), even if μ^ is misspecified, provided μ^(a∣x)>0 whenever μ(a∣x)π(a∣x)>0): rˉ(x,a)−r^(x,a)=0, so the second sum vanishes and the first sum gives ∑aπ(a∣x)rˉ(x,a); averaging over x∼d again gives V(π).
  6. Note the practical benefit: even when μ^=μ is known, subtracting r^ acts as a control variate that shrinks variance compared to raw IPS.

Common mistakes

How long your answer should be

About one page with the conditional expectations for IPS and both DR cases; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in ML systems and evaluation: For a binary classifier evaluated on a demographic group with base rate p=P(Y=1∣A=a)∈(0,1), how do you derive Chouldechova’s identity relating false positive rate (FPR), false negative rate (FNR), positive predictive value (PPV) and p, and why does it prove that an imperfect classifier cannot satisfy both predictive parity and equalised odds when two groups have unequal base rates?
Next in ML systems and evaluation: none