NLA-lib Explorer

Integrals and events of two independent random variables

Library · Source module

Integrals and events of two independent random variables

If X and Y are independent, their joint law is the product \mu_X \otimes \mu_Y (ProbabilityTheory.indepFun_iff_map_prod_eq_prod_map_map), so integrals and probabilities of the pair are iterated ones against the two laws. This file records four consequences, and one fact about independent families.

* The lower integral of a measurable f \ge 0 of the pair is the iterated integral against the two laws, \int f(X, Y)\,d\mu = \int\!\int f(\mathbf{x}, y)\,d\mu_Y(y)\,d\mu_X(\mathbf{x}) (Tonelli, MeasureTheory.lintegral_prod). This is the conditioning step of every expectation of two independent random matrices. * The probability of an event (X, Y) \in E is the average over the law of Y of the probabilities of its sections \{X \in E_y\} (Fubini, MeasureTheory.Measure.prod_apply_symm); it is bounded by a uniform bound \delta_1 on the sections over a good set G plus the probability \delta_2 that Y leaves G. * The Bochner integral of a function of the pair, integrable for the product of the two laws, is the iterated integral (Fubini, MeasureTheory.integral_prod), the conditioning step of a mean or a variance of a function of two independent random matrices. * When one factor W has a named law \nu, it is integrated out against \nu: \int f(U, W)\,d\mu = \int\!\int f(U(\omega), w)\,d\nu(w)\,d\mu(\omega), and a bound \mathbf{H} on the inner integral gives integrability and \int f(U, W)\,d\mu \le \int \mathbf{H}\,d\mu. * A measurable function of the coordinates in a finite set s of an independent family is independent of every coordinate outside s: the step that conditions an iterated random method on its past.

Mathlib has the ingredients but not these statements. Upstream candidates for Mathlib/Probability/Independence/Basic.lean.

Used by the SRHT, sketched regression, Hutch++ and randomized Kaczmarz.

The freezing lemma: if Z is independent of T, then in a function F(T, Z) the variable T may be frozen, so the joint law of (T, F(T, Z)) is determined by the laws of F(t, Z) for fixed t. This is the step of every deferred-decision argument where a transcript-dependent rotation or projection acts on an independent Gaussian or Haar matrix.

Main results

* ProbabilityTheory.IndepFun.lintegral_comp_eq_lintegral_lintegral: Tonelli for an independent pair. * ProbabilityTheory.IndepFun.measureReal_mem_le_add: the sections bound. * ProbabilityTheory.IndepFun.integral_comp_eq_integral_integral: Fubini for an independent pair. * ProbabilityTheory.IndepFun.lintegral_comp_eq_lintegral_lintegral_of_hasLaw, ProbabilityTheory.IndepFun.lintegral_ofReal_comp_eq_lintegral_ofReal_integral: integrating out an independent factor of known law. * ProbabilityTheory.IndepFun.integrable_comp_of_integral_le, ProbabilityTheory.IndepFun.integral_comp_le_of_integral_le: integrability and a bound from a bound on the inner integral. * ProbabilityTheory.IndepFun.integrable_comp_iff: integrability against \mu is integrability against the product of the two laws. * ProbabilityTheory.iIndepFun.indepFun_comp_of_dependsOn: a function of some coordinates of an independent family is independent of another coordinate. * ProbabilityTheory.IndepFun.identDistrib_prodMk_of_forall_map_eq: equal laws for every frozen t give equal joint laws; MeasureTheory.Measure.map_prod_eq_of_forall_map_eq is the same statement for a product measure. * ProbabilityTheory.IndepFun.hasLaw_prodMk_prod_of_forall_map_eq: a law \nu not depending on t makes F(T, Z) independent of T with law \nu.

Declarations