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 potential-outcome system, a real-valued potential-outcome variable, an intervention regime, and a measure on the sample space, the counterfactual law is the distribution obtained by pushing the measure forward through the variable's potential-outcome function under that regime.
For a potential-outcome system, a real-valued potential-outcome variable, an intervention regime, and a measure on the sample space, the counterfactual cumulative distribution function is the cumulative distribution function of the variable's counterfactual law under that regime and measure.
For a potential-outcome system, a real-valued potential-outcome variable, an intervention regime, a measure on the sample space, and a real index, the counterfactual quantile is the quantile at that index of the variable's counterfactual law under the regime and measure.
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 potential-outcome system, a real-valued outcome variable, a potential-outcome intervention variable on a measurable scale, a value of that intervention variable, and a measure on the sample space, the single-intervention counterfactual law is the distribution of the outcome variable's potential outcome when the intervention variable is set to that value.
For a potential-outcome system, a real-valued outcome variable, a potential-outcome intervention variable on a measurable scale, a value of that intervention variable, a measure on the sample space, and a real index, the single-intervention counterfactual quantile is the quantile at that index of the outcome variable's potential outcome when the intervention variable is set to that value.
2 supporting declarations (lemmas, instances)
-
instIsProbabilityMeasureCfLawinstance — For a potential-outcomes system, a real-valued potential-outcome variable in that system, an intervention regime, and a measure on the system's sample space, if that sample-space measure is a probability measure, then the distribution of the variable's potential outcome under the regime is a probability measure.parametersinstancegiven byMeasure.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=·].hypothesesconclusionIntegrable f (μ.map 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]