Hoeffding's covariance identity
For square-integrable random variables X, Y on a probability space, the covariance is the integral over the plane of the gap between the joint CDF and the product of the marginal CDFs:
cov(X, Y) = ∫∫ (P(X ≤ s, Y ≤ t) − P(X ≤ s) P(Y ≤ t)) ds dt
(covariance_eq_integral_cdf; Hoeffding 1940, Höffding's lemma in McNeil–Frey–Embrechts (2015), Chapter 7).
The proof writes each real number as the integral of its signed layer, a = ∫ (𝟙{s < a} − 𝟙{s < 0}) ds, so that X Y, E[X] and E[Y] become integrals over the plane of indicator expressions. Fubini swaps the expectation inside, and at each point (s, t) the constants 𝟙{s < 0}, 𝟙{t < 0} cancel from the covariance of the indicators 𝟙{X > s} and 𝟙{Y > t}. That covariance equals P(X ≤ s, Y ≤ t) − P(X ≤ s) P(Y ≤ t) by inclusion–exclusion. The identity is stated for the law of (X, Y) on ℝ² (covariance_fst_snd_eq_integral) and transported to random variables through their joint law.
Consequences
- Covariance is monotone in the joint CDF (
covariance_le_covariance_of_cdf_le; QRM Exercise Book Ex. 7.14). Two pairs with the same marginal laws whose joint CDFs are pointwise ordered have ordered covariances, and so ordered correlations. The marginals fix the subtracted term and the variances, and the joint CDF enters linearly. Combined with the Fréchet–Hoeffding bounds on joint CDFs (proved for copulas in Probability/Dependence/Copula.lean), this is the mechanism by which comonotone (resp. countermonotone) dependence attains the largest (resp. smallest) correlation for given marginals (MFE (2015) Theorem 7.28). - Default-correlation bounds (
le_covariance_indicator_one, covariance_indicator_one_le; Ex. 11.7). For default indicators of events with probabilities p₁, p₂, the covariance lies between max(p₁ + p₂ − 1, 0) − p₁p₂ and min(p₁, p₂) − p₁p₂: these are the Fréchet bounds on P(A ∩ B). The bounds are attained by nested events and by events whose union is certain. The correlation bounds follow by dividing by √(p₁(1 − p₁)p₂(1 − p₂)).
Main results
covariance_indicator_one: cov(𝟙_A, 𝟙_B) = P(A ∩ B) − P(A) P(B).integral_bivariateNormalCDF_sub_mul: at the standard bivariate normal law with correlation r ∈ [−1, 1], ∫∫ (N₂(s, t; r) − Φ(s) Φ(t)) ds dt = r.covariance_fst_snd_eq_integral: Hoeffding's identity for a law on ℝ².covariance_eq_integral_cdf: Hoeffding's identity for random variables.covariance_eq_integral_copulaOf: Hoeffding's identity in copula form, cov(X, Y) = ∫∫ (C(F_X(s), F_Y(t)) − F_X(s) F_Y(t)) ds dt for the copula C of (X, Y) (continuous margins), together with IsCopula C (Sklar's theorem).integrable_cdf_sub_mul: the Hoeffding integrand is integrable on ℝ².covariance_le_covariance_of_cdf_le, correlation_le_correlation_of_cdf_le: ordering.variance_indicator_one, covariance_indicator_one_le, le_covariance_indicator_one, covariance_indicator_one_of_subset, covariance_indicator_one_of_union_eq_univ, correlation_indicator_one_le, le_correlation_indicator_one: default-correlation bounds.
References
Tags
Hoeffding covariance identity, Fréchet–Hoeffding bounds, joint distribution function, comonotonicity, default correlation, correlation bounds, dependence, MSC 62H05, MSC 60E15, JEL G32
Import neighbourhood
Above: what it imports. Below: what imports it.
Corpus entries
qrm-hoeffding-covariance · quantitative_risk_management.json · full statement
Hoeffding's Covariance Identity
For square-integrable X, Y: cov(X, Y) = ∫∫ (P(X ≤ s, Y ≤ t) − P(X ≤ s)P(Y ≤ t)) ds dt.
qrm-covariance-ordering · quantitative_risk_management.json · full statement
Concordance Ordering Orders Covariances
For two square-integrable pairs with the same marginal laws whose joint distribution functions are pointwise ordered, their covariances are ordered the same way.
qrm-default-correlation-bound · quantitative_risk_management.json · full statement
Upper Bound on Default Covariance
For events A, B: cov(1_A, 1_B) ≤ min(P(A), P(B)) − P(A)P(B) (the comonotone Fréchet bound for default indicators).
mf-hoeffding-bivariate-normal · stochastic_foundations.json · full statement
Hoeffding's Covariance Identity at the Bivariate Normal
For r ∈ [−1, 1], the standard bivariate normal CDF N₂(s, t; r) satisfies ∫∫ (N₂(s, t; r) − Φ(s)Φ(t)) ds dt = r.
Declarations 23
theoremMathFin.memLp_indicator_onesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A : Set α}, MeasurableSet A → MemLp (A.indicator 1) 2 μAn indicator is square integrable.
theoremMathFin.covariance_indicator_onesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → covariance (A.indicator 1) (B.indicator 1) μ = μ.real (A ∩ B) - μ.real A * μ.real BCovariance of two indicators: cov(𝟙_A, 𝟙_B) = P(A ∩ B) − P(A) P(B).
theoremMathFin.integral_indicator_sub_mul_subsource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → ∀ (c d : ℝ), ∫ (x : α), (A.indicator 1 x - c) * (B.indicator 1 x - d) ∂μ - (∫ (x : α), A.indicator 1 x - c ∂μ) * ∫ (x : α), B.indicator 1 x - d ∂μ = μ.real (A ∩ B) - μ.real A * μ.real BShifting indicators by constants does not change their covariance: E[(𝟙_A − c)(𝟙_B − d)] − E[𝟙_A − c] E[𝟙_B − d] = P(A ∩ B) − P(A) P(B).
theoremMathFin.variance_indicator_onesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A : Set α}, MeasurableSet A → variance (A.indicator 1) μ = μ.real A * (1 - μ.real A)Variance of an indicator: Var(𝟙_A) = P(A) (1 − P(A)).
theoremMathFin.measureReal_inter_sub_mul_complsource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → μ.real (Aᶜ ∩ Bᶜ) - μ.real Aᶜ * μ.real Bᶜ = μ.real (A ∩ B) - μ.real A * μ.real BInclusion–exclusion leaves P(A ∩ B) − P(A) P(B) unchanged under complementing both events.
theoremMathFin.covariance_indicator_one_lesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → covariance (A.indicator 1) (B.indicator 1) μ ≤ min (μ.real A) (μ.real B) - μ.real A * μ.real BUpper Fréchet bound for default covariance: cov(𝟙_A, 𝟙_B) ≤ min(P(A), P(B)) − P(A) P(B).
theoremMathFin.le_covariance_indicator_onesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → max (μ.real A + μ.real B - 1) 0 - μ.real A * μ.real B ≤ covariance (A.indicator 1) (B.indicator 1) μLower Fréchet bound for default covariance: max(P(A) + P(B) − 1, 0) − P(A) P(B) ≤ cov(𝟙_A, 𝟙_B).
theoremMathFin.covariance_indicator_one_of_subsetsource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → A ⊆ B → covariance (A.indicator 1) (B.indicator 1) μ = min (μ.real A) (μ.real B) - μ.real A * μ.real BThe upper bound is attained by nested events: if A ⊆ B then cov(𝟙_A, 𝟙_B) = min(P(A), P(B)) − P(A) P(B).
theoremMathFin.covariance_indicator_one_of_union_eq_univsource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → A ∪ B = Set.univ → covariance (A.indicator 1) (B.indicator 1) μ = max (μ.real A + μ.real B - 1) 0 - μ.real A * μ.real BThe lower bound is attained when the union is certain: if A ∪ B = univ then cov(𝟙_A, 𝟙_B) = max(P(A) + P(B) − 1, 0) − P(A) P(B).
theoremMathFin.correlation_indicator_one_lesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → covariance (A.indicator 1) (B.indicator 1) μ / √(variance (A.indicator 1) μ * variance (B.indicator 1) μ) ≤ (min (μ.real A) (μ.real B) - μ.real A * μ.real B) / √(μ.real A * (1 - μ.real A) * (μ.real B * (1 - μ.real B)))Upper bound on default correlation (QRM Exercise Book Ex. 11.7): ρ(𝟙_A, 𝟙_B) ≤ (min(p₁, p₂) − p₁p₂) / √(p₁(1 − p₁)p₂(1 − p₂)).
theoremMathFin.le_correlation_indicator_onesource ∀ {α : Type u_1} {mα : MeasurableSpace α} {μ : Measure α} [IsProbabilityMeasure μ] {A B : Set α}, MeasurableSet A → MeasurableSet B → (max (μ.real A + μ.real B - 1) 0 - μ.real A * μ.real B) / √(μ.real A * (1 - μ.real A) * (μ.real B * (1 - μ.real B))) ≤ covariance (A.indicator 1) (B.indicator 1) μ / √(variance (A.indicator 1) μ * variance (B.indicator 1) μ)Lower bound on default correlation (QRM Exercise Book Ex. 11.7): (max(p₁ + p₂ − 1, 0) − p₁p₂) / √(p₁(1 − p₁)p₂(1 − p₂)) ≤ ρ(𝟙_A, 𝟙_B).
theoremMathFin.integrable_indicator_Icosource ∀ (a b : ℝ), Integrable ((Set.Ico a b).indicator 1) volume
The indicator of a bounded interval [a, b) is integrable.
theoremMathFin.covariance_fst_snd_eq_integralsource ∀ {μ : Measure (ℝ × ℝ)} [IsProbabilityMeasure μ], MemLp Prod.fst 2 μ → MemLp Prod.snd 2 μ → covariance Prod.fst Prod.snd μ = ∫ (p : ℝ × ℝ), μ.real (Set.Iic p) - μ.real (Prod.fst ⁻¹' Set.Iic p.1) * μ.real (Prod.snd ⁻¹' Set.Iic p.2)Hoeffding's covariance identity for a law on ℝ²: if the coordinates are square integrable under μ, then cov_μ(x₁, x₂) = ∫ (F(p) − F₁(p₁) F₂(p₂)) dp, with F the joint CDF and F₁, F₂ the marginal CDFs. The integrand is integrable (integrable_cdf_sub_mul_fst_snd).
theoremMathFin.integrable_cdf_sub_mul_fst_sndsource ∀ {μ : Measure (ℝ × ℝ)} [IsProbabilityMeasure μ], MemLp Prod.fst 2 μ → MemLp Prod.snd 2 μ → Integrable (fun p => μ.real (Set.Iic p) - μ.real (Prod.fst ⁻¹' Set.Iic p.1) * μ.real (Prod.snd ⁻¹' Set.Iic p.2)) volumeThe Hoeffding integrand of a law on ℝ² with square-integrable coordinates is integrable.
theoremMathFin.memLp_fst_snd_mapsource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X Y : Ω → ℝ}, MemLp X 2 P → MemLp Y 2 P → MemLp Prod.fst 2 (Measure.map (fun ω => (X ω, Y ω)) P) ∧ MemLp Prod.snd 2 (Measure.map (fun ω => (X ω, Y ω)) P)Square integrability of X and Y transfers to the coordinates of their joint law.
theoremMathFin.cdf_sub_mul_mapsource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} {X Y : Ω → ℝ}, AEMeasurable X P → AEMeasurable Y P → ∀ (p : ℝ × ℝ), (Measure.map (fun ω => (X ω, Y ω)) P).real (Set.Iic p) - (Measure.map (fun ω => (X ω, Y ω)) P).real (Prod.fst ⁻¹' Set.Iic p.1) * (Measure.map (fun ω => (X ω, Y ω)) P).real (Prod.snd ⁻¹' Set.Iic p.2) = P.real {ω | X ω ≤ p.1 ∧ Y ω ≤ p.2} - P.real {ω | X ω ≤ p.1} * P.real {ω | Y ω ≤ p.2}The Hoeffding integrand of the joint law of (X, Y), written in terms of X and Y.
theoremMathFin.covariance_eq_integral_cdfsource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X Y : Ω → ℝ}, MemLp X 2 P → MemLp Y 2 P → covariance X Y P = ∫ (p : ℝ × ℝ), P.real {ω | X ω ≤ p.1 ∧ Y ω ≤ p.2} - P.real {ω | X ω ≤ p.1} * P.real {ω | Y ω ≤ p.2}Hoeffding's covariance identity (Hoeffding 1940; Höffding's lemma in McNeil–Frey–Embrechts (2015), Chapter 7): for square-integrable X, Y, cov(X, Y) = ∫∫ (P(X ≤ s, Y ≤ t) − P(X ≤ s) P(Y ≤ t)) ds dt.
theoremMathFin.integrable_cdf_sub_mulsource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X Y : Ω → ℝ}, MemLp X 2 P → MemLp Y 2 P → Integrable (fun p => P.real {ω | X ω ≤ p.1 ∧ Y ω ≤ p.2} - P.real {ω | X ω ≤ p.1} * P.real {ω | Y ω ≤ p.2}) volumeThe Hoeffding integrand of square-integrable X, Y is integrable on ℝ².
theoremMathFin.covariance_le_covariance_of_cdf_lesource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X Y : Ω → ℝ} {Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'} {P' : Measure Ω'} [IsProbabilityMeasure P'] {X' Y' : Ω' → ℝ}, MemLp X 2 P → MemLp Y 2 P → MemLp X' 2 P' → MemLp Y' 2 P' → Measure.map X P = Measure.map X' P' → Measure.map Y P = Measure.map Y' P' → (∀ (s t : ℝ), P.real {ω | X ω ≤ s ∧ Y ω ≤ t} ≤ P'.real {ω | X' ω ≤ s ∧ Y' ω ≤ t}) → covariance X Y P ≤ covariance X' Y' P'Covariance is monotone in the joint CDF (QRM Exercise Book Ex. 7.14): if (X, Y) and (X', Y') have the same marginal laws and P(X ≤ s, Y ≤ t) ≤ P'(X' ≤ s, Y' ≤ t) for all s, t, then cov(X, Y) ≤ cov(X', Y').
theoremMathFin.correlation_le_correlation_of_cdf_lesource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X Y : Ω → ℝ} {Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'} {P' : Measure Ω'} [IsProbabilityMeasure P'] {X' Y' : Ω' → ℝ}, MemLp X 2 P → MemLp Y 2 P → MemLp X' 2 P' → MemLp Y' 2 P' → Measure.map X P = Measure.map X' P' → Measure.map Y P = Measure.map Y' P' → (∀ (s t : ℝ), P.real {ω | X ω ≤ s ∧ Y ω ≤ t} ≤ P'.real {ω | X' ω ≤ s ∧ Y' ω ≤ t}) → covariance X Y P / √(variance X P * variance Y P) ≤ covariance X' Y' P' / √(variance X' P' * variance Y' P')Correlation is monotone in the joint CDF: under the hypotheses of covariance_le_covariance_of_cdf_le, the correlations are ordered too, because equal marginal laws have equal variances.
theoremMathFin.integral_bivariateNormalCDF_sub_mulsource ∀ {r : ℝ}, r ^ 2 ≤ 1 → ∫ (p : ℝ × ℝ), bivariateNormalCDF p.1 p.2 r - Phi p.1 * Phi p.2 = rHoeffding's identity at the standard bivariate normal law: for r ∈ [−1, 1], ∫∫ (N₂(s, t; r) − Φ(s) Φ(t)) ds dt = r. The covariance of the Cholesky pair is r (covariance_fst_snd_bivariateNormalLaw), its joint CDF is N₂(·, ·; r) and its margins are standard normal.
theoremMathFin.cdf_map_eq_measureReal_lesource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X : Ω → ℝ}, AEMeasurable X P → ∀ (s : ℝ), ↑(cdf (Measure.map X P)) s = P.real {ω | X ω ≤ s}The distribution function of X at s is P(X ≤ s).
theoremMathFin.covariance_eq_integral_copulaOfsource ∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {P : Measure Ω} [IsProbabilityMeasure P] {X Y : Ω → ℝ}, MemLp X 2 P → MemLp Y 2 P → Continuous ↑(cdf (Measure.map X P)) → Continuous ↑(cdf (Measure.map Y P)) → IsCopula (copulaOf (fun ω => ![X ω, Y ω]) P) ∧ covariance X Y P = ∫ (p : ℝ × ℝ), (copulaOf (fun ω => ![X ω, Y ω]) P).real (Set.Iic ![↑(cdf (Measure.map X P)) p.1, ↑(cdf (Measure.map Y P)) p.2]) - ↑(cdf (Measure.map X P)) p.1 * ↑(cdf (Measure.map Y P)) p.2Hoeffding's covariance identity in copula form: for square-integrable X, Y with continuous marginal distribution functions F_X, F_Y, the joint law of (F_X(X), F_Y(Y)) is a copula C (Sklar's theorem), and cov(X, Y) = ∫∫ (C([0, F_X(s)] × [0, F_Y(t)]) − F_X(s) F_Y(t)) ds dt, where C(Iic u) is the copula's distribution function.