I am having trouble understanding an equation in a note I saw. The note has a covariance matrix and it uses this matrix to derive betas.
I have a covar matrix:
a b c
a 1 2 3
b 2 3 5
c 3 5 6
And lets hypothetically assume the variances are 1,3,6 for a,b,c respectively. Now standard beta of two variables is beta(r,m) = cov(r,m)/var(m). So in the above, the beta(a,b) = 2 / 3.
My question is how do you calculate beta(a,a-b)?
From my notes, it says that the beta is calculated as beta(a,a-b) = [ Cov(a,a) - Cov(a,b) ] / Var(a-b)
Is the above correct? If so is there a proof or a website for more information on this? I'm a noob in statistics.
thanks
$$\beta(a, a-b) = \dfrac{\sigma_{aa}-\sigma_{ab}}{\sqrt{\sigma_{aa}(\sigma_{aa}+\sigma_{bb}-2\sigma_{ab})}}$$ where $\sigma$ refers to the covariances.