Let (Ω,F,P) be a probability space, let p≥1 be a natural number, and let H be a sub-σ-algebra of F. Let ζ=(ζ1,…,ζp) and ρ=(ρ1,…,ρp) be tuples of square-integrable random variables such that:
(i) each ζi is almost surely equal to an H-measurable random variable;
(ii) E[ρi]=0 for every i, with the expectation;
(iii) the σ-algebras σ(ρ1,…,ρp) and H are independent.
Let M be a real p×p matrix, and let dot products and matrix actions be the dot product and matrix-vector product applied componentwise to tuples. Then all three expectations below are defined and finite, and with Cρ:=(Cov(ρi,ρj))1≤i,j≤p (covariance) and the trace:
E[(ζ+ρ)⋅(M(ζ+ρ))]=E[ζ⋅(Mζ)]+E[ρ⋅(Mρ)],E[ρ⋅(Mρ)]=tr(M⊤Cρ)=tr(MCρ),
where ζ+ρ is the componentwise sum.