The pre-existing Choice/Portfolio/BlackLitterman.lean derives the 1-D Bayesian update for a single asset with a single direct view. This file extends to the N-asset / m-view matrix formulation, the standard form used in production.
Setup
π : Fin n → ℝ — prior mean of expected returns.Sg_inv : Matrix (Fin n) (Fin n) ℝ — prior precision (inverse covariance).Q : Fin m → ℝ — view vector (target values).P : Matrix (Fin m) (Fin n) ℝ — view-selection matrix (which linear combinations of μ the views talk about).Om_inv : Matrix (Fin m) (Fin m) ℝ — view precision (inverse covariance of view noise).
Posterior identities
In the Gaussian prior/view model, the Bayesian-conjugate update gives
posterior_precision = Sg_inv + Pᵀ · Om_inv · P, (additive precision) posterior_precision · μ_post = Sg_inv · π + Pᵀ · Om_inv · Q. (normal equation)
The Gaussian conditioning behind these identities is not formalized: this file takes the normal equation as the definition of the posterior mean (IsBLPosteriorMean). When posterior precision is invertible, the posterior mean has the explicit form
μ_post = (posterior_precision)⁻¹ · (Sg_inv · π + Pᵀ · Om_inv · Q).
This file proves: (a) the explicit form satisfies the normal equation, (b) the solution to the normal equation is unique (when precision is invertible), and (c) for positive semidefinite precisions, every solution of the normal equation minimises the mixed-estimation loss of Theil and Goldberger,
½ (μ − π)ᵀ Sg_inv (μ − π) + ½ (Pμ − Q)ᵀ Om_inv (Pμ − Q),
the generalized-least-squares fit of μ to the prior and the views together — by the KKT sufficiency theorem of Choice/Portfolio/ConvexQPKKT.lean with no constraints.
Characterisations
The 1-D BlackLitterman.lean stated the posterior as a closed form and verified three equivalent forms (symmetric, precision-weighted, harmonic- variance). This file characterises the N-dim posterior as the unique solution of a linear system — the natural way to characterise it without ad-hoc inverses, and the way it is used in practice (LU/Cholesky solve rather than explicit inversion) — and as a minimiser of the mixed-estimation loss.
Connection to the 1-D module
At n = 1, m = 1, P = (1), Sg_inv = (1/s0sq), Om_inv = (1/s1sq) the normal equation below reduces to the scalar Bayesian update behind posteriorMean1d (Choice/Portfolio/BlackLitterman.lean); isBLPosteriorMean_one_dim makes this precise (the scalar posteriorMean1d is the BL posterior mean at n = 1), and the matrix form here is its N-asset generalisation.
Main definitions
blPosteriorPrecision: the posterior precision Sg_inv + Pᵀ·Om_inv·P.blPrecisionWeightedMean: the right-hand side Sg_inv·π + Pᵀ·Om_inv·Q of the normal equation.IsBLPosteriorMean: μ_post solves the Black-Litterman normal equation.blPosteriorMean: the explicit solution, the inverse of the posterior precision applied to the precision-weighted mean (when the posterior precision is invertible).blLoss: the Theil-Goldberger mixed-estimation loss, half the prior-precision-weighted squared distance from π plus half the view-precision-weighted squared distance of P·μ from Q.
Main results
blPosteriorMean_satisfies_normal_eq: when the posterior precision is invertible, the explicit form blPosteriorMean satisfies the normal equation IsBLPosteriorMean.IsBLPosteriorMean.unique: solution to the normal equation is unique (when posterior precision is invertible); dot-notation h.unique.blLoss_eq_qpObj: for symmetric Sg_inv and Om_inv, the mixed-estimation loss blLoss is the convex QP objective qpObj with Hessian the posterior precision, up to a constant.IsBLPosteriorMean.blLoss_le: a solution of the normal equation minimises blLoss when Sg_inv and Om_inv are positive semidefinite.
References
Tags
Black-Litterman model, posterior precision, mixed estimation, Theil-Goldberger, normal equation, investor views, generalized least squares, MSC 91G10, MSC 62F10, JEL G11