# T9. R63. P2: Describe the challenges associated with VaR measurement as portfolio size increases.

#### mkaabb96

##### New Member
@David Harper CFA FRM Hey David. I am having difficultly in understanding the formula for calculating the Covariance of Assets with the Portfolio i.e. Cov(i,p). As per your example in the study notes, you have shown the formula for COV(euro, portfolio) which is confusing. What if the correlation is not 0 but any number between 0 and 1? how will we calculate the covariance in that scenario?

This concept is really important as we use covariance to calculate the beta of asset as well.

#### David Harper CFA FRM

##### David Harper CFA FRM
Staff member
Subscriber
Hi @mkaabb96 This is elsewhere many times discussed but quicker for me to just re-explain it. Cov(i,P) is just applying basic covariance properties (see https://en.wikipedia.org/wiki/Covariance) where w_eur = weight of EUR in the portfolio and the portfolio is weighted between the two such that P = w_eur*eur + w_cad*cad. So:

Cov(eur,P) = Cov(eur, w_eur * eur + w_cad *cad ); i.e., the covar between eur and the portfolio that contains some weight (w_eur) of eur
Cov(eur,P) = w_eur*Cov(eur, eur ) + w_cad*Cov(eur, cad); and since Cov(eur, eur) = variance(eur) we have: