MathFin
Map / Choice · Portfolio choice / MathFin.Choice.Portfolio.CovariancePSD

Covariance kernels are positive semidefinite (the self-dot variance identity)

MathFin.Choice.Portfolio.CovariancePSDMSC 91G10MSC 62H05JEL G11 source

MarkowitzNAsset.lean proves portfolioVarN_nonneg_of_psd given a PSD hypothesis on the kernel. This file discharges that hypothesis from first principles for the kernel that finance actually uses: the covariance kernel σ_{ij} = cov(R_i, R_j) of genuine square-integrable random returns.

The whole argument is the self-dot identity: Mathlib's variance_sum' ("the variance of a sum is the double sum of covariances") read backwards, with covariance_smul_left/covariance_smul_right peeling the weights, collapses the Markowitz double sum onto a single variance,

∑_{i,j} w_i w_j · cov(R_i, R_j) = cov(∑ w_i R_i, ∑ w_j R_j) = Var(∑ w_i R_i),

and a variance is non-negative. The quadratic form is non-negative because it IS a variance — that is why covariance matrices are PSD.

Main results

  • portfolioVarN_covariance_eq_variance: the Markowitz quadratic form with the genuine covariance kernel equals the variance of the portfolio return.
  • covariance_kernel_psd: the covariance kernel satisfies the PSD hypothesis of portfolioVarN_nonneg_of_psd — derived, not assumed.
  • portfolioVarN_covariance_nonneg: the capstone non-negativity.

References

Tags

covariance matrix, positive semidefinite, portfolio variance, Markowitz, variance of a sum, quadratic form, MSC 91G10, MSC 62H05, JEL G11

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-markowitz-n-psd · portfolio_and_performance.json · full statement
N-Asset Covariance Kernel PSD: Portfolio Variance Non-Negativity

PSD derived, not assumed: the Markowitz quadratic form at the genuine covariance kernel σ_ij = cov(R_i, R_j) of square-integrable returns equals Var[∑ wᵢ • Rᵢ] ≥ 0 — the self-dot variance identity, via Mathlib's variance_sum' with covariance_smul_left/right peeling the weights — discharging the PSD hypothesis of portfolioVarN_nonneg_of_psd from first principles.

Declarations 3

theoremMathFin.portfolioVarN_covariance_eq_variancesource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsFiniteMeasure μ] {ι : Type u_2} (s : Finset ι) (w : ι → ℝ) (R : ι → Ω → ℝ), (∀ i ∈ s, MemLp (R i) 2 μ) → (portfolioVarN s w fun i j => covariance (R i) (R j) μ) = variance (∑ i ∈ s, w i • R i) μ

Self-dot variance identity: the n-asset Markowitz quadratic form, evaluated at the genuine covariance kernel σ_{ij} = cov(R_i, R_j) of square-integrable random returns, is exactly the variance of the portfolio return ∑ wᵢ Rᵢ:

portfolioVarN s w (cov(R_·, R_·)) = Var[∑ i ∈ s, wᵢ • Rᵢ].

Mathlib's variance_sum' unfolds the portfolio variance into the double sum of covariances; the smul lemmas peel the weights. No PSD assumption appears anywhere.

theoremMathFin.covariance_kernel_psdsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsFiniteMeasure μ] {ι : Type u_2} (s : Finset ι) (R : ι → Ω → ℝ), (∀ i ∈ s, MemLp (R i) 2 μ) → ∀ (v : ι → ℝ), 0 ≤ ∑ i ∈ s, ∑ j ∈ s, v i * v j * covariance (R i) (R j) μ

Covariance kernels are PSD — the hypothesis of portfolioVarN_nonneg_of_psd, discharged from first principles: for any weights v, the quadratic form ∑∑ vᵢ vⱼ cov(Rᵢ, Rⱼ) is the variance of ∑ vᵢ Rᵢ, hence non-negative.

theoremMathFin.portfolioVarN_covariance_nonnegsource
∀ {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} [IsFiniteMeasure μ] {ι : Type u_2} (s : Finset ι) (w : ι → ℝ) (R : ι → Ω → ℝ), (∀ i ∈ s, MemLp (R i) 2 μ) → 0 ≤ portfolioVarN s w fun i j => covariance (R i) (R j) μ

N-asset portfolio variance non-negativity from random returns: with the genuine covariance kernel of square-integrable returns, the Markowitz portfolio variance is non-negative — because it is the variance Var[∑ wᵢ Rᵢ] ≥ 0.