Last answered:

07 Oct 2021

Posted on:

16 Sept 2021

0

Why do you have to square the weights?

dr = pfolio_var - (weights[0] ** 2 * PG_var_a) - (weights[1] ** 2 * BEI_var_a)

Why do you have to square the weights?

3 answers ( 0 marked as helpful)
Instructor
Posted on:

19 Sept 2021

0

Hi Marcus!

Thanks for reaching out!

Because what we actually need to do is take the square of the standard deviation times the respective weight value. Since we are using the value of the variance directly (which equals standard deviation squared), what is left for us to do is take the square of the weights as well.

Hope this helps.

Best,
Martin

Posted on:

20 Sept 2021

0

"take the square of the standard deviation times the respective weight value"

Doesn't this just mean take the variance times the respective weight?

Instructor
Posted on:

07 Oct 2021

0

Hi Marcus!
Thanks for reaching out.
Yes - by 'the respective weight' I mean the square value of each weight.
Hope this helps.
Best,
Martin

Submit an answer