Inferensys

Glossary

Doubly Robust Estimation

A statistical method combining inverse propensity scoring with a direct outcome model to provide an unbiased estimate of a policy's value, remaining consistent if either the propensity or outcome model is correctly specified.
Governance lead reviewing model governance framework on laptop, policy documents visible, executive office setup.
OFF-POLICY EVALUATION

What is Doubly Robust Estimation?

A statistical method that combines inverse propensity scoring with a direct outcome model to provide an unbiased estimate of a policy's value, remaining consistent if either the propensity or outcome model is correctly specified.

Doubly Robust (DR) estimation is a technique in causal inference and off-policy evaluation that combines two statistical models to estimate the expected reward of a new policy using logged data. It blends Inverse Propensity Scoring (IPS), which corrects for selection bias by re-weighting observed outcomes, with a direct method (DM) that learns a regression model to predict outcomes directly from context and action.

The key property of DR estimation is its double robustness: the estimator remains consistent and unbiased if either the propensity score model or the outcome regression model is correctly specified. This provides a critical safety net, as it significantly reduces reliance on a single, potentially misspecified model, making it a preferred method for robust policy evaluation in noisy, real-world environments.

OFF-POLICY EVALUATION

Key Properties of Doubly Robust Estimation

Doubly Robust (DR) estimation is a statistical method that combines inverse propensity scoring (IPS) with a direct outcome model to provide an unbiased estimate of a policy's value. It remains consistent if either the propensity model or the outcome model is correctly specified, offering a critical safety net for off-policy evaluation.

01

The Core Mechanism

The DR estimator blends two approaches into a single equation:

  • Direct Method (DM): Predicts the outcome for each action using a regression model.
  • Inverse Propensity Scoring (IPS): Re-weights observed outcomes by the inverse probability of the action being taken by the logging policy.

The DR estimator corrects the DM's prediction by adding the IPS-weighted residual error. This structure mathematically guarantees that if the DM is wrong, the IPS correction fixes the bias, and vice versa.

02

The Double Robustness Property

The term 'doubly robust' refers to the estimator's unique consistency guarantee. An estimate is consistent if at least one of two nuisance models is correctly specified:

  • Propensity Model: Correctly models the probability of the historical action.
  • Outcome Model: Correctly predicts the expected reward for each action.

If both models are slightly misspecified, the bias is often smaller than using either method alone. This property is critical in causal inference and off-policy evaluation where perfect model specification is rare.

03

Mathematical Formulation

For a given context x, action a, observed reward r, and estimated propensity π(a|x), the DR estimator for the value of a target policy π_e is:

V_DR = 1/N Σ [ μ(x, a) + (r - μ(x, a)) * π_e(a|x) / π_b(a|x) ]

Where:

  • μ(x, a) is the predicted outcome from the direct model.
  • π_b(a|x) is the behavior policy's propensity.
  • The term (r - μ(x, a)) is the residual.

If μ is perfect, the residual is zero, and the estimator equals the DM. If π_b is perfect, the IPS term provides an unbiased correction.

04

Variance and Bias Trade-off

While DR estimation reduces bias, it introduces a specific variance profile:

  • High Variance with Small Propensities: Like IPS, if the behavior policy assigns a very low probability to an action the target policy favors, the importance weight π_e/π_b can explode, causing high variance.
  • Clipping Weights: A common regularization technique is to clip importance weights to a maximum threshold, trading a small amount of bias for a significant reduction in variance.
  • Self-Normalization: Applying a self-normalizing step to the weights can stabilize estimates in practice.
05

Practical Application in Next-Best-Action

In a Next-Best-Action (NBA) system, DR estimation is used to evaluate a new candidate policy offline before deployment:

  1. Collect Logs: Gather historical data from the current production policy (e.g., random offers or a previous model).
  2. Train Nuisance Models: Build a propensity model for the logging policy and an outcome model to predict customer response.
  3. Evaluate Candidate Policy: Use the DR estimator to calculate the expected reward of the new NBA policy.
  4. Validate Safely: Only deploy the new policy if the DR estimate shows a statistically significant improvement over the current baseline.
06

Comparison with Other OPE Methods

DR estimation sits in a spectrum of Off-Policy Evaluation (OPE) techniques:

  • Inverse Propensity Scoring (IPS): Unbiased but suffers from extremely high variance when propensities are small. Requires no outcome model.
  • Direct Method (DM): Low variance but suffers from high bias if the outcome model is misspecified. Requires no propensity model.
  • Doubly Robust (DR): Aims for the best of both. It is unbiased if the propensity model is correct, and often has lower variance than pure IPS if the outcome model is a reasonable predictor.
  • Self-Normalized IPS (SNIPS): Reduces IPS variance but introduces a small bias; can be combined with DR.
DOUBLY ROBUST ESTIMATION

Frequently Asked Questions

Clear, technically precise answers to the most common questions about doubly robust estimation, its mechanisms, and its role in off-policy evaluation for next-best-action models.

Doubly robust estimation is a statistical method that combines a propensity score model and a direct outcome regression model to produce an unbiased estimate of a policy's value. It works by using the propensity model to inversely weight observed outcomes, correcting for selection bias in the logging policy, while simultaneously using the outcome model to impute counterfactual rewards for actions not taken. The estimator remains consistent if either the propensity model or the outcome model is correctly specified—hence the term 'doubly robust.' This property provides a critical safety net in off-policy evaluation, where perfect model specification is rarely guaranteed. The standard doubly robust estimator for a target policy (\pi_e) given logged data (D = {(x_i, a_i, r_i, p_i)}_{i=1}^n) is:

code
V_DR = (1/n) * Σ [ (I(a_i = π_e(x_i)) / p_i) * (r_i - μ(x_i, a_i)) + μ(x_i, π_e(x_i)) ]

where (p_i) is the propensity score, (\mu(x, a)) is the predicted outcome from the regression model, and (I(\cdot)) is the indicator function. The term ((r_i - \mu(x_i, a_i))) acts as a control variate, reducing variance when the outcome model is reasonably accurate.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.