Estimation.DTR.DML
This file defines the one-shot double machine learning estimator for the two-period dynamic-treatment-regime effect.
Basic 2 core · 1 supporting Defines dml_DTR_estimator, the fold-B empirical mean of the two-stage sequential doubly robust pseudo-outcome. ★ seqDRMomentFunctional_memLp_two
One-shot DTR DML estimator and score interfaces
Defines dml_DTR_estimator, the fold-B empirical mean of the two-stage
sequential doubly robust pseudo-outcome. It also proves the joint measurability
and L² packaging lemmas needed to instantiate the abstract DML theorem. The
asymptotic-linearity wrapper itself is in AsymptoticLinearity.
For a potential-outcome system, treatment space, and two-stage covariate spaces, a dynamic-treatment-regime estimation system, an overlap level, strict overlap, square-integrability of the factual outcome, a nuisance specification, its membership in the bounded nuisance class, and square-integrability of its stage-zero and stage-one outcome regressions, the resulting sequential doubly robust moment at the target is square-integrable under the observed-data law.
Formal statement
Proof (Lean source)
For a potential-outcome system whose sample space is standard Borel and whose measure is finite with a measurable treatment space in which every singleton is measurable and measurable stage-specific covariate spaces, a two-stage dynamic treatment-regime estimation system, an independent identically distributed sample whose observations comprise baseline covariates, first treatment, intermediate covariates, second treatment, and outcome, a one-shot sample split, a sequence of stagewise nuisance-function estimates indexed by sample size and the underlying random outcome, and a sample-size index, the one-shot double-machine-learning sequentially doubly robust estimator is the function of the underlying random outcome that averages, over the split's estimation fold, the sequential doubly robust moment at the target treatment regime, using the nuisance estimate at that sample size and target value zero.
Definition (Lean source)
1 supporting declaration (lemmas, instances)
-
measurable_seqDRMomentFunctional_uncurrylemma — Given a dynamic-treatment-regime estimation system, target value, and parameterized nuisance functions, if the first outcome regression, first propensity, second outcome regression, and second propensity are jointly measurable in the parameter and observation, then the corresponding sequential doubly robust moment is jointly measurable.hypothesesδ :sharedTypeΩ' :Type*S :DTREstimationSystem P δ γθ :ℝη_fn :Ω' → DTRNuisanceVec₂ δ γh_mu0 :Measurable (fun p : Ω' × γ 0 => (η_fn p.1).μ₀_fn p.2)h_e0 :Measurable (fun p : Ω' × γ 0 => (η_fn p.1).e₀_fn p.2)h_mu1 :Measurable (fun p : Ω' × (γ 1 × δ × γ 0) => (η_fn p.1).μ₁_fn p.2)h_e1 :Measurable (fun p : Ω' × (γ 1 × δ × γ 0) => (η_fn p.1).e₁_fn p.2)conclusionMeasurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => S.seqDRMomentFunctional (η_fn p.1) p.2 θ)Proof (Lean source)
lemma measurable_seqDRMomentFunctional_uncurry {Ω' : Type*} [MeasurableSpace Ω'] (S : DTREstimationSystem P δ γ) (θ : ℝ) (η_fn : Ω' → DTRNuisanceVec₂ δ γ) (h_mu0 : Measurable (fun p : Ω' × γ 0 => (η_fn p.1).μ₀_fn p.2)) (h_e0 : Measurable (fun p : Ω' × γ 0 => (η_fn p.1).e₀_fn p.2)) (h_mu1 : Measurable (fun p : Ω' × (γ 1 × δ × γ 0) => (η_fn p.1).μ₁_fn p.2)) (h_e1 : Measurable (fun p : Ω' × (γ 1 × δ × γ 0) => (η_fn p.1).e₁_fn p.2)) : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => S.seqDRMomentFunctional (η_fn p.1) p.2 θ) := by unfold DTREstimationSystem.seqDRMomentFunctional unfold Causalean.Estimation.DTR.seqDRMoment have hpS0 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => (p.1, projS₀ p.2)) := by unfold projS₀ exact Measurable.prodMk measurable_fst measurable_snd.fst have hpH1 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => (p.1, histH₁ p.2)) := by unfold histH₁ projS₁ projD₀ projS₀ measurability have hμ0 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => (η_fn p.1).μ₀_fn (projS₀ p.2)) := h_mu0.comp hpS0 have he0 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => (η_fn p.1).e₀_fn (projS₀ p.2)) := h_e0.comp hpS0 have hμ1 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => (η_fn p.1).μ₁_fn (histH₁ p.2)) := h_mu1.comp hpH1 have he1 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => (η_fn p.1).e₁_fn (histH₁ p.2)) := h_e1.comp hpH1 have hind0 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => indEq (projD₀ p.2) (S.dbar 0)) := by unfold projD₀ exact (measurable_indEq_left (S.dbar 0)).comp measurable_snd.snd.fst have hind1 : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => indEq (projD₁ p.2) (S.dbar 1)) := by unfold projD₁ exact (measurable_indEq_left (S.dbar 1)).comp measurable_snd.snd.snd.snd.fst have hy : Measurable (fun p : Ω' × (γ 0 × δ × γ 1 × δ × ℝ) => projY p.2) := by unfold projY exact measurable_snd.snd.snd.snd.snd exact ((hμ0.add ((hind0.div he0).mul (hμ1.sub hμ0))).add (((hind0.mul hind1).div (he0.mul he1)).mul (hy.sub hμ1))).sub measurable_const
AsymptoticLinearity 1 core · 0 supporting Proves dml_DTR_isAsymLinear for the two-stage sequential doubly robust estimator. ★ dml_DTR_isAsymLinear
Asymptotic linearity for one-shot DTR DML
Proves dml_DTR_isAsymLinear for the two-stage sequential doubly robust
estimator. The wrapper translates stagewise overlap, measurability, L², four
individual o_p(1) rates, and two same-stage product rates into the abstract
sequential-DML interface.
Asymptotic linearity of the one-shot DML DTR (n = 2) estimator — thm:est-dml-dtr-al. Assuming the DTR backdoor identification conditions hold, the theorem shows that the one-shot double/debiased-machine-learning estimator of the two-period dynamic-treatment-regime effect is asymptotically linear, with influence function ψ_seqDR, around the true effect θ₀. The population-truth propensities obey strict overlap — some ε ∈ (0, 1/2] sandwiches them a.s. at both stages, restated pointwise on the value-space propensity functions e₀_val, e₁_val; the factual outcome and every counterfactual outcome under a fixed regime are square-integrable; and the one-shot sample split's evaluation-fold fraction |B(n)|/n converges to some c > 0. For every horizon n, the stage-0 nuisance learners μ̂₀, ê₀ and the stage-1 learners μ̂₁, ê₁ are each jointly measurable in the sample outcome and the covariate history at stage 0 and likewise at stage 1; the fitted propensities satisfy the same strict-overlap bound ε pointwise at both stages; each learner lies in L² of the covariate-history distribution at stage 0 and likewise at stage 1; and each learner is measurable with respect to the auxiliary training fold's σ-algebra jointly with the covariate history at stage 0 and at stage 1. Finally, each stagewise estimation error converges to zero in L² at rate o_p(1), and both same-stage products of an outcome-regression error with its corresponding propensity error vanish at the doubly-robust rate o_p(n^{-1/2}).