Semiparametric Efficiency
How well can you estimate one number when the rest of the model is infinite dimensional?
In 1956 Stein asks whether the centre of a symmetric distribution can be estimated as well without knowing its shape; Stone (1975) and Bickel (1982) answer yes, and a simulation over five symmetric laws shows a density-score estimator, never told the law, near the bound 1/I_f in every row. The part builds the theory that explains it. A model's tangent space is the set of directions it can move, drawn to scale for a 2 x 2 table under independence; a functional's pathwise derivative is an inner product with a gradient, and the efficient influence function is that gradient projected onto the tangent space, whose variance is the bound. The mean, quantiles, the ATE and ATT, Robinson's partially linear model and Cox's partial likelihood are worked, and projecting the score off the nuisance tangent space gives the efficient score and explains adaptation. The part then turns to estimators: the one-step, estimating equations and TMLE remove the plug-in's first-order bias, double robustness is the product form of the second-order remainder, and cross-fitting with the product rate is what double machine learning needs. It ends with missing data under MAR, higher-order influence functions for the integrated squared density, and the World test, where the plug-in's 90% interval covers 3% of the time and the cross-fitted one-step and TMLE keep their level.
What you need. Hilbert-space geometry (L2 projections), Part 47's LAN and convolution theorem, Part 48's empirical processes, and the causal estimators of Part 36.
- Hook
- adaptive estimation (Stein 1956; Bickel 1982)
- Mathematics
- tangent spaces, pathwise derivatives, efficient influence functions, bounds, one-step and TMLE, double robustness, DML theory, higher-order influence functions
- Built
- statkit.semipar
What you will be able to do
Bachelor's
- Explain Stein's question and read the table of five symmetric laws: which estimator is near the bound in every row, and what it was never told.
Master's
- Compute an efficient influence function on a finite sample space by projecting a gradient onto the tangent space, and read its variance as the bound.
- Derive the influence functions of the mean, a quantile and the ATE, and show that the one-step estimator's bias is a product of two nuisance errors.
PhD
- State the semiparametric convolution theorem and prove that the efficient influence function is the unique gradient lying in the tangent space.
- Prove that a cross-fitted one-step estimator is root-n and efficient when the product of the nuisance rates is of smaller order than n to the minus one half, and say what fails at equality.
Practice
- Estimate an ATE by one-step and TMLE with cross-fitted nuisances and influence-function standard errors, and report which nuisance models the interval relies on.
- Diagnose a plug-in estimator with machine-learned nuisances: explain why its interval undercovers and what the correction term adds.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Bachelor's 7 min · Master's 22 min · PhD 54 min · Practice 22 min.
- 0Adaptive estimation, 1956-1982Bachelor's4 min
- 1Models and tangent spacesPhD4 min
- 2Pathwise differentiabilityPhD4 min
- 3Efficiency boundsPhD5 min
- 4Worked influence functionsPhD5 min
- 5The nuisance tangent space and the efficient scorePhD4 min
- 6Constructing efficient estimatorsPractice7 min
- 7Double robustnessPhD3 min
- 8DML theoryPhD5 min
- 9Missing data, semiparametricallyPractice4 min
- 10Higher-order influence functionsPhD4 min
- 11The World testPractice4 min
- Recap, problems, and the road aheadAll tracks3 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film. A dashed box stands for a number the film computes when it is rendered (hover over it to see what is computed); the README's figures for each chapter, where it lists them, follow the chapter's text.
Adaptive estimation, 1956-1982Bachelor's4 min
Here is a question that sounds impossible. Data come from a symmetric distribution centred at theta, but the shape of the distribution is unknown: it might be normal, or logistic, or heavy tailed, or bimodal. If the shape f were known, the maximum likelihood estimator under suitable regularity would have asymptotic variance one over n times the Fisher information of f, and nothing regular could do better. In 1956 Charles Stein asked whether the same accuracy can be had without knowing f. In 1975 Charles Stone showed that it can: estimate the shape's score function from the data themselves, and use it. And in 1982 Peter Bickel explained when and why this works. Sometimes, knowing nothing about an infinite-dimensional nuisance costs nothing at all.
Five symmetric laws, four hundred observations each, and n times the variance of four estimators of the centre. The mean is best for normal data but poor for heavy tails: for t with three degrees of freedom, against a bound of . The median is good for the Laplace and poor for the normal. The Hodges–Lehmann estimator is a strong compromise. The illustrative density-score estimator, which is never told the law, is within about a third of the bound in every row, and it is the only one that is: for t three, for the Laplace against one, and for the bimodal mixture, where every other estimator is at least . In some rows a fixed estimator does slightly better; none does well in all of them.
The adaptation is asymptotic. For t three data the bound is one point five. The adaptive estimator's efficiency, the bound divided by its actual variance, is at a hundred observations, at four hundred and at sixteen hundred, improving across these sample sizes. This finite-sample KDE one-step uses fixed tail trimming; the adaptation theorem requires additional tuning and score-consistency conditions, and is not proved by this simulation. Not knowing the shape costs something in finite samples, but the cost vanishes to first order. Why that is possible, and when it is not, is what this part is about.
The symmetric-centre problem is a semiparametric model: a finite-dimensional quantity of interest, and everything else about the distribution left unknown and infinite dimensional. The question of this part: how well can such a quantity be estimated, by any regular estimator, and which estimators achieve it? The answer is a single function, the efficient influence function, whose variance is the bound. And that one function explains the estimators Part thirty-six used on trust: augmented inverse probability weighting, double robustness, double machine learning, targeted maximum likelihood, and the estimators for missing data. The theory has a reputation for abstraction, but its central object is concrete: a function of one observation, which you can write down, estimate and average. Most of this part is about finding that function, and about what to do with it once it is found, when the nuisance parts of the model are estimated by flexible, imperfect machine learning.
Three promises are due. Part thirty-six used augmented inverse probability weighting and double machine learning, and said they were doubly robust and root n consistent with machine-learned nuisances under adequate product rates and regularity; chapters five to eight explain those conditions. Part forty-seven proved the convolution theorem for parametric models; chapters one to three extend it to models with infinite-dimensional parts. And Part forty-eight found that a plugged-in nuisance costs its footprint; chapters four and five turn that observation into geometry.
Numbers: n·Var at n = 400 (t₃): mean 2.96, median 1.87, HL 1.61, adaptive 1.68, bound 1.5; mixture: adaptive 1.83 vs bound 1.38
1Models and tangent spacesPhD4 min
Models and tangent spaces: the directions in which a model can move. A statistical model is a set of possible distributions, and in semiparametric problems it is infinite dimensional. To do calculus on it, look at one-dimensional paths through the true distribution P that stay inside the model, indexed by t, passing through P at t equal to zero. For differentiability-in-quadratic-mean paths, a square-integrable score describes the first-order change. Formally it is the derivative of its log-density at zero. A score is a function of the data with mean zero and finite variance, an element of L two zero of P. The tangent space is the closed linear span of all those scores: every direction in which the model can move away from P, written as functions.
Three standard ways to build paths. The linear path multiplies the density by one plus t times a bounded mean-zero function s; for small t it is still a density, and its score is s itself. Exponential tilting, from Parts forty-three and forty-seven, multiplies by e to the t s and renormalizes; when its moment-generating function exists around zero, its score is again s. For q absolutely continuous with respect to P, a one-sided contamination path has score q over p minus one when it is square integrable. A continuous model contaminated by a point mass is not such a dominated smooth path; the point-mass influence calculation is a separate formal device. Any mean-zero function with finite variance is a limit of bounded ones, so taking the closure makes the nonparametric tangent space all of L two zero.
A picture helps, with the infinite-dimensional space of mean-zero functions drawn as three-dimensional space. Each smooth path through P contributes one score, an arrow. Their span is the tangent space, here a plane. Directions out of the plane are moves the model forbids: if we assume, say, symmetry or independence, the scores that would break it are excluded. If the model assumes nothing at all, the closure of bounded scores contains every mean-zero square-integrable function, and the tangent space is the whole space. The smaller the model, the smaller its tangent space, and, as we will see, the easier the estimation.
Four examples. In the nonparametric model, any bounded mean-zero s gives a path p times one plus t s, so the tangent space is everything. In a parametric model the tangent space is spanned by the parameter scores; its dimension is k when the information is nonsingular. For the symmetric location model of the hook, moving theta gives the location score, and changing the shape while keeping it symmetric gives the mean-zero square-integrable even functions of x minus theta, under regular location assumptions. And if two variables are assumed independent, a change of either margin is allowed but a change in their joint structure is not: the tangent space is sums of a function of the first and a function of the second.
A concrete model we can compute everything in. Two binary variables, assumed independent, with margins point three and point six, so four cells. Functions on four cells with mean zero form a three-dimensional space. Under independence, the tangent space is the two-dimensional plane of row effects plus column effects. The missing direction is the interaction, a change that would make the variables dependent. We will estimate the probability of the top-left cell, point one eight, and ask how much knowing independence helps.
Numbers: 2 × 2 table under independence: L₂⁰ has 3 dimensions, the tangent space 2
2Pathwise differentiabilityPhD4 min
Pathwise differentiability: the efficient influence function as a projection. The quantity of interest psi is pathwise differentiable at P if, along every smooth path through P, its derivative is the inner product of a fixed function phi with the path's score. Such a phi is called a gradient, or an influence function: it is a derivative of psi written as a function of the data. But it is only pinned down by its inner products with scores. Add anything orthogonal to the tangent space and the derivatives do not change. A large tangent space leaves little freedom; a small one leaves a lot. Among all gradients there is exactly one inside the tangent space: the projection of any gradient onto it. That is the efficient influence function.
In the two by two table, the space is exactly three-dimensional and we can draw it to scale. The natural estimator of the top-left cell's probability is the fraction of observations in it. Its influence function, the indicator of the cell minus point one eight, is a gradient, because differentiating the cell probability gives the inner product with that centred indicator. Consistency alone would not prove it is a gradient. Project it onto the tangent plane of the independence model: the gold arrow, the efficient influence function. The dashed segment is its interaction component, the part that independence makes irrelevant, and discarding it can only reduce the variance.
A numerical check of the definition. Move the law along three paths that keep the variables independent: change the row margin, change the column margin, or both. Along each, the derivative of psi, computed numerically, equals the inner product of the score with the cell's influence function, and also with its projection. Both are gradients, because they agree on every direction the model can move in. They differ only in the interaction direction, where no path of the model goes.
In numbers. The cell frequency's influence function has squared length point one eight times point eight two, : that is the best possible variance when nothing is assumed. Its projection has squared length : the bound under independence, a third smaller. And an estimator attains it: the product of the two marginal frequencies, whose influence function, by the delta method, is exactly the projection. Simulated with four hundred observations, the two estimators have n times variance and . The efficient variance is about one third smaller, equivalent to needing about one third fewer observations for the same asymptotic precision.
So the recipe, in any model, is three steps. Find one gradient; often the influence function of a natural estimator that is consistent without the model's restrictions. Project it onto the model's tangent space. The projection is the efficient influence function, and its variance is the bound, as chapter three proves. In the nonparametric model the tangent space is everything and there is nothing to project: all regular, asymptotically linear estimators of a quantity share one influence function, and so one asymptotic variance.
Numbers: ‖φ‖² = 0.1476, ‖φ*‖² = 0.0972; simulated n·Var 0.1448 and 0.0957
3Efficiency boundsPhD5 min
Efficiency bounds: the hardest one-dimensional submodel. Part forty-seven's convolution theorem carries over. Call an estimator regular if its limit law is the same along every submodel's local alternatives. Under regular differentiable submodels and a square-integrable canonical gradient, the limit law is a normal with variance the squared length of the efficient influence function, convolved with something else. This lower-bounds the covariance of the limiting law when that covariance exists. Passing to finite-sample asymptotic risks requires additional moment control. For regular asymptotically linear estimators, the picture is even simpler: the estimator's influence function is some gradient. And by Pythagoras its variance is the efficient one plus the squared distance from the gradient to its projection. Efficiency means that distance is zero.
There is a second way to see the bound, and it is Stein's original idea. Any one-dimensional submodel is a parametric problem, and psi along it has a Cramér–Rao bound: the squared inner product of the efficient influence function with the score, over the score's squared length. By Cauchy–Schwarz, the largest of these over all submodels is the squared length of the efficient influence function, attained in the closed tangent space when the score points along it. A single actual submodel need not attain that direction; a sequence of smooth submodels can approach the supremum. So the semiparametric problem is exactly as hard as its hardest one-dimensional sub-problem. When such a path exists it is called a least favourable submodel, and chapter six's targeted estimator moves along it.
The bound holds for every estimator, not just regular ones, in the local minimax sense of Part forty-seven: first take the large-sample limit over local shifts bounded by c, then let c tend to infinity; the resulting worst scaled risk is at least the efficient variance under the LAN and loss conditions. The proof applies Part forty-seven's theorem to the least favourable submodel, which is an ordinary one-dimensional parametric model. Hodges-type estimators can beat the bound at a point but cannot improve the limiting worst risk as these local shift ranges expand. So the efficient variance is an honest benchmark: any method, however modern, can be judged against it.
Back to the two by two table. Each direction in its tangent plane is a one-dimensional submodel. In blue, the parametric bound for the top-left cell along each direction. The highest is the semiparametric bound, , reached in exactly one direction, along the efficient influence function. Along any other path, knowing the path would make the problem easier. Not knowing which path nature took is what costs us; the bound is the cost of the worst case.
The same estimand in three nested models. Assuming nothing, the bound is , and the cell frequency attains it. Assuming independence, the tangent space loses a dimension and the bound falls to . Knowing one margin as well leaves a single free direction, and the bound falls again, to . Each assumption shrinks the tangent space, shortens the projection, and lowers the bound. But the efficient estimator of a smaller model can become biased when its assumption fails, which is the trade-off semiparametric models are designed to manage: assume only what you are willing to defend.
A preview of chapter four's main example, the average treatment effect, in a smooth simulated world with a known propensity. The efficiency bound, computed by quadrature, is per observation. The one-step estimator with the true nuisance functions is close in this finite simulation, at . Inverse probability weighting with the true propensity is much worse: normalized, and unnormalized. Weighting alone ignores how predictable the outcome is from the covariates; the efficient influence function uses it.
Numbers: least favourable direction 28°; known margin: 0.0756; ATE bound 4.70, one-step 4.53, Hajek 6.81, HT 13.75
4Worked influence functionsPhD5 min
Worked influence functions: the mean, the average treatment effect, the partially linear model, and Cox.
Start with the simplest. The mean, in a nonparametric model with finite second moment. Along the path p times one plus t s, the mean changes at rate the integral of x s p, which is the covariance of X with the score. So the efficient influence function is x minus mu, and the sample mean, whose influence function it is, is efficient: no regular estimator of a mean does better without assumptions. The same computation for a quantile gives Part forty-seven's influence function, and shows the sample quantile is efficient when the density is positive and continuous at the unique quantile. The trick, always: differentiate psi along the path and read off the function that multiplies the score.
The main example. The average treatment effect under consistency, conditional exchangeability and positivity is the mean of the difference between the two outcome regressions. Its efficient influence function, found by Jinyong Hahn in 1998 and implicit in Robins and colleagues' 1994 work, is the plug-in's term plus two weighted residual corrections: the residuals of the treated, weighted by one over the propensity, and of the controls, weighted by one over one minus it. Its variance, the bound, is the variance of the conditional effect plus the residual variances inflated by the inverse propensities. Poor overlap, propensities near zero or one, makes the bound large: no method can escape it. And a surprise of Hahn's: knowing the propensity, as in a randomized trial, does not lower the bound at all.
The effect on the treated, the estimand of the job-training studies, has its own efficient influence function, also from Hahn's paper. It is the treated's outcomes minus the control regression's prediction for them, and the controls' residuals weighted by the propensity odds, e over one minus e, all scaled by one over the fraction treated. Only the control regression and the propensity appear: the treated's own outcomes are observed and need no model. And here knowledge of the propensity does lower the bound, because the propensity carries information about which population the treated are. Chapter six applies this to LaLonde's data.
Why does knowing the propensity not help the average treatment effect? Factor the likelihood into the law of X, the treatment given X, and the outcome given treatment and X. The space of scores splits into three orthogonal pieces, one for each factor. In an observational study all three are free. In a trial the treatment mechanism is known, so its piece of the tangent space is removed. But the ATE's efficient influence function has no component in that piece, so projecting onto the smaller tangent space changes nothing, and the bound is the same. For the effect on the treated, the influence function does have such a component, and knowing the propensity helps.
Peter Robinson's partially linear model of 1988: a linear effect of a treatment T plus an arbitrary function of the covariates. Write m for the regression of T on X and l for the regression of Y on X. In the conditional-mean model with constant error variance, a quantity proportional to the efficient score is the residual of Y minus theta times the residual of T, multiplied by the residual of T. It is orthogonal to every direction in which g could move, The appropriate variance normalization gives the efficient score; orthogonality alone would not prove efficiency. Setting its average to zero gives the residual-on-residual regression: Part thirty-six's double machine learning estimator for this model, now seen as the efficient one.
And one result from Part forty. In Cox's proportional hazards model the baseline hazard is an unknown function. Its directions of change form the nuisance tangent space. Projecting the full-likelihood score for beta off that space amounts to centring each subject's covariates at the weighted mean of the risk set at each event time, which is exactly the score of Cox's partial likelihood. Under the proportional-hazards model, conditionally independent censoring and suitable regularity, Cox's partial-likelihood estimator is semiparametrically efficient, as Bradley Efron found in 1977 and Begun, Hall, Huang and Wellner proved in general in 1983.
Numbers: the mean, quantiles, the ATE and ATT (Hahn 1998), the PLR (Robinson 1988), Cox
5The nuisance tangent space and the efficient scorePhD4 min
Often the model is written with a finite-dimensional parameter of interest theta and an infinite-dimensional nuisance eta. Two kinds of direction then matter: the ordinary score for theta, and the nuisance tangent space, spanned by the scores of paths that move eta alone. The efficient score is what remains of theta's score after projecting out the nuisance tangent space: the part of a change in theta that no change in the nuisance can imitate. Its variance is the efficient information, its inverse is the bound, and the efficient influence function is the efficient score scaled by the inverse information.
In the picture: the red line is the nuisance tangent space. The blue arrow is the score for theta. If the nuisance were known, its length squared would be the information. But part of the score lies along the nuisance directions: a small change in theta looks, to the data, partly like a small change in the nuisance, and that part cannot be used. What remains, the gold arrow perpendicular to the nuisance space, is the efficient score. It is shorter, so the information is smaller and the bound larger: the information lost is the squared length of the red projection. The variance penalty is the difference between inverse informations.
Now the hook is explained. For a symmetric law, the location score minus f prime over f, at x minus theta, is an odd function. Changing the shape while keeping it symmetric gives scores that are even functions. Odd and even functions of a symmetric variable are orthogonal, so the projection is zero and the efficient score is the full score. The efficient information equals the information with f known. Not knowing f costs nothing, and an estimator that estimates the score, like Stone's, can reach the bound. Stein's 1956 condition for adaptation is exactly this orthogonality, and Bickel's 1982 paper turned it into estimators.
One subtlety. In the partially linear model with an error variance that can depend on both T and X, the efficient score changes. It weights by one over the variance, and centres T at a weighted regression rather than the plain one. Robinson's unweighted score is still orthogonal to the nuisance, and can remain root n consistent when nuisance product rates and the empirical-process conditions hold, but it is no longer efficient. Orthogonality and efficiency are different properties. Orthogonality protects an estimator from the nuisance's first-order errors; efficiency makes it the best such estimator. Efficient scores are orthogonal to nuisance tangent directions, while an arbitrary nuisance-orthogonal estimating function need not attain the efficiency bound.
Adaptation happens in a few lucky models: symmetric location, linear regression with symmetric errors, and partially linear models with suitable independent error-density nuisance assumptions. Adaptation must specify which nuisance is being treated as unknown. An unrestricted location-plus-unknown-shape decomposition is unidentified without a centring convention. Means and medians can still be defined without symmetry; they then represent different models and targets. And it fails for the average treatment effect, whose bound includes the inverse-propensity-weighted residual variances that the unknown outcome regressions bring. Cox's model is in between: centring at the risk set is exactly the price of not knowing the baseline. But the efficient score always has one property, by construction: it is orthogonal to the nuisance directions. Chapter eight shows why that orthogonality is what makes their first-order errors vanish, subject to sufficient remainder rates and stochastic control.
Numbers: adaptation: odd score ⟂ even nuisance scores; heteroskedastic PLR: orthogonal but not efficient
6Constructing efficient estimatorsPractice7 min
Constructing efficient estimators: one-step, estimating equations, and targeted maximum likelihood. For the smooth functionals considered here, the constructions use a von Mises expansion with a controlled remainder. Plug an estimate of the distribution into psi. The error is minus the true mean of the efficient influence function evaluated at the estimate, plus a second-order remainder. Adding and subtracting the empirical mean splits it into three parts: minus the empirical mean of the estimated influence function, an empirical-process term, and the remainder. The first is an empirical correction for leading plug-in error, not literally its sampling bias in every dataset, and it is first order in the error of the nuisance estimates: if they converge slowly, so does the plug-in. The remainder can be bounded to second order under functional smoothness and positivity, typically a product of two nuisance errors. The middle term is the good part, the root-n fluctuation, controlled by Part forty-eight's empirical-process theory.
The middle, empirical-process term splits again: the empirical process applied to the true efficient influence function, plus the empirical process applied to the difference between the estimated and true influence functions. The first piece is a plain average, and the central limit theorem gives it the efficient variance. The second is negligible if the estimated influence functions lie in a Donsker class and converge to the truth in L-two: exactly Part forty-eight's asymptotic equicontinuity. If the nuisances come from a learner too flexible for any Donsker class, fit them on separate data instead. Then, within each held-out fold and conditionally on its training data, the second piece is an average of mean-zero terms with vanishing variance, and no Donsker condition is needed. That is cross-fitting, and chapter eight returns to it.
Three ways to remove that bias. The one-step estimator adds the empirical mean of the estimated influence function to the plug-in. For the average treatment effect, that is exactly augmented inverse probability weighting. The estimating-equation approach treats the influence function as an equation in psi and solves it. Targeted maximum likelihood, due to Mark van der Laan and Daniel Rubin in 2006, instead changes the estimated distribution, moving it along the least favourable submodel until the empirical mean of the influence function is zero, and then plugs in. For the treatment effect with a continuous outcome, the move adds epsilon times a clever covariate, one over the propensity for the treated and minus one over one minus it for the controls, with epsilon fitted by least squares. This linear Gaussian fluctuation solves the empirical influence equation for an unbounded continuous outcome. It is not range preserving for binary or bounded outcomes; those need an appropriate constrained fluctuation. Efficiency also requires the stated consistency and remainder conditions.
A controlled experiment in the smooth world of chapter three: give each estimator nuisance functions that are wrong by n to the minus point three, slower than root n, as machine learning typically is. The plug-in's bias, scaled by root n, grows: from at two hundred and fifty to at sixteen thousand. Its errors are first order. The one-step's scaled bias shrinks, to , because what is left is second order: a product of two errors of order n to the minus point three. Targeted maximum likelihood behaves the same way. Both are within a fraction of a standard error of the truth; the estimation error has scaled standard deviation about .
Coverage of ninety percent intervals tells the same story. The one-step and targeted intervals cover about ninety percent at every sample size. The plug-in, given the same standard error, covers percent at a thousand and none at all at four thousand. More data makes a biased plug-in worse, because its interval shrinks around the wrong centre.
Why have two efficient estimators? The one-step estimator adds a correction, and a correction can overshoot: a probability above one, an effect larger than any possible, a negative variance. With a suitable constrained fluctuation the targeted estimator is a plug-in of a genuine distribution and respects the parameter range. The linear continuous-outcome implementation here is unbounded. For a binary outcome the fluctuation is on the logistic scale, so the updated predictions stay between zero and one. To first order they are the same estimator, with the same influence function; they differ at second order, and finite-sample behaviour depends on the targeting model, nuisance fits and overlap. Neither method repairs lack of identification or guarantees better small-sample coverage.
Real data: the National Supported Work experiment from Part thirty-six: earnings in 1978, in 1982 dollars. The randomized difference in means is , with standard error . In this randomized-sample calculation we use the observed allocation fraction as a constant propensity, but the efficient influence function still uses the outcome regressions: the one-step estimator with linear regressions gives , with a slightly smaller standard error. Here arm-specific OLS residuals sum to zero, so the targeting correction is zero and the two adjusted estimates coincide. Constant propensity alone would not imply equality for arbitrary initial fits. Replace the experimental controls with men from the Panel Study of Income Dynamics, and the naive difference is : badly confounded. The efficient one-step estimator of the effect on the treated, with a logistic propensity and a linear outcome model, gives , with standard error : with limited overlap and potentially misspecified nuisance models. The reported observational SE comes from stratified resampling that refits both nuisances. Agreement with a noisy experimental benchmark does not validate the identification assumptions.
Numbers: √n·bias at n = 16,000: plug-in 6.94, one-step -0.32, TMLE -0.26; NSW: 1,794 (671) vs 1,622 (656); PSID ATT 1,218 (889; refitted bootstrap)
7Double robustnessPhD3 min
Double robustness: a property of the influence function, not a trick. Take the treated half of the one-step estimator of the average treatment effect and compute its conditional population bias for fixed nuisance functions, or functions trained on independent data. It is the expected product of the propensity's error and the outcome regression's error, divided by the estimated propensity. If the outcome regression is right, the product is zero, for any positive propensity function with the needed integrability. If the propensity is right, it is zero, for any integrable fixed outcome regression. Data reuse can introduce additional finite-sample dependence. That is double robustness, found by James Robins, Andrea Rotnitzky and Lue Ping Zhao in 1994. It is not a trick of this estimator: it is what the second-order remainder of the efficient influence function looks like, a product.
In the smooth world, with each working model either right or deliberately wrong: the wrong outcome model ignores the covariates and uses the arm means; the wrong propensity is a constant. With either one right, the bias is within simulation error of zero. With both wrong, it is , the product of the two errors, about three and a half standard errors of the estimator at this sample size.
Compare the single-model estimators in the same four worlds. The plug-in uses only the outcome model, so it is consistent when that model is right; misspecification can occasionally cancel in an average, and off by about when it is wrong. Inverse probability weighting uses only the propensity, so it can be inconsistent when the propensity is wrong. The one-step estimator needs only one of the two. And in the last row, with both wrong, all three estimators coincide: with arm means and a constant propensity, every method reduces to the naive difference in means.
Why a product? Because the efficient influence function involves the propensity and the outcome regression multiplied together, and nothing else that depends on either. Several functionals have appropriate product-remainder structures and doubly robust estimators under their own identification assumptions: the mean of an outcome missing at random, the effect on the treated, mediation and instrumental-variable effects. But double robustness is about bias only. When both nuisances are consistently estimated at sufficient rates, the nonparametric efficient variance is attained. Consistency under one correct working model does not by itself justify the usual efficient-IF standard error. And when both are a little wrong, as Part thirty-six's Kang and Schafer example showed, a product of two small errors can still exceed the standard error. The cure is not more robustness but better nuisance estimates, fast enough, which is the next chapter.
Numbers: one-step bias: +0.004, -0.004, +0.002, +0.198
8DML theoryPhD5 min
The theory of double machine learning: orthogonality, cross-fitting, and the product rate. Victor Chernozhukov and colleagues' double machine learning, of 2018, starts from an estimating function that depends on a nuisance. It asks that the function be Neyman orthogonal: its expectation must not change to first order when the nuisance moves in any direction. Jerzy Neyman used the idea in 1959 for tests with nuisance parameters. In the regular parametrizations considered here, the efficient estimating equation is Neyman-orthogonal: differentiating its zero-mean identity and using score orthogonality gives zero nuisance derivative. This still needs differentiability of the estimating function in the nuisance. In Part forty-eight's language, the footprint is zero: first-order errors in the nuisance estimates never reach the estimate of theta.
Then chapter six's expansion has three parts: the efficient influence function's average, root n times the second-order remainder, and an empirical-process term. By chapter seven, the remainder is bounded by the product of the two nuisance errors. So it suffices that the product of the rates beats root n: for order n to the minus a and n to the minus b errors, a plus b strictly above a half suffices. At equality their product must be little-oh of one over root n; two fixed nonzero multiples of n to the minus one quarter leave a nonzero first-order bias. Such rates can be slower than root n, but a particular learner still has to satisfy them. The empirical-process term would need a Donsker condition on the nuisance estimators, which some flexible learners need not satisfy. Cross-fitting removes the need: estimate the nuisances on other folds, so that each fold, conditional on its own training set, has independent mean-zero evaluation terms. The folds are not jointly independent after conditioning on every fitted model.
The product-rate condition, tested directly. Corrupt the outcome regressions by n to the minus a and the propensity by n to the minus b, in directions that do not cancel, and track root n times the one-step's bias. With a and b both a half, or both a quarter, or three eighths and one eighth, the boundary cases a plus b equal to a half have a nonzero limiting scaled bias. That is bounded bias, not safe centred inference. The case whose exponents sum to one has a vanishing scaled bias. Curves now show the exact integrated remainder rather than a simulation floor. Notice that one nuisance can be quite poor if the other is good. With both at n to the minus an eighth, the scaled bias grows like n to the one quarter. And with errors that never shrink, it grows like root n: the estimator is inconsistent.
Cross-fitting, tested. Five-nearest-neighbour outcome regressions, which partly memorize the data. Fitted to all the data and evaluated on the same points, the residuals are too small, so the reported standard error, , understates the actual , and ninety percent intervals cover percent of the time. Cross-fitted on two folds, the reported standard error matches the actual one, and coverage rises to percent; residual bias and simulation uncertainty remain; cross-fitting alone does not guarantee coverage. Cross-fitting costs nothing asymptotically, and with flexible learners it can remove overfitting terms, provided the nuisance consistency and product-rate conditions also hold.
In practice, a few conventions have settled. Five folds is typical, and the scores are pooled across folds before solving, which behaves better in small samples than averaging fold-wise estimates. The random split adds noise of its own, so repeat it several times and report the median. Choose each learner by its own cross-validated prediction error: the propensity and the outcome regressions are separate prediction problems. And if propensities must be clipped, say so: clipping generally changes the estimator and may introduce bias for the same target; trimming observations usually changes the target population, and poor overlap is an assumption that failed, not a parameter to tune.
Numbers: nonzero limiting √n·bias at a + b = ½; centred inference needs a little-o product; ⅛ + ⅛: -6.2 → -16.2; 5-NN: coverage 82.5% reused vs 87.0% cross-fitted
9Missing data, semiparametricallyPractice4 min
Missing data, semiparametrically: Robins, Rotnitzky and Zhao's augmented weights. Part forty-one's problem: estimate the mean of Y when some values are missing at random given always-observed covariates X, so that the chance of seeing Y depends only on X, with positive response probabilities and finite influence-function variance. The efficient influence function, found by James Robins, Andrea Rotnitzky and Lue Ping Zhao in 1994, is the regression prediction plus the inverse-probability-weighted residual of the observed cases. Its variance is the bound: the variance of the regression function plus the residual variance inflated by one over the response probability. It is the average treatment effect's influence function with one arm, and Anastasios Tsiatis's 2006 book develops the whole theory of missing data and causal inference this way, as one theory.
The World's survey of Part forty-one: adults, of whom report their income; the young, and the people of two regions, answer less often, and their incomes differ. Complete cases overstate mean log income by . Inverse probability weighting, regression imputation and the augmented estimator all reduce the realized error in this example, and the augmented estimator's ninety percent interval contains the complete survey-sample mean in this draw. Its influence-function SE is an iid superpopulation reference; it is not an exact interval for a fixed finite survey.
Double robustness on the survey. With both working models fitted, the augmented estimator is off by . Replace the outcome model with one that uses only sex: regression imputation alone is now as biased as the complete cases, but the augmented estimator, rescued by the response model, barely moves. Replace the response model by a constant: weighting alone collapses to the complete cases, but the augmented estimator, rescued by the regression, is fine. And with a good outcome model it hardly matters whether the response probabilities are known or estimated: the standard errors are and . The efficient influence function depends on the propensity only through a term that the regression has already made small.
How does this compare with Part forty-one's multiple imputation? Proper multiple imputation can be efficient under a correct, congenial model and suitable inference, but it is a single bet on that model. The augmented estimator hedges: efficient when both working models are right, and still consistent when either one is. Weighting alone is consistent when the response model is right, but it ignores what the covariates say about the outcome, and is the normalized known-propensity estimator is inefficient unless its augmentation term vanishes. Estimated propensity fitting can change this comparison. For the Horvitz–Thompson form the waste is exactly the expected value of one minus pi over pi times the squared regression: the squared distance from its influence function to the efficient one, chapter three's Pythagoras again.
Robins, Rotnitzky and Zhao proved more: under missing at random, regular asymptotically linear observed-data influence functions have an inverse-probability-weighted plus augmentation representation under suitable MAR conditions. The best augmentation is a projection, onto the functions of the response indicator and the covariates, and it is the regression term of the efficient influence function. The same recipe handles monotone dropout, longitudinal studies and censored survival data. Without additional identifying restrictions, missing-not-at-random data generally do not identify the population mean, and no efficiency theory helps: Part forty-one's sensitivity analysis is the honest answer.
Numbers: survey: complete cases +0.0252, AIPW +0.0050 (SE 0.0182)
10Higher-order influence functionsPhD4 min
Higher-order influence functions: when the first-order correction is not enough. A classic test case is the integrated square of a density with finite integral of f cubed, which appears in bandwidth selection and in the efficiency of rank tests. Its efficient influence function is twice the density at x minus twice psi. Plug in a kernel estimate and add the first-order correction, and what remains is exactly minus the integrated squared error of the density estimate. That error is a squared bias, which shrinks with the bandwidth, plus a variance of order one over n h, which grows as the bandwidth shrinks. For root n estimation the squared error must be smaller than one over root n, For an ordinary optimal L-two density estimate with error order n to the minus s over two s plus d, this first-order route needs s greater than d over two. A second-order quadratic estimator can reach root n already above d over four, under the appropriate smoothness and bandwidth conditions.
Three estimators. The plug-in, the integral of the squared kernel estimate, is an average of a kernel over all pairs of points, including each point paired with itself. The one-step estimator of chapter six, with the density fitted on one half of the sample and the correction averaged over the other. And a second-order estimator: the same pairwise average, but over distinct pairs only, a U-statistic. James Robins, Lingling Li, Eric Tchetgen Tchetgen and Aad van der Vaart built the general theory of such higher-order influence functions in 2008. For the quadratic kernel functional, distinct pairs remove the diagonal self-pair bias. The U-statistic still has sampling variance, including a degenerate term of order one over n squared h to the d, as well as smoothing bias.
Normal samples of four hundred, and root n times the bias of each estimator across bandwidths. The plug-in is biased upward at small bandwidths, by the diagonal terms, and downward at large ones, by smoothing. The one-step estimator is still biased at small bandwidths: its remainder, minus the squared error of a noisy half-sample estimate, is not negligible. The second-order U-statistic is nearly unbiased at small bandwidths: at h equal to point oh five. And its standard deviation there, , is close to the efficient . One more order of the expansion bought both.
Higher-order corrections can be implemented by U-statistics, often using finite-dimensional projection kernels. Exact higher-order influence functions need not exist as square-integrable kernels in an unrestricted continuous model. They matter when the nuisances are too rough for root n estimation: for integrated squared density in suitable smoothness balls, the low-smoothness minimax root-mean-square rate is n to the minus four s over four s plus d, capped at root n. This is a model-specific rate, not a universal rate for all functionals. Higher-order treatment-effect estimators can also reduce product remainders, but their rates depend on several nuisance smoothness levels, covariate dimension and design assumptions, with the product of the propensity's and the outcome regression's errors in place of the density's squared error. That this rate is the best anyone can do is a minimax statement, which is Part fifty's subject.
Numbers: √n·bias at h = 0.05: plug-in +0.25, one-step -0.56, U-statistic -0.02 (SD 0.218 vs 0.222)
11The World testPractice4 min
The World test: plug-in, one-step and targeted estimators, on the World. The final test uses Part thirty-six's observational world: two thousand patients, and doctors who decide who gets the blood-pressure drug. They prescribe more often for higher pressure, greater age and higher body mass, which also predict the outcome: confounding. Here the doctors are a little gentler than in Part thirty-six, so that the actual eligible-pool propensities range from about point one five to point nine nine six. Logistic estimates are numerically clipped at one ten-thousandth and one minus that; the nearest-neighbour estimates use point oh two and point nine eight. The World knows every patient's effect, so the target is the fixed eligible-pool average treatment effect. Each replicate now samples patients independently with replacement from that pool; it no longer silently changes the target to each sample's own average. The outcome regressions are estimated by fifteen nearest neighbours, a deliberately crude learner: flexible, slow and biased, like machine learning in a hurry. The propensity is fitted by logistic regression. Three hundred samples, ninety percent intervals, and influence-function reference widths. The plug-in deliberately reuses the one-step width to isolate centring bias, and the IPW width treats fitted propensities as fixed; neither is a generally valid fitted-model standard error.
The results. The plug-in covers percent: the nearest-neighbour regressions are biased, and the plug-in passes their bias straight through, about millimetres of mercury, several of its standard errors. Inverse probability weighting with the logistic propensity covers percent: a conservative empirical result here, with a correctly specified logistic prescription model and a reference SE that does not adjust for fitting it, but its interval is the widest. The cross-fitted one-step and targeted estimators cover and percent, with biases of and . And when the propensity is also estimated by nearest neighbours, the product of two slow errors is no longer small: the one-step estimator's bias grows to and its coverage falls to percent.
Each result is a chapter of this part. The plug-in's bias, , is the first-order error of its regressions, chapter six's warning. The one-step estimator's bias, , is a product of the regressions' error and the propensity's, and the logistic propensity's error is small: chapter seven. The targeted estimator has the same structure and, here, a slightly smaller spread, against . And with two crude nuisances the product is no longer negligible: chapter eight's product-rate condition, failing in front of us.
The practical recipe that falls out of the theory. Write down the efficient influence function for the quantity you want, or look it up; Edward Kennedy's 2022 review collects many. Estimate every nuisance function in it as well as you can, with cross-fitting. Use the one-step or the targeted estimator, with the standard error from the empirical variance of the estimated influence function. And check overlap first: the bound has one over the propensity in it, and no estimator, however clever, can escape it.
Numbers: coverage: plug-in 3.3%, IPW 96.3%, one-step 91.0%, TMLE 90.3%, k-NN both 71.3%
Recap, problems, and the road aheadAll tracks3 min
Part forty-nine in twelve lines. Adaptive estimation, from Stein to Bickel. Tangent spaces. Gradients, and the efficient influence function as a projection. The bound, as the hardest one-dimensional submodel. Worked influence functions for the mean, the treatment effect, the partially linear model and Cox. The efficient score, which explains adaptation. One-step, estimating-equation and targeted estimators. Double robustness, as a product. The theory of double machine learning. Missing data, by augmentation. Higher-order influence functions. And the World test.
A promise for the next part. This one found the best possible root-n estimation of a smooth functional. It assumed that root n was the right scale, and used regular-estimator bounds and also a local minimax statement for arbitrary estimators. Part fifty drops both assumptions: minimax theory, with the lower bounds of Le Cam, Assouad and Fano, and Pinsker's theorem, for how well anyone can estimate anything, at any rate.
Where it comes back. Part fifty finds minimax rates when root n is impossible. Part fifty-three asks when Bayesian posteriors for semiparametric models are efficient. Part fifty-two uses the same debiasing for high-dimensional regression. Part sixty extends double robustness to distribution shift. And Part sixty-two, on the frontiers of causal inference, builds proximal and policy-learning estimators from efficient influence functions.
Six problems, with full solutions in the README. The independence projection; two influence functions; the ATE's efficient influence function and its variance; the one-step's bias as a product; the orthogonality behind adaptation; and why TMLE solves the efficient equation. Pause here if you want to try them.
The books this part follows: Bickel, Klaassen, Ritov and Wellner; Tsiatis on semiparametric theory and missing data; chapter twenty-five of van der Vaart; van der Laan and Rose on targeted learning; and Kennedy's review; with the papers from Stein to Chernozhukov and colleagues.
Forty-nine parts of sixty-five. To estimate one number well inside an infinite model, find its efficient influence function, and remove the plug-in's first-order bias; then estimate the nuisances as well as you can, on separate folds, and verify that their error product is little-oh of one over root n, together with the other regularity conditions. Next, Part fifty: minimax theory.
Where it goes next. Part 50 asks for the rate when root-n is impossible; the same one-step correction returns as the debiased lasso in Part 52 and as the semiparametric Bernstein-von Mises theorem in Part 53; double robustness returns under distribution shift in Part 60 and in proximal causal inference and policy learning in Part 62; Problem 8 of the qualifying exam (Part 55) is an efficient influence function.
Key results
The part's results in one place, for revision.
Try it
Lab 49 · The efficient influence function as a projection, and double robustness as a product
On a 2 x 2 table under independence, project the gradient of P(X1 = 1, X2 = 1) onto the tangent space and check that two estimators have n times variance equal to the two squared norms. Then run the ATE's one-step estimator with one nuisance wrong, then both, and compare its bias with the product formula.
python -m videos.stats.labs 49
needs numpy, scipy, matplotlib · download lab49.py ·
source on GitHub||phi||^2, the nonparametric bound 0.1476 n Var of the cell frequency 0.1489
||phi*||^2, the bound under independence 0.0972 n Var of the product of margins 0.0973
closed form q1^2 p1(1-p1) + p1^2 q1(1-q1) 0.0972
one-step bias, both right +0.0012 ± 0.0024 theory 0
one-step bias, outcome wrong +0.0020 ± 0.0028 theory 0
one-step bias, propensity wrong +0.0017 ± 0.0022 theory 0
one-step bias, both wrong -0.2479 ± 0.0027 product formula -0.2500
The projection shortens the gradient, and the estimator that uses the model attains the shorter length; the one-step is unbiased when either nuisance is right, and with both wrong its bias is the product formula's.
The code (89 lines; it asserts its own result)
"""Lab 49: project a gradient onto a tangent space, then break the one-step estimator one nuisance at a time."""
import numpy as np
from videos.coursekit import labs
from explainer.stats.kit import semipar
TITLE = "The efficient influence function as a projection, and double robustness as a product"
GOAL = ("On a 2 x 2 table under independence, project the gradient of P(X1 = 1, X2 = 1) onto the tangent space and "
"check that two estimators have n times variance equal to the two squared norms. Then run the ATE's one-step "
"estimator with one nuisance wrong, then both, and compare its bias with the product formula.")
TASKS = [
"Make the table dependent (add 0.05 to the (1,1) and (0,0) cells, subtract it from the others). Which estimator "
"is now biased, and by how much?",
"Replace semipar.ate_one_step by semipar.ate_tmle in the four scenarios. Do the biases change beyond Monte Carlo "
"error?",
"Use semipar.corrupt(w, a, b) with a = b = 0.25 and then 0.4 at n = 500, 2,000, 8,000, and watch root-n times "
"the one-step's bias.",
]
def run(seed=0):
rng = np.random.default_rng(seed)
lab = labs.Lab()
# ---- the geometry: cells (x1, x2) in row-major order, X1 and X2 independent with P(X1=1)=0.3, P(X2=1)=0.6
p1, q1 = 0.3, 0.6
p = np.array([(1 - p1) * (1 - q1), (1 - p1) * q1, p1 * (1 - q1), p1 * q1])
phi = semipar.gradient_discrete(lambda q: q[3], p) # the nonparametric gradient: 1{x = (1,1)} - p11
star = semipar.project(p, phi, semipar.independence_scores(2, 2)) # its projection onto {a(x1) + b(x2)}
b_np, b_eff = semipar.bound(p, phi), semipar.bound(p, star)
closed = q1 ** 2 * p1 * (1 - p1) + p1 ** 2 * q1 * (1 - q1)
n, reps = 400, 20000
counts = rng.multinomial(n, p, size=reps) / n
freq = counts[:, 3]
prod = (counts[:, 2] + counts[:, 3]) * (counts[:, 1] + counts[:, 3])
v_freq, v_prod = n * freq.var(), n * prod.var()
lab.row("||phi||^2, the nonparametric bound", f"{b_np:.4f} n Var of the cell frequency {v_freq:.4f}")
lab.row("||phi*||^2, the bound under independence", f"{b_eff:.4f} n Var of the product of margins {v_prod:.4f}")
lab.row("closed form q1^2 p1(1-p1) + p1^2 q1(1-q1)", f"{closed:.4f}")
assert abs(b_np - p[3] * (1 - p[3])) < 1e-6 and abs(b_eff - closed) < 1e-6, "the projection's norm"
assert semipar.inner(p, phi - star, star) < 1e-9, "the residual is orthogonal to the tangent space"
assert abs(v_freq / b_np - 1) < 0.05 and abs(v_prod / b_eff - 1) < 0.05, "each estimator attains its bound"
# ---- double robustness: the ATE's one-step with the truth, one wrong nuisance, and both wrong
m, sims = 2000, 400
names = ["both right", "outcome wrong", "propensity wrong", "both wrong"]
est = {k: [] for k in names}
for _ in range(sims):
w = semipar.rate_world(m, rng)
x1 = w["X"][:, 0]
bad_mu1, bad_mu0, bad_e = w["mu1"] + 1.5 * (x1 - 0.2), w["mu0"] + x1, np.full(m, 0.5)
for k, (mu0, mu1, e) in zip(names, ((w["mu0"], w["mu1"], w["e"]), (bad_mu0, bad_mu1, w["e"]),
(w["mu0"], w["mu1"], bad_e), (bad_mu0, bad_mu1, bad_e))):
est[k].append(semipar.ate_one_step(w["y"], w["t"], mu0, mu1, e)["est"])
bias = {k: np.mean(v) - 1.5 for k, v in est.items()}
mcse = {k: np.std(v) / np.sqrt(sims) for k, v in est.items()}
# the product formula E[(e - ê)(mu1 - mû1)/ê] - E[(ê - e)(mu0 - mû0)/(1 - ê)] on a fine grid of x1
g = (np.arange(200000) + 0.5) / 200000
e = 0.2 + 0.6 * g
formula = np.mean((e - 0.5) * (-1.5 * (g - 0.2)) / 0.5) - np.mean((0.5 - e) * (-g) / 0.5)
for k in names:
lab.row(f"one-step bias, {k}", f"{bias[k]:+.4f} ± {mcse[k]:.4f}"
+ (f" product formula {formula:+.4f}" if k == "both wrong" else " theory 0"))
assert all(abs(bias[k]) < 0.015 for k in names[:3]), "one correct nuisance is enough"
assert abs(bias["both wrong"] - formula) < 0.02 and abs(formula) > 0.2, "the bias is the product of the errors"
lab.note = ("The projection shortens the gradient, and the estimator that uses the model attains the shorter "
"length; the one-step is unbiased when either nuisance is right, and with both wrong its bias is "
"the product formula's.")
fig, ax = labs.figure(2, size=(11, 4.2))
bins = np.arange(0.11 - 0.5 / n, 0.25, 2 / n) # two lattice steps of the cell frequency per bin
ax[0].hist(freq, bins=bins, density=True, color=labs.BLUE, alpha=0.55, label=f"cell frequency: n Var {v_freq:.3f}")
ax[0].hist(prod, bins=bins, density=True, color=labs.GOLD, alpha=0.55,
label=f"product of margins: n Var {v_prod:.3f}")
ax[0].axvline(p[3], color=labs.MUTED, ls="--")
ax[0].set(title="Two estimators of P(X1 = 1, X2 = 1) = 0.18, n = 400", xlabel="estimate", ylabel="density")
ax[0].legend(loc="upper left")
ax[0].set_ylim(0, ax[0].get_ylim()[1] * 1.3)
xs = np.arange(4)
ax[1].bar(xs, [bias[k] for k in names], yerr=[2 * mcse[k] for k in names], color=[labs.GREEN] * 3 + [labs.RED],
ecolor=labs.INK, width=0.6)
ax[1].plot([2.6, 3.4], [formula, formula], color=labs.GOLD, label="the product formula")
ax[1].axhline(0, color=labs.MUTED, lw=1)
ax[1].set_xticks(xs, ["both right", "outcome\nwrong", "propensity\nwrong", "both wrong"])
ax[1].set(title="Bias of the ATE's one-step estimator (truth 1.5)", ylabel="bias")
ax[1].legend(loc="lower left")
lab.fig = fig
return lab
Now change it
- Make the table dependent (add 0.05 to the (1,1) and (0,0) cells, subtract it from the others). Which estimator is now biased, and by how much?
- Replace semipar.ate_one_step by semipar.ate_tmle in the four scenarios. Do the biases change beyond Monte Carlo error?
- Use semipar.corrupt(w, a, b) with a = b = 0.25 and then 0.4 at n = 500, 2,000, 8,000, and watch root-n times the one-step's bias.
Problems, with solutions
Try each problem before opening its solution.
-
The independence projection. Show that the tangent space of 'X\(_1\) independent of X\(_2\)' is \(\{a(x_1) + b(x_2)\}\), and project \(\mathbf 1\{x = (1,1)\} - p_{11}\) onto it.
Solution
- A path p_t = p(1 + ts) stays in the independence model to first order iff s(x₁, x₂) = a(x₁) + b(x₂): the log-density of a product law is log p₁(x₁) + log p₂(x₂), and its derivatives are exactly such sums.
- The projection of φ = 1{x = (1,1)} − p₁₁ onto that space is the influence function of p̂₁q̂₁: q₁(1{x₁ = 1} − p₁) + p₁(1{x₂ = 1} − q₁). (The residual is orthogonal to every a(x₁) and b(x₂) because under independence E[1{x₁ = 1}1{x₂ = 1} | x₁] = 1{x₁ = 1} q₁.)
- Its variance is q₁²p₁(1 − p₁) + p₁²q₁(1 − q₁) = 0.0972 at p₁ = 0.3, q₁ = 0.6.
-
Two influence functions. Derive the influence function of \(\psi = E\,Y\) along \(p(1 + ts)\), and of \(F^{-1}(p)\).
Solution
- The mean: d/dt ∫x p(1 + ts) = ∫x s p = E[(X − μ)s], so φ = x − μ.
- The quantile: differentiate F_t(ξ_t) = p along p(1 + ts): E[1{X ≤ ξ}s] + f(ξ)ξ̇ = 0, so ξ̇ = −E[1{X ≤ ξ}s]/f(ξ) = E[((p − 1{X ≤ ξ})/f(ξ)) s], and φ = (p − 1{x ≤ ξ_p})/f(ξ_p).
-
The ATE. Derive the ATE's efficient influence function, and show its variance is \(\mathrm{Var}\,\tau(X) + E[\sigma_1^2/e + \sigma_0^2/(1 - e)]\).
Solution
- Differentiate ψ = ∫∫ y [p(y | 1, x) − p(y | 0, x)] dy p(x) dx along a nonparametric path, factor the score into its X, T | X and Y | T, X parts, and collect terms: φ* = μ₁ − μ₀ − ψ + T(Y − μ₁)/e − (1 − T)(Y − μ₀)/(1 − e).
- The three pieces are orthogonal: Var(μ₁ − μ₀) + E[T(Y − μ₁)²/e²] + E[(1 − T)(Y − μ₀)²/(1 − e)²] = Var τ(X) + E[σ₁²/e + σ₀²/(1 − e)].
-
The one-step's bias. Show that the one-step ATE's bias is \(E[(e - \hat e)(\mu_1 - \hat\mu_1)/\hat e] - E[(\hat e - e)(\mu_0 - \hat\mu_0)/(1 - \hat e)]\).
Solution
- E[μ̂₁ + T(Y − μ̂₁)/ê] − Eμ₁ = E[(μ̂₁ − μ₁)(1 − e/ê)] = E[(e − ê)(μ₁ − μ̂₁)/ê].
- Similarly for the controls, E[μ̂₀ + (1 − T)(Y − μ̂₀)/(1 − ê)] − Eμ₀ = E[(ê − e)(μ₀ − μ̂₀)/(1 − ê)].
- Subtract: both terms are products of a propensity error and an outcome error.
-
Orthogonality behind adaptation. For symmetric location, show that \(-f'/f\) is orthogonal to every even function in \(L_2(f)\).
Solution
- With f symmetric, f′ is odd, so −f′/f is odd. For even h, E[−(f′/f)(ε) h(ε)] = −∫ f′(u) h(u) du = 0, because the integrand is odd.
- So the location score is orthogonal to the nuisance tangent space of symmetric shape changes, the efficient score is the full score, and the efficient information is I_f.
-
TMLE solves the efficient equation. Show that the TMLE update with \(H = T/e - (1-T)/(1-e)\) solves \(P_n \phi^* = 0\).
Solution
- The update μ̂*t = μ̂_t + ε̂H_t with ε̂ the least-squares coefficient of Y − μ̂_T on H = T/ê − (1 − T)/(1 − ê) makes Σ H_i(Y_i − μ̂*{T_i}) = 0.
- With ψ̂ = mean(μ̂₁ − μ̂₀), P_nφ* = mean(μ̂₁ − μ̂₀ − ψ̂) + mean(H(Y − μ̂*_T)) = 0 + 0.
Notes and sources
Where it comes back
- Part 50: minimax rates when root-n is impossible.
- Part 52: the debiased lasso and high-dimensional inference use the same one-step correction.
- Part 53: Bernstein–von Mises theorems for semiparametric models.
- Part 60: double robustness under distribution shift.
- Part 62: proximal causal inference, policy learning and efficient estimators on the frontiers.
Glossary
- The geometry.
- Model; submodel; score; tangent space; L₂⁰(P); closure: the directions a model can move.
- Pathwise differentiability; gradient; influence function; canonical gradient; efficient influence function: derivatives as functions.
- Regular estimator; asymptotically linear; convolution theorem; least favourable submodel; efficiency bound: how well anyone can do.
- Nuisance parameter; nuisance tangent space; efficient score; efficient information; adaptation: projecting the nuisance away.
- The estimators.
- Plug-in; von Mises expansion; second-order remainder; one-step; estimating equation; TMLE; clever covariate: removing the first-order bias.
- Double robustness; Neyman orthogonality; cross-fitting; product rate; DML1, DML2: machine-learned nuisances.
- MAR; IPW; augmentation; AIPW; Horvitz–Thompson; Hajek: missing data.
- Higher-order influence function; U-statistic; integrated squared density; minimax rate: beyond the first order.
Sources
- Adaptation and the bound.
- C. Stein, Proc. Third Berkeley Symp. 1 (1956); C. Stone, Ann. Stat. 3 (1975); P. Bickel, Ann. Stat. 10 (1982).
- Y. Koshevnik & B. Levit, Theory Probab. Appl. 21 (1976); J. Pfanzagl, Contributions to a General Asymptotic Statistical Theory (1982); A. Schick, Ann. Stat. 14 (1986).
- B. Efron, JASA 72 (1977); J. Begun, W. Hall, W.-M. Huang & J. Wellner, Ann. Stat. 11 (1983).
- Influence functions in causal inference and missing data.
- J. Robins, A. Rotnitzky & L. P. Zhao, JASA 89 (1994); J. Hahn, Econometrica 66 (1998).
- P. Robinson, Econometrica 56 (1988); J. Neyman, in Probability and Statistics: the Harald Cramér Volume (1959).
- J. Kang & J. Schafer, Stat. Sci. 22 (2007).
- Estimators.
- M. van der Laan & D. Rubin, Int. J. Biostat. 2 (2006); V. Chernozhukov, D. Chetverikov, M. Demirer, E. Duflo, C. Hansen, W. Newey & J. Robins, Econometrics J. 21 (2018).
- J. Robins, L. Li, E. Tchetgen Tchetgen & A. van der Vaart, in Probability and Statistics: Essays in Honor of David A. Freedman (2008); P. Bickel & Y. Ritov, Sankhyā A 50 (1988).
- Data. R. LaLonde, Am. Econ. Rev. 76 (1986); R. Dehejia & S. Wahba, JASA 94 (1999).
- Books and reviews.
- P. Bickel, C. Klaassen, Y. Ritov & J. Wellner, Efficient and Adaptive Estimation for Semiparametric Models (1993).
- A. Tsiatis, Semiparametric Theory and Missing Data (2006); A. van der Vaart, Asymptotic Statistics, ch. 25 (1998).
- M. van der Laan & S. Rose, Targeted Learning (2011); E. Kennedy, Semiparametric doubly robust targeted double machine learning: a review (2022).
About this partfrom its README
Part 49 of a sixty-five-part course in statistics, from a first course to a PhD (see the series plan and the syllabus), and the seventh part of Stage IV, the PhD core.
It opens with Stein's question of 1956: can the centre of a symmetric distribution be estimated as well without knowing its shape? Stone (1975) and Bickel (1982) answered yes, and a simulation shows an adaptive estimator, never told the law, near the bound 1/I_f under five laws. This fixed-trim KDE one-step is an illustration inspired by adaptive score estimation, not a proof of the exact asymptotic adaptation theorem. The part asks how well a finite-dimensional quantity can be estimated when the rest of the model is infinite dimensional, and answers with one function, the efficient influence function. It builds the theory in five steps:
- tangent spaces as the directions a model can move (drawn to scale for a 2 × 2 table under independence);
- pathwise derivatives, gradients, and the efficient influence function as a projection;
- the bound, as the hardest one-dimensional submodel, and a local minimax statement;
- worked influence functions: the mean, quantiles, the ATE and ATT (Hahn 1998), Robinson's partially linear model, Cox's partial likelihood;
- the nuisance tangent space and the efficient score, which explains adaptation.
It then uses the theory on:
- constructing efficient estimators: one-step, estimating equations, TMLE (with the NSW data);
- double robustness, as the product structure of the second-order remainder;
- the theory of double machine learning: Neyman orthogonality, cross-fitting, the product rate a + b > ½ for fixed order bounds, or a little-o product at equality;
- missing data under MAR (Robins, Rotnitzky & Zhao 1994), on the World's survey;
- higher-order influence functions, with the integrated squared density;
- the World test: plug-in, IPW, one-step and TMLE on Part 36's observational world (Board).
It keeps three promises:
- Part 36 used AIPW and DML and called them doubly robust and root-n consistent with machine-learned nuisances. Chapters 5–8 prove both and say why.
- Part 47 proved the convolution theorem for parametric models. Chapters 1–3 extend it to semiparametric models.
- Part 48 found that a plugged-in nuisance costs its footprint. Chapters 4–5 turn the footprint into geometry: the efficient score is orthogonal to the nuisance tangent space.
Built in this part:
statkit.semipar(explainer/stats/kit/semipar.py), tested intests/test_stats_kit_semipar.py:- L₂⁰(p) geometry on a finite sample space: inner products, projections, pathwise derivatives, numerical gradients, orthonormal bases, the bound; the independence model's tangent space;
- Fisher informations for location; symmetric laws; Hodges–Lehmann; Stone's adaptive one-step estimator;
- the ATE by plug-in, IPW, one-step and TMLE with influence-function SEs; the ATT one-step;
- the product-rate experiment (nuisances corrupted at n^{−a}, n^{−b});
- a mean under MAR by complete cases, IPW, regression and AIPW;
- the integrated squared density: plug-in, one-step and the second-order U-statistic.
- The tangent-space picture (
TangentSpaceinexplainer/stats/viz.py), the part's instrument: an oblique 3D view of L₂⁰(P) with the model's tangent plane, nuisance lines, score and gradient arrows, and their orthogonal projections.
Data.
- From the Museum: the NSW job-training data (LaLonde 1986; Dehejia & Wahba 1999).
- From the World: the survey of Part 41 (income missing at random) and Part 36's observational world (doctors choose, a little more gently than in Part 36).
- The rest is exact arithmetic or seeded simulation.
The Coverage Board gains five rows, all nominal 90%, on the World (doctors choose, n = 2,000):
| Method | Achieved ± MCSE | Verdict |
|---|---|---|
| plug-in, \ \(k\)-NN outcome models | 3.33% ± 1.04% | broken |
| IPW, \ logistic propensity | 96.33% ± 1.09% | conservative |
| one-step, \ \(k\)-NN \(+\) logistic, \ cross-fitted | 91.00% ± 1.66% | kept |
| TMLE, \ \(k\)-NN \(+\) logistic, \ cross-fitted | 90.33% ± 1.71% | kept |
| one-step, \ \(k\)-NN for both | 71.33% ± 2.62% | broken |
Each row uses 300 independent samples drawn with replacement from the fixed eligible World pool. The target is the pool ATE, −9.9303, rather than each sample's own effect. Preprocessing is fitted within training folds. The plug-in shares a one-step reference width to isolate bias; the IPW SE treats fitted weights as fixed and is not a general fitted-model interval guarantee.
Chapter notes
| # | Chapter | Numbers |
|---|---|---|
| 0 | Adaptive estimation | n·Var at n = 400 (t₃): mean 2.96, median 1.87, HL 1.61, adaptive 1.68, bound 1.5; mixture: adaptive 1.83 vs bound 1.38 |
| 1 | Tangent spaces | 2 × 2 table under independence: L₂⁰ has 3 dimensions, the tangent space 2 |
| 2 | Pathwise derivatives | ‖φ‖² = 0.1476, ‖φ*‖² = 0.0972; simulated n·Var 0.1448 and 0.0957 |
| 3 | Bounds | least favourable direction 28°; known margin: 0.0756; ATE bound 4.70, one-step 4.53, Hajek 6.81, HT 13.75 |
| 4 | Worked influence functions | the mean, quantiles, the ATE and ATT (Hahn 1998), the PLR (Robinson 1988), Cox |
| 5 | The efficient score | adaptation: odd score ⟂ even nuisance scores; heteroskedastic PLR: orthogonal but not efficient |
| 6 | Efficient estimators | √n·bias at n = 16,000: plug-in 6.94, one-step -0.32, TMLE -0.26; NSW: 1,794 (671) vs 1,622 (656); PSID ATT 1,218 (889; refitted bootstrap) |
| 7 | Double robustness | one-step bias: +0.004, -0.004, +0.002, +0.198 |
| 8 | DML theory | nonzero limiting √n·bias at a + b = ½; centred inference needs a little-o product; ⅛ + ⅛: -6.2 → -16.2; 5-NN: coverage 82.5% reused vs 87.0% cross-fitted |
| 9 | Missing data | survey: complete cases +0.0252, AIPW +0.0050 (SE 0.0182) |
| 10 | Higher order | √n·bias at h = 0.05: plug-in +0.25, one-step -0.56, U-statistic -0.02 (SD 0.218 vs 0.222) |
| 11 | The World test | coverage: plug-in 3.3%, IPW 96.3%, one-step 91.0%, TMLE 90.3%, k-NN both 71.3% |
| 12 | Outro | — |
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: adaptive estimation (Stein 1956; Stone 1975; Bickel 1982).
- Models and tangent spaces. Submodels and scores; the tangent space as a subspace of L² (
TangentSpace). - Pathwise differentiability. Gradients and the efficient influence function as a projection.
- Efficiency bounds. The convolution theorem in semiparametric models (Part 47).
- Worked influence functions. The mean; the ATE (Hahn 1998); the partially linear model (Robinson 1988); Cox's partial likelihood is efficient.
- The nuisance tangent space and the efficient score. Geometry of projections.
- Constructing efficient estimators. One-step; estimating equations; TMLE (van der Laan & Rubin 2006).
- Double robustness as a structural property of the influence function.
- DML theory. Neyman orthogonality; cross-fitting; the product-rate condition n^{−1/4} × n^{−1/4}.
- Missing data, semiparametrically (Robins, Rotnitzky & Zhao 1994; Tsiatis 2006).
- Higher-order influence functions (Robins et al. 2008): beyond root-n.
- The World test. Plug-in vs one-step vs TMLE (Board).
- Outro.
Built: statkit.semipar. Books: Bickel, Klaassen, Ritov & Wellner; Tsiatis; van der Vaart ch. 25; Kennedy's review (2022).
Build the film
python -m videos.stats.stats49.compute # the part's numbers, into .cache/stats49
python tools/build.py stats49 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py stats49 Hook # one chapter, silent, with a contact sheet
Scenes: videos/stats/stats49. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
OMP_NUM_THREADS=1 python -m videos.stats.stats49.compute # once (about fifteen minutes)
python tools/build.py stats49 -q l # fast 480p preview
python tools/build.py stats49 # 1080p30 -> renders/stats49.mp4
python tools/qa_scene.py stats49 Pathwise
python tools/lecture_length.py stats49 --floor 50