If Xi,...,Xn are pairwise independent, then Var(i=1∑nXi)=i=1∑nVar(Xi)
Covariance matrix:
Symmetric Matrix and PSD with each entry Σij is the variance/covariance of i and j
Given m points x(1),...,x(m) in Rn, we define the sample covariance matrix to be the n×n symmetric matrix C≐m1∑i=1m(x(i)−x^)(x(i)−x^)⊺ where:
x^∈Rn is the sample average of the points
Arises when computing the sample variance of the scalar products si≐w⊺x(i),i=1,...,m
where w∈Rn is a given vector: denoting by s^ the average of the values s1,...,sm
we have σ2=m1i=1∑m(w⊺x(i)−s^)2=m1i=1∑m(w⊺(x(i)−x^))2=w⊺Cw
Applications:
Portfolio variance:
For n financial assets, we can define a vector r∈Rn whose components rk are the rate of returns of the k-th asset, k=1,…,n.
Assume now that we have observed m samples of historical returns r(t),t=1,…,m. The sample average over that history of return is r^=(1/m)(r(1)+…+r(m)), and the sample covariance matrix has (i,j) component given by:
Cij=m1∑t=1m(ri(t)−r^i)(rj(t)−r^j),1≤i,j≤n.
If w∈Rn represents a portfolio “mix,” that is wk≥0 is the fraction of the total wealth invested in asset k, then the return of such a portfolio is given by ρ=rTw.
The sample average of the portfolio return is r^Tw, while the sample variance is given by wTCw
The Hessian of a twice differentiable function f:Rn→R at a point x∈domf is the matrix containing the second derivatives of the function at that point. That is, the Hessian is the matrix with elements given by
Hij=∂xi∂xj∂2f(x),1≤i,j≤n
The Hessian of f at x is often denoted as ∇2f(x).
Since the second-derivative is independent of the order in which derivatives are taken, it follows that Hij=Hjj for every pair (i,j), thus the Hessian is always a symmetric matrix.