Documentation

Mathlib.Probability.Independence.Integration

Integration in Probability Theory #

Integration results for independent random variables. Specifically, for two independent random variables X and Y over the extended non-negative reals, E[X * Y] = E[X] * E[Y], and similar results.

Implementation notes #

Many lemmas in this file take two arguments of the same typeclass. It is worth remembering that lean will always pick the later typeclass in this situation, and does not care whether the arguments are [], {}, or (). All of these use the MeasurableSpace M2 to define μ:

example {M1 : MeasurableSpace Ω} [M2 : MeasurableSpace Ω] {μ : Measure Ω} : sorry := sorry
example [M1 : MeasurableSpace Ω] {M2 : MeasurableSpace Ω} {μ : Measure Ω} : sorry := sorry
theorem ProbabilityTheory.lintegral_mul_indicator_eq_lintegral_mul_lintegral_indicator {Ω : Type u_1} {f : ΩENNReal} {Mf : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (hMf : Mf ) (c : ENNReal) {T : Set Ω} (h_meas_T : MeasurableSet T) (h_ind : IndepSets {s : Set Ω | MeasurableSet s} {T} μ) (h_meas_f : Measurable f) :
∫⁻ (ω : Ω), f ω * T.indicator (fun (x : Ω) => c) ω μ = (∫⁻ (ω : Ω), f ω μ) * ∫⁻ (ω : Ω), T.indicator (fun (x : Ω) => c) ω μ

If a random variable f in ℝ≥0∞ is independent of an event T, then if you restrict the random variable to T, then E[f * indicator T c 0]=E[f] * E[indicator T c 0]. It is useful for lintegral_mul_eq_lintegral_mul_lintegral_of_independent_measurableSpace.

theorem ProbabilityTheory.lintegral_mul_eq_lintegral_mul_lintegral_of_independent_measurableSpace {Ω : Type u_1} {f g : ΩENNReal} {Mf Mg : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} (hMf : Mf ) (hMg : Mg ) (h_ind : Indep Mf Mg μ) (h_meas_f : Measurable f) (h_meas_g : Measurable g) :
∫⁻ (ω : Ω), f ω * g ω μ = (∫⁻ (ω : Ω), f ω μ) * ∫⁻ (ω : Ω), g ω μ

If f and g are independent random variables with values in ℝ≥0∞, then E[f * g] = E[f] * E[g]. However, instead of directly using the independence of the random variables, it uses the independence of measurable spaces for the domains of f and g. This is similar to the sigma-algebra approach to independence. See lintegral_mul_eq_lintegral_mul_lintegral_of_indepFun for a more common variant of the product of independent variables.

theorem ProbabilityTheory.lintegral_mul_eq_lintegral_mul_lintegral_of_indepFun {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {f g : ΩENNReal} (h_meas_f : Measurable f) (h_meas_g : Measurable g) (h_indep_fun : IndepFun f g μ) :
∫⁻ (ω : Ω), (f * g) ω μ = (∫⁻ (ω : Ω), f ω μ) * ∫⁻ (ω : Ω), g ω μ

If f and g are independent random variables with values in ℝ≥0∞, then E[f * g] = E[f] * E[g].

theorem ProbabilityTheory.lintegral_mul_eq_lintegral_mul_lintegral_of_indepFun' {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {f g : ΩENNReal} (h_meas_f : AEMeasurable f μ) (h_meas_g : AEMeasurable g μ) (h_indep_fun : IndepFun f g μ) :
∫⁻ (ω : Ω), (f * g) ω μ = (∫⁻ (ω : Ω), f ω μ) * ∫⁻ (ω : Ω), g ω μ

If f and g with values in ℝ≥0∞ are independent and almost everywhere measurable, then E[f * g] = E[f] * E[g] (slightly generalizing lintegral_mul_eq_lintegral_mul_lintegral_of_indepFun).

theorem ProbabilityTheory.lintegral_mul_eq_lintegral_mul_lintegral_of_indepFun'' {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {f g : ΩENNReal} (h_meas_f : AEMeasurable f μ) (h_meas_g : AEMeasurable g μ) (h_indep_fun : IndepFun f g μ) :
∫⁻ (ω : Ω), f ω * g ω μ = (∫⁻ (ω : Ω), f ω μ) * ∫⁻ (ω : Ω), g ω μ
theorem ProbabilityTheory.lintegral_prod_eq_prod_lintegral_of_indepFun {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_3} (s : Finset ι) (X : ιΩENNReal) (hX : iIndepFun X μ) (x_mea : ∀ (i : ι), Measurable (X i)) :
∫⁻ (ω : Ω), is, X i ω μ = is, ∫⁻ (ω : Ω), X i ω μ
theorem ProbabilityTheory.IndepFun.integrable_op {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [TopologicalSpace E] [ContinuousENorm E] [MeasurableSpace E] [OpensMeasurableSpace E] [TopologicalSpace F] [ContinuousENorm F] [MeasurableSpace F] [OpensMeasurableSpace F] [TopologicalSpace G] [ContinuousENorm G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (hX : MeasureTheory.Integrable X μ) (hY : MeasureTheory.Integrable Y μ) (B : EFG) (cB : Continuous (Function.uncurry B)) (C : NNReal) (hB : ∀ (x : E) (y : F), B x y‖ₑ C * x‖ₑ * y‖ₑ) :
MeasureTheory.Integrable (fun (ω : Ω) => B (X ω) (Y ω)) μ

If X and Y are two independent and integrable random variables, and B is a function of two variables such that ‖B x y‖ₑ ≤ C * ‖x‖ₑ * ‖y‖ₑ, then B X Y is integrable.

This is useful in particular if B is a continuous bilinear map.

theorem ProbabilityTheory.IndepFun.integrable_bilin {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} {𝕜 : Type u_8} [NontriviallyNormedField 𝕜] [SeminormedAddCommGroup E] [NormedSpace 𝕜 E] [MeasurableSpace E] [OpensMeasurableSpace E] [SeminormedAddCommGroup F] [NormedSpace 𝕜 F] [MeasurableSpace F] [OpensMeasurableSpace F] [SeminormedAddCommGroup G] [NormedSpace 𝕜 G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (hX : MeasureTheory.Integrable X μ) (hY : MeasureTheory.Integrable Y μ) (B : E →L[𝕜] F →L[𝕜] G) :
MeasureTheory.Integrable (fun (ω : Ω) => (B (X ω)) (Y ω)) μ

A continuous bilinear map applied to two independent and integrable random variables is integrable.

theorem ProbabilityTheory.IndepFun.integrable_left_of_integrable_op {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [TopologicalSpace E] [ContinuousENorm E] [MeasurableSpace E] [OpensMeasurableSpace E] [NormedAddGroup F] [MeasurableSpace F] [OpensMeasurableSpace F] [TopologicalSpace G] [ContinuousENorm G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (B : EFG) (c : NNReal) (hc : c 0) (hB : ∀ (x : E) (y : F), c * x‖ₑ * y‖ₑ B x y‖ₑ) (h'XY : MeasureTheory.Integrable (fun (ω : Ω) => B (X ω) (Y ω)) μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) (h'Y : ¬Y =ᵐ[μ] 0) :

If X and Y are two independent random variables, B X Y is integrable, Y is not almost-surely 0 and c * ‖x‖ₑ * ‖y‖ₑ ≤ ‖B x y‖ₑ, then X is integrable.

This is useful for the case where B is scalar multiplication, as it will allow to drop integrability hypotheses.

theorem ProbabilityTheory.IndepFun.integrable_right_of_integrable_op {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [NormedAddGroup E] [MeasurableSpace E] [OpensMeasurableSpace E] [TopologicalSpace F] [ContinuousENorm F] [MeasurableSpace F] [OpensMeasurableSpace F] [TopologicalSpace G] [ContinuousENorm G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (B : EFG) (c : NNReal) (hc : c 0) (hB : ∀ (x : E) (y : F), c * x‖ₑ * y‖ₑ B x y‖ₑ) (h'XY : MeasureTheory.Integrable (fun (ω : Ω) => B (X ω) (Y ω)) μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) (h'X : ¬X =ᵐ[μ] 0) :

If X and Y are two independent random variables, B X Y is integrable, X is not almost-surely 0 and c * ‖x‖ₑ * ‖y‖ₑ ≤ ‖B x y‖ₑ, then Y is integrable.

This is useful for the case where B is scalar multiplication, as it will allow to drop integrability hypotheses.

theorem ProbabilityTheory.IndepFun.integral_bilin_comp_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {𝓧 : Type u_3} {𝓨 : Type u_4} {E : Type u_5} {F : Type u_6} {G : Type u_7} [MeasurableSpace 𝓧] [MeasurableSpace 𝓨] [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] [CompleteSpace E] [NormedAddCommGroup F] [NormedSpace F] [NormedSpace 𝕜 F] [CompleteSpace F] [NormedAddCommGroup G] [NormedSpace G] [NormedSpace 𝕜 G] [CompleteSpace G] {X : Ω𝓧} {Y : Ω𝓨} {f : 𝓧E} {g : 𝓨F} (hXY : IndepFun X Y μ) (hX : AEMeasurable X μ) (hY : AEMeasurable Y μ) (hf : MeasureTheory.Integrable f (MeasureTheory.Measure.map X μ)) (hg : MeasureTheory.Integrable g (MeasureTheory.Measure.map Y μ)) (B : E →L[𝕜] F →L[𝕜] G) :
(ω : Ω), (B (f (X ω))) (g (Y ω)) μ = (B ( (ω : Ω), f (X ω) μ)) ( (ω : Ω), g (Y ω) μ)

If X and Y are independent random variables such that f(X) and g(Y) are integrable and B is a continuous bilinear map, then ∫ ω, B (f (X ω)) (g (Y ω)) ∂μ = B (∫ ω, f (X ω) ∂μ) (∫ ω, g (Y ω) ∂μ).

theorem ProbabilityTheory.IndepFun.integral_bilin_comp_comp' {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {𝓧 : Type u_3} {𝓨 : Type u_4} {E : Type u_5} {F : Type u_6} {G : Type u_7} [MeasurableSpace 𝓧] [MeasurableSpace 𝓨] [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] [CompleteSpace E] [NormedAddCommGroup F] [NormedSpace F] [NormedSpace 𝕜 F] [CompleteSpace F] [NormedAddCommGroup G] [NormedSpace G] [NormedSpace 𝕜 G] [CompleteSpace G] {X : Ω𝓧} {Y : Ω𝓨} {f : 𝓧E} {g : 𝓨F} (hXY : IndepFun X Y μ) (hX : AEMeasurable X μ) (hY : AEMeasurable Y μ) (hf : MeasureTheory.AEStronglyMeasurable f (MeasureTheory.Measure.map X μ)) (hg : MeasureTheory.AEStronglyMeasurable g (MeasureTheory.Measure.map Y μ)) (B : E →L[𝕜] F →L[𝕜] G) (c : NNReal) (hc : c 0) (hB : ∀ (x : E) (y : F), c * x * y (B x) y) :
(ω : Ω), (B (f (X ω))) (g (Y ω)) μ = (B ( (ω : Ω), f (X ω) μ)) ( (ω : Ω), g (Y ω) μ)

If X and Y are random variables and B is a continuous bilinear map such that ∀ x y, c * ‖x‖ * ‖y‖ ≤ ‖B x y‖, then ∫ ω, B (f (X ω)) (g (Y ω)) ∂μ = B (∫ ω, f (X ω) ∂μ) (∫ ω, g (Y ω) ∂μ).

The assumption on B allows to drop the integrability condition in IndepFun.integral_bilin_comp_comp, which is useful for the versions where B is the scalar multiplication or the multiplication.

theorem ProbabilityTheory.IndepFun.integral_bilin {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] [CompleteSpace E] [MeasurableSpace E] [BorelSpace E] [NormedAddCommGroup F] [NormedSpace F] [NormedSpace 𝕜 F] [CompleteSpace F] [MeasurableSpace F] [BorelSpace F] [NormedAddCommGroup G] [NormedSpace G] [NormedSpace 𝕜 G] [CompleteSpace G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (hX : MeasureTheory.Integrable X μ) (hY : MeasureTheory.Integrable Y μ) (B : E →L[] F →L[] G) :
(ω : Ω), (B (X ω)) (Y ω) μ = (B ( (x : Ω), X x μ)) ( (x : Ω), Y x μ)

If X and Y are independent and integrable random variables and B is a continuous bilinear map, then ∫ ω, B (X ω) (Y ω) ∂μ = B μ[X] μ[Y].

theorem ProbabilityTheory.IndepFun.integral_bilin' {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] [CompleteSpace E] [MeasurableSpace E] [BorelSpace E] [NormedAddCommGroup F] [NormedSpace F] [NormedSpace 𝕜 F] [CompleteSpace F] [MeasurableSpace F] [BorelSpace F] [NormedAddCommGroup G] [NormedSpace G] [NormedSpace 𝕜 G] [CompleteSpace G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) (B : E →L[] F →L[] G) (c : NNReal) (hc : c 0) (hB : ∀ (x : E) (y : F), c * x * y (B x) y) :
(ω : Ω), (B (X ω)) (Y ω) μ = (B ( (x : Ω), X x μ)) ( (x : Ω), Y x μ)

If X and Y are random variables and B is a continuous bilinear map such that ∀ x y, c * ‖x‖ * ‖y‖ ≤ ‖B x y‖, then ∫ ω, B (X ω) (Y ω) ∂μ = B μ[X] μ[Y].

The assumption on B allows to drop the integrability condition in IndepFun.integral_bilin', which is useful for the versions where B is the scalar multiplication or the multiplication.

theorem ProbabilityTheory.IndepFun.integrable_smul {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} [TopologicalSpace E] [ContinuousENorm E] [MeasurableSpace E] [OpensMeasurableSpace E] [TopologicalSpace F] [ContinuousENorm F] [MeasurableSpace F] [OpensMeasurableSpace F] [SMul E F] [ContinuousSMul E F] [ENormSMulClass E F] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (hX : MeasureTheory.Integrable X μ) (hY : MeasureTheory.Integrable Y μ) :
MeasureTheory.Integrable (fun (ω : Ω) => X ω Y ω) μ

The scalar product of two independent and integrable random variables is integrable.

The product of two independent and integrable random variables is integrable.

@[deprecated ProbabilityTheory.IndepFun.integrable_left_of_integrable_op (since := "2026-04-30")]
theorem ProbabilityTheory.IndepFun.integrable_left_of_integrable_mul {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [TopologicalSpace E] [ContinuousENorm E] [MeasurableSpace E] [OpensMeasurableSpace E] [NormedAddGroup F] [MeasurableSpace F] [OpensMeasurableSpace F] [TopologicalSpace G] [ContinuousENorm G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (B : EFG) (c : NNReal) (hc : c 0) (hB : ∀ (x : E) (y : F), c * x‖ₑ * y‖ₑ B x y‖ₑ) (h'XY : MeasureTheory.Integrable (fun (ω : Ω) => B (X ω) (Y ω)) μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) (h'Y : ¬Y =ᵐ[μ] 0) :

Alias of ProbabilityTheory.IndepFun.integrable_left_of_integrable_op.


If X and Y are two independent random variables, B X Y is integrable, Y is not almost-surely 0 and c * ‖x‖ₑ * ‖y‖ₑ ≤ ‖B x y‖ₑ, then X is integrable.

This is useful for the case where B is scalar multiplication, as it will allow to drop integrability hypotheses.

@[deprecated ProbabilityTheory.IndepFun.integrable_right_of_integrable_op (since := "2026-04-30")]
theorem ProbabilityTheory.IndepFun.integrable_right_of_integrable_mul {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} {F : Type u_6} {G : Type u_7} [NormedAddGroup E] [MeasurableSpace E] [OpensMeasurableSpace E] [TopologicalSpace F] [ContinuousENorm F] [MeasurableSpace F] [OpensMeasurableSpace F] [TopologicalSpace G] [ContinuousENorm G] {X : ΩE} {Y : ΩF} (hXY : IndepFun X Y μ) (B : EFG) (c : NNReal) (hc : c 0) (hB : ∀ (x : E) (y : F), c * x‖ₑ * y‖ₑ B x y‖ₑ) (h'XY : MeasureTheory.Integrable (fun (ω : Ω) => B (X ω) (Y ω)) μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) (h'X : ¬X =ᵐ[μ] 0) :

Alias of ProbabilityTheory.IndepFun.integrable_right_of_integrable_op.


If X and Y are two independent random variables, B X Y is integrable, X is not almost-surely 0 and c * ‖x‖ₑ * ‖y‖ₑ ≤ ‖B x y‖ₑ, then Y is integrable.

This is useful for the case where B is scalar multiplication, as it will allow to drop integrability hypotheses.

theorem ProbabilityTheory.IndepFun.integral_fun_comp_smul_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {𝓧 : Type u_3} {𝓨 : Type u_4} {E : Type u_5} [MeasurableSpace 𝓧] [MeasurableSpace 𝓨] [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] {X : Ω𝓧} {Y : Ω𝓨} {f : 𝓧𝕜} {g : 𝓨E} (hXY : IndepFun X Y μ) (hX : AEMeasurable X μ) (hY : AEMeasurable Y μ) (hf : MeasureTheory.AEStronglyMeasurable f (MeasureTheory.Measure.map X μ)) (hg : MeasureTheory.AEStronglyMeasurable g (MeasureTheory.Measure.map Y μ)) :
(ω : Ω), f (X ω) g (Y ω) μ = ( (ω : Ω), f (X ω) μ) (ω : Ω), g (Y ω) μ
theorem ProbabilityTheory.IndepFun.integral_fun_comp_mul_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {𝓧 : Type u_3} {𝓨 : Type u_4} [MeasurableSpace 𝓧] [MeasurableSpace 𝓨] {X : Ω𝓧} {Y : Ω𝓨} {f : 𝓧𝕜} {g : 𝓨𝕜} (hXY : IndepFun X Y μ) (hX : AEMeasurable X μ) (hY : AEMeasurable Y μ) (hf : MeasureTheory.AEStronglyMeasurable f (MeasureTheory.Measure.map X μ)) (hg : MeasureTheory.AEStronglyMeasurable g (MeasureTheory.Measure.map Y μ)) :
(ω : Ω), f (X ω) * g (Y ω) μ = ( (ω : Ω), f (X ω) μ) * (ω : Ω), g (Y ω) μ
theorem ProbabilityTheory.IndepFun.integral_comp_smul_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {𝓧 : Type u_3} {𝓨 : Type u_4} {E : Type u_5} [MeasurableSpace 𝓧] [MeasurableSpace 𝓨] [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] {X : Ω𝓧} {Y : Ω𝓨} {f : 𝓧𝕜} {g : 𝓨E} (hXY : IndepFun X Y μ) (hX : AEMeasurable X μ) (hY : AEMeasurable Y μ) (hf : MeasureTheory.AEStronglyMeasurable f (MeasureTheory.Measure.map X μ)) (hg : MeasureTheory.AEStronglyMeasurable g (MeasureTheory.Measure.map Y μ)) :
(x : Ω), (f X g Y) x μ = ( (x : Ω), (f X) x μ) (x : Ω), (g Y) x μ
theorem ProbabilityTheory.IndepFun.integral_comp_mul_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {𝓧 : Type u_3} {𝓨 : Type u_4} [MeasurableSpace 𝓧] [MeasurableSpace 𝓨] {X : Ω𝓧} {Y : Ω𝓨} {f : 𝓧𝕜} {g : 𝓨𝕜} (hXY : IndepFun X Y μ) (hX : AEMeasurable X μ) (hY : AEMeasurable Y μ) (hf : MeasureTheory.AEStronglyMeasurable f (MeasureTheory.Measure.map X μ)) (hg : MeasureTheory.AEStronglyMeasurable g (MeasureTheory.Measure.map Y μ)) :
(x : Ω), (f X * g Y) x μ = ( (x : Ω), (f X) x μ) * (x : Ω), (g Y) x μ
theorem ProbabilityTheory.IndepFun.integral_smul_eq_smul_integral {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] [MeasurableSpace E] [BorelSpace E] {X : Ω𝕜} {Y : ΩE} (hXY : IndepFun X Y μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) :
(x : Ω), (X Y) x μ = ( (x : Ω), X x μ) (x : Ω), Y x μ
theorem ProbabilityTheory.IndepFun.integral_mul_eq_mul_integral {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω𝕜} (hXY : IndepFun X Y μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) :
(x : Ω), (X * Y) x μ = ( (x : Ω), X x μ) * (x : Ω), Y x μ
theorem ProbabilityTheory.IndepFun.integral_fun_smul_eq_smul_integral {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {E : Type u_5} [NormedAddCommGroup E] [NormedSpace E] [NormedSpace 𝕜 E] [MeasurableSpace E] [BorelSpace E] {X : Ω𝕜} {Y : ΩE} (hXY : IndepFun X Y μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) :
(ω : Ω), X ω Y ω μ = ( (ω : Ω), X ω μ) (ω : Ω), Y ω μ
theorem ProbabilityTheory.IndepFun.integral_fun_mul_eq_mul_integral {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {X Y : Ω𝕜} (hXY : IndepFun X Y μ) (hX : MeasureTheory.AEStronglyMeasurable X μ) (hY : MeasureTheory.AEStronglyMeasurable Y μ) :
(ω : Ω), X ω * Y ω μ = ( (x : Ω), X x μ) * (x : Ω), Y x μ
theorem ProbabilityTheory.indepFun_iff_integral_comp_mul {Ω : Type u_1} { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsFiniteMeasure μ] {β : Type u_3} {β' : Type u_4} { : MeasurableSpace β} {mβ' : MeasurableSpace β'} {f : Ωβ} {g : Ωβ'} {hfm : Measurable f} {hgm : Measurable g} :
IndepFun f g μ ∀ {φ : β} {ψ : β'}, Measurable φMeasurable ψMeasureTheory.Integrable (φ f) μMeasureTheory.Integrable (ψ g) μMeasureTheory.integral μ (φ f * ψ g) = MeasureTheory.integral μ (φ f) * MeasureTheory.integral μ (ψ g)

Independence of functions f and g into arbitrary types is characterized by the relation E[(φ ∘ f) * (ψ ∘ g)] = E[φ ∘ f] * E[ψ ∘ g] for all measurable φ and ψ with values in satisfying appropriate integrability conditions.

theorem ProbabilityTheory.iIndepFun.integral_fun_prod_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_3} [Fintype ι] {𝓧 : ιType u_4} {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω𝓧 i} {f : (i : ι) → 𝓧 i𝕜} (hX : iIndepFun X μ) (mX : ∀ (i : ι), AEMeasurable (X i) μ) (hf : ∀ (i : ι), MeasureTheory.AEStronglyMeasurable (f i) (MeasureTheory.Measure.map (X i) μ)) :
(ω : Ω), i : ι, f i (X i ω) μ = i : ι, (ω : Ω), f i (X i ω) μ
theorem ProbabilityTheory.iIndepFun.integral_prod_comp {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_3} [Fintype ι] {𝓧 : ιType u_4} {m𝓧 : (i : ι) → MeasurableSpace (𝓧 i)} {X : (i : ι) → Ω𝓧 i} {f : (i : ι) → 𝓧 i𝕜} (hX : iIndepFun X μ) (mX : ∀ (i : ι), AEMeasurable (X i) μ) (hf : ∀ (i : ι), MeasureTheory.AEStronglyMeasurable (f i) (MeasureTheory.Measure.map (X i) μ)) :
(x : Ω), (∏ i : ι, f i X i) x μ = i : ι, (x : Ω), (f i X i) x μ
theorem ProbabilityTheory.iIndepFun.integral_prod_eq_prod_integral {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_3} [Fintype ι] {X : ιΩ𝕜} (hX : iIndepFun X μ) (mX : ∀ (i : ι), MeasureTheory.AEStronglyMeasurable (X i) μ) :
(x : Ω), (∏ i : ι, X i) x μ = i : ι, (x : Ω), X i x μ
theorem ProbabilityTheory.iIndepFun.integral_fun_prod_eq_prod_integral {Ω : Type u_1} {𝕜 : Type u_2} [RCLike 𝕜] { : MeasurableSpace Ω} {μ : MeasureTheory.Measure Ω} {ι : Type u_3} [Fintype ι] {X : ιΩ𝕜} (hX : iIndepFun X μ) (mX : ∀ (i : ι), MeasureTheory.AEStronglyMeasurable (X i) μ) :
(ω : Ω), i : ι, X i ω μ = i : ι, (x : Ω), X i x μ