PO.Analysis
Analytic readings of potential outcomes: distributional (quantile) functionals, regression-function predicates, and population residualization primitives.
Quantile 6 core · 2 supporting This file gives the distributional reading of a real-valued potential outcome: its law under a measure on the sample space, the associated cumulative distribution function, and the corresponding quantile. ★ cfCDF_eq_measureReal
Laws and Quantiles of Real Potential Outcomes
This file gives the distributional reading of a real-valued potential outcome:
its law under a measure on the sample space, the associated cumulative
distribution function, and the corresponding quantile. The main definitions are
POVar.cfLaw, POVar.cfCDF, and POVar.cfQuantile, with the single-intervention
specializations POVar.cfUnderLaw and POVar.cfUnderQuantile for treatment
effects written as Y(d). The lemma POVar.cfCDF_eq_measureReal records the
probability interpretation of the counterfactual cdf.
For a real-valued potential-outcome variable, an intervention regime, and a measure on the sample space, this is the distribution of the variable's potential outcome under the regime, obtained by pushing that measure forward through the counterfactual-value function.
For a real-valued potential-outcome variable, an intervention regime, and a measure on the sample space, this is the cumulative distribution function of the variable's potential outcome under that regime with respect to that measure.
Definition (Lean source)
For a real-valued potential-outcome variable, an intervention regime, a measure on the sample space, and a real index , this is the -quantile of the variable's potential outcome under that regime with respect to that measure.
Definition (Lean source)
For an intervention regime r and a measure μ on the sample space, the cdf of the potential outcome a(r) evaluated at y equals the μ-probability of the event a(r) ≤ y.
Formal statement
Proof (Lean source)
For a real-valued potential-outcome variable, another potential-outcome variable, a value of the second variable, and a measure on the sample space, this is the distribution of the first variable's potential outcome under the single-variable intervention that sets the second variable to that value.
Definition (Lean source)
For a real-valued potential-outcome variable, another potential-outcome variable, a value of the second variable, a measure on the sample space, and a real index , this is the -quantile of the first variable's potential outcome under the single-variable intervention that sets the second variable to that value.
Definition (Lean source)
2 supporting declarations (lemmas, instances)
-
instIsProbabilityMeasureCfLawinstance — The law of a real-valued potential outcome is a probability measure whenever the original sample-space measure is a probability measure.instance instIsProbabilityMeasureCfLaw (r : Regime P.V P.X) (μ : Measure P.Ω) [IsProbabilityMeasure μ] : IsProbabilityMeasure (a.cfLaw r μ) := Measure.isProbabilityMeasure_map (a.measurable_cf r).aemeasurable -
cfUnderQuantile_eqlemma — The single-intervention quantile is exactly the quantile computed from the corresponding single-intervention law.hypothesesconclusiona.cfUnderQuantile w y μ τ = quantile (a.cfUnderLaw w y μ) τProof (Lean source)
lemma cfUnderQuantile_eq (w : POVar P β) (y : β) (μ : Measure P.Ω) (τ : ℝ) : a.cfUnderQuantile w y μ τ = quantile (a.cfUnderLaw w y μ) τ := rfl
Regression 2 core · 2 supporting This file provides a measure-theoretic predicate saying that a real function is a concrete representative of a conditional mean of one real random variable given another. ★ aeEq_of_aeEq_response
Regression Function Representatives
This file provides a measure-theoretic predicate saying that a real function is a concrete representative of a conditional mean of one real random variable given another. The predicate is used as a lightweight interface in RDD-style potential-outcome identification statements.
The central structure is IsRegressionFunction μ X g f, which requires
measurability, integrability, and equality of slice integrals over every
measurable event in the range of X. The file also proves pushforward
integrability of representatives, closure under subtraction, and almost-everywhere
equality of two representatives when the represented responses are a.e. equal.
A regression-function representative for the conditional mean of a response g given a conditioning variable X: a candidate function f on the real line that is measurable, for which the response g is integrable and the composite f ∘ X is integrable, and such that the integral of g over every measurable event determined by X equals the integral of f ∘ X over that same event.
Definition (Lean source)
Fix a conditioning variable X that is μ-almost-everywhere measurable. If two response variables g₁ and g₂ are μ-almost- everywhere equal, and f₁ is a regression-function representative of the conditional mean of g₁ given X while f₂ is a regression-function representative of the conditional mean of g₂ given X, then f₁ and f₂ agree (μ.map X)-almost everywhere.
Formal statement
Proof (Lean source)
2 supporting declarations (lemmas, instances)
-
integrable_pushforwardlemma — Pushforward integrability: f is integrable under μ.map X whenever X is AEMeasurable and f represents E[g|X=·].Proof (Lean source)
lemma integrable_pushforward (h : IsRegressionFunction μ X g f) (hX : AEMeasurable X μ) : Integrable f (μ.map X) := by rw [integrable_map_measure h.measurable.aestronglyMeasurable hX] exact h.integrable_compose -
sublemma — Linearity (subtraction) of IsRegressionFunction: difference of representatives is the representative of the difference.hypothesesconclusionIsRegressionFunction μ X (fun ω => g₁ ω - g₂ ω) (fun x => f₁ x - f₂ x) where measurableProof (Lean source)
lemma IsRegressionFunction.sub {Ω : Type*} [MeasurableSpace Ω] {μ : Measure Ω} {X : Ω → ℝ} {g₁ g₂ : Ω → ℝ} {f₁ f₂ : ℝ → ℝ} (h₁ : IsRegressionFunction μ X g₁ f₁) (h₂ : IsRegressionFunction μ X g₂ f₂) : IsRegressionFunction μ X (fun ω => g₁ ω - g₂ ω) (fun x => f₁ x - f₂ x) where measurable := h₁.measurable.sub h₂.measurable integrable_response := h₁.integrable_response.sub h₂.integrable_response integrable_compose := h₁.integrable_compose.sub h₂.integrable_compose integral_preimage_eq A hA := by have h_lhs : (∫ ω in X ⁻¹' A, g₁ ω - g₂ ω ∂μ) = (∫ ω in X ⁻¹' A, g₁ ω ∂μ) - ∫ ω in X ⁻¹' A, g₂ ω ∂μ := integral_sub h₁.integrable_response.integrableOn h₂.integrable_response.integrableOn have h_rhs : (∫ ω in X ⁻¹' A, f₁ (X ω) - f₂ (X ω) ∂μ) = (∫ ω in X ⁻¹' A, f₁ (X ω) ∂μ) - ∫ ω in X ⁻¹' A, f₂ (X ω) ∂μ := integral_sub h₁.integrable_compose.integrableOn h₂.integrable_compose.integrableOn rw [h_lhs, h_rhs, h₁.integral_preimage_eq A hA, h₂.integral_preimage_eq A hA]