đ
Py 79 Diversifiable and Non Diversifiable Risk - YouTube
Channel: unknown
[0]
Ok, people!
[2]
With this lesson, weâll complete the section
in which we studied the calculation of financial
[6]
risk.
[8]
Our task here is to disaggregate a portfolioâs
diversifiable and non-diversifiable risk.
[14]
The portfolio weâll use is a simple one
containing only two securities, but the exact
[20]
same mechanics can be applied when working
with a larger portfolio.
[24]
To start, we will need the weights of the
two assets.
[28]
Given this is an equally weighted portfolio
of the two stocks, we will need a NumPy array
[34]
containing twice the value of 0.5.
[38]
We already created one and called it âweightsâ.
[42]
The values of this array can be accessed after
we index the zero and the first position in
[48]
brackets.
[51]
Ok, the portfolio weights are ready.
[58]
One way to estimate the annual diversifiable
risk is to obtain the portfolio variance,
[63]
and then subtract the weighted annual variance
of each stock.
[67]
This occasion will allow us to emphasize the
difference between creating an âNDâ array
[74]
with single or double brackets.
[76]
We explained in one of our earlier videos
that practically each pair of brackets around
[81]
the name of the column will add one dimension
to the NumPy array.
[87]
For the sake of argument, letâs use this
structure to create the annual variance of
[92]
each company.
[93]
What record the values of the variances of
P&G and Beiersdorf not as floats, but as single
[100]
elements in 1 by 1 matrices â that is, two-dimensional
arrays.
[105]
For this reason, we should expect a wrong
output when we calculate the unsystematic
[111]
or also known as diversifiable risk.
[115]
The formula we have typed is correct.
[120]
Well, we donât see an error, but the answer
is strange anyway, right?
[123]
Instead of a float, we obtain a vector with
no numbers.
[129]
This little exercise was to remind you to
be careful when creating NumPy objects.
[135]
Letâs see two techniques that could help
you overcome this issue.
[140]
Since the variance of Procter & Gamble is
stored in a 1 by 1 matrix, it will be a single
[146]
value.
[147]
If you apply the well-known float function,
you will turn this value into a float.
[153]
Nice!
[155]
Alternatively, when you assign a value to
âPG, var, Aâ, you can use single brackets
[162]
when you indicate you will use data from the
P.G. column.
[166]
This will automatically store the output as
a float value.
[169]
The âdata type float 64â line will disappear,
and you will see more digits after the decimal
[176]
point.
[177]
Great!
[179]
To be consistent, letâs apply the second
method to the annual variance of Beiersdorf
[189]
as well.
[190]
âBEI, var, Aâ will be a floating point.
[196]
Good!
[199]
Can we try to re-estimate the diversifiable,
or also known as unsystematic, risk?
[204]
Yes, we can.
[209]
And we obtain a float whose transformation
shows it is something smaller than a percent.
[215]
Great!
[216]
The remaining part of the portfolio variance
is the systematic risk.
[225]
As you can see, regardless of whether we subtract
the unsystematic risk from the whole variance,
[233]
or we sum the weighted annual variances, we
obtain the same value.
[241]
The check we make in the last cell further
confirms our results â we obtain the boolean
[249]
value âTrueâ in the output as we verify
the equality between the two variables, âSR
[255]
1â, and âSR 2â.
[257]
Ok.
[258]
Great!
[259]
We are doing well!
[260]
In the next chapter, we will start a new topic
â regression analysis.
[264]
See you there!
[265]
And⊠thanks for watching!
You can go back to the homepage right here: Homepage





