How to calculate the duration and the volatility of a bond - YouTube

Channel: Xun Bian

[0]
hello everyone uh this is uh professor xun bian聽 in this video tutorial I want to show you how聽聽
[6]
to calculate the duration and the volatility of a聽 bond if you have to use the tiba 2 plus financial聽聽
[13]
calculator to run the calculation so before聽 we jump into the calculation the first thing聽聽
[17]
i want to say is that if you have a tiba 2 plus聽 professional you should not be watching this video聽聽
[24]
because there is a much easier way that's going to聽 allow you to handle the calculation automatically聽聽
[30]
but unfortunately if you have to use the tiba聽 2 plus right so you should actually be able to聽聽
[37]
use the method that i will be discussing here聽 to do on the calculation so the question that聽聽
[42]
i want to go over here to demonstrate you聽 how to run the calculations is this one here聽聽
[48]
we ask the question what is the duration and the聽 volatility of a four-year bond with a coupon rate聽聽
[54]
of two percent and a yield to maturity of three聽 percent so before we run the calculation the聽聽
[60]
first thing that i want to do here is to make sure聽 the cash flow is clear to everyone we're talking聽聽
[65]
about four year bond we're assuming the bonds聽 are making annual coupon payment so this is why聽聽
[71]
for the first year you're getting two percent of聽 the face value whatever the face value might be聽聽
[76]
in the second year you're getting another two聽 percent of the face value paid to you as the聽聽
[80]
coupon payment so on and so forth and in the last聽 year this is the time of maturity you're getting聽聽
[86]
paid the last coupon payment of two percent of the聽 face value plus you're also getting paid the face聽聽
[92]
value at the time of maturity this is why at the聽 end at the time of maturity you'll be receiving聽聽
[97]
102 of the face value as you can see here i'm聽 using the percentage of the face value as the聽聽
[105]
unit right so um and also later when you actually聽 use the worksheet that is the basically the unit聽聽
[112]
that i use of course you can also choose to use聽 the you know the dollar number right if you want聽聽
[118]
to use that that's fine which is going to give聽 you the same answer but the advantage of using the聽聽
[122]
percentage of the face value as the unit is you聽 don't actually have to know what the face value is聽聽
[128]
so hopefully the cash flow is clear to everyone so聽 my suggestion to you is if you have to calculate聽聽
[135]
the duration and the volatility right without聽 the automatic function to calculate that i think聽聽
[142]
the best way is to use a worksheet like this in聽 this case you have five columns right to complete聽聽
[148]
the first column here because we're talking about聽 a four year bond i'm simply creating a time index聽聽
[154]
it runs all the way from year one to year four聽 right because we have a four year bond and then聽聽
[162]
what i want to do in the second column here is聽 to list the cash flow you have two percent in聽聽
[167]
the first year two percent in the second year聽 two percent in year three and then last but聽聽
[172]
not least you have 102 paid to you at the聽 end of year four that is consisted of the聽聽
[178]
two percent coupon payment and then also the聽 the the face value returned to you at the end聽聽
[184]
of maturity so no calculation so far just you know聽 trying to summarize all the information and then聽聽
[190]
what we want to do here in column number three is聽 using our financial calculator we will one by one聽聽
[196]
calculate what is the present value of each聽 individual cash flow so for example for this blank聽聽
[203]
box here we're trying to calculate what is the聽 present value of the first two percent coupon that聽聽
[208]
you're getting at the end of the first year so聽 let me bring in my financial calculator here the聽聽
[213]
first thing obviously you want to do is you want聽 to clear the memory of your financial calculator聽聽
[218]
before you jump into any new calculation so聽 what you want to do is you want to do second聽聽
[224]
reset and enter right so that clears up everything聽 and then the other thing that i would also suggest聽聽
[231]
you do is because when you're doing the volatility聽 and you know the the the duration calculation very聽聽
[238]
often you're dealing with very small numbers to聽 have enough precision what you want to do is you聽聽
[244]
want to carry at least four decimal numbers聽 you can actually change uh the setting of聽聽
[249]
your financial calculator to accomplish that so聽 what you do is you can do second and a format聽聽
[255]
right now you see the default value is two聽 which means that the calculator allows you聽聽
[260]
to see only two decimal numbers but we want to see聽 at least a four so what i can do here is i can do聽聽
[266]
four and enter right so immediately you see now聽 you can see four decimal numbers so after that聽聽
[273]
what you want to do you want to do second and quit聽 right so now you can start your calculation like聽聽
[278]
i said for the first the cell here what i want聽 to do is i want to calculate the present value聽聽
[285]
of the first two percent that i receive at the end聽 of the first year this is a very straightforward聽聽
[290]
uh present value calculation for a single lump聽 sum so to calculate that what i want to do is i聽聽
[296]
simply want to put in 1 for n right and i have聽 you know a yield to maturity of 3 i'm going to聽聽
[303]
use that as my discount rate 3 for iy we're trying聽 to calculate the present value but we're receiving聽聽
[311]
you know two percent uh at the end of the first聽 year so two for fv then we can go ahead and聽聽
[317]
calculate the present value so we don't need the聽 negative sign we just put in 1.9417 in this box聽聽
[325]
right here all right so this is basically how聽 uh the entire column is calculated i just did聽聽
[331]
that for the first one let's also you know do that聽 for the second one again we're trying to calculate聽聽
[336]
what is the present value of your second year cash聽 flow again this is two percent of the coupon this聽聽
[342]
is your two percent coupon right so in this case聽 i actually don't have to rerun the calculation聽聽
[348]
right if you compare the first calculation which聽 you just did and the second one right um all you聽聽
[354]
really have to do is to replace your end because聽 again you're getting two percent coupon payment so聽聽
[359]
all you really have to do is to change from one聽 to two so i'm gonna do that i'm gonna use two聽聽
[364]
for n and then go ahead and recalculate my present聽 value so this is how you get your second number so聽聽
[370]
you one by one you fill this um you know column聽 here right by calculating the present value of聽聽
[377]
each individual cash flow so let's do that for聽 year three and year four again for year three聽聽
[383]
you're still getting two percent the eot maturity聽 is still three percent we don't have to change聽聽
[388]
that the only thing that we have to change is we聽 want to use three for my n and then i can go ahead聽聽
[395]
and calculate the present value that's your third聽 number right and then last but not least right聽聽
[400]
here we actually have to make two modifications聽 because you're talking about year four and you're聽聽
[405]
also talking about 102 percent of the face value聽 because at the end you're getting both the coupon聽聽
[412]
payment and also the face value returned聽 to you so in this case i'm going to use聽聽
[416]
four from my end but i'm going to use 102 for聽 my future value then i'm going to go ahead and聽聽
[424]
calculate the present value so this is your last聽 number here all right so hopefully that's clear to聽聽
[430]
everyone and then what you do is you add up those聽 four numbers that you just calculated together聽聽
[436]
that should be pretty straightforward for聽 everyone too i'm not going to show you that聽聽
[440]
but if you add up you know 1.9417 1.8852聽 1.8303 and the last number here you should get
[449]
96.2829 all right and then what do you do after聽 that is for each individual present value that you聽聽
[459]
just calculated you want to take that number聽 and divide that by the total present value聽聽
[464]
so essentially what we're doing here in column聽 number four is we try to calculate what's the聽聽
[469]
percentage of present value you're getting back聽 each year as we all know duration volatility聽聽
[474]
they're trying they're basically measuring how聽 quickly you're getting your money back so for the聽聽
[478]
first one here what i want to do is i want to take聽 1.9417 divide that by the total present value here聽聽
[491]
nine six point two eight two nine right so in the聽 first year um you know roughly speaking you're聽聽
[501]
getting back about two percent of the present聽 value of this particular investment and then what聽聽
[506]
you do is you do the same calculation for all聽 the other years for example for the second one聽聽
[510]
you take 1.8852 divide that by 96.2829 and then聽 here you do the same thing here you do the same聽聽
[519]
thing and that is basically how you get those聽 numbers all right and then at the end if you聽聽
[524]
want to you don't actually have to do this but聽 i think it's a nice verification if you add up聽聽
[528]
the four numbers that you calculated you should聽 get one all right so if you're not getting one聽聽
[534]
and that's indication that you probably made聽 a mistake somewhere but uh you know those are聽聽
[538]
basically just the individual present value聽 as a percentage of the total obviously you're聽聽
[542]
supposed to get one at the end and then the last聽 thing that you do here right we have only one聽聽
[548]
column left what you do is you want to multiply聽 column four by column one so whatever number聽聽
[554]
that you have in column four multiply that聽 by column one so here you're taking point聽聽
[559]
zero two zero 0.0202 multiplied by 1. obviously聽 that's going to give you 0.0202 and here you're聽聽
[568]
taking .0196 multiply that by 2 right we can聽 actually do that using our financial calculator
[575]
.0196 multiply that by two right this is why you聽 have .0392 here then take this one multiply by聽聽
[588]
three take this one multiply by four this聽 is how you get the other two numbers right聽聽
[592]
that's what do i mean by column four times聽 column one and then at the end what do you do聽聽
[598]
is again you add up the four numbers that you聽 calculated and you know sum them up and that's聽聽
[603]
the total this is actually the duration of the聽 bond again like i said if you have the tiba聽聽
[611]
uh two plus professional you don't actually聽 have to go through this uh you know uh聽聽
[615]
process to calculate there is actually a function聽 in there too you know for you to calculate this聽聽
[620]
thing automatically but unfortunately if you have聽 to do this by hand right uh like i just show you聽聽
[625]
you can still do that right it does take a little聽 bit more time so uh going back here right so this聽聽
[630]
is the summation this is basically your duration聽 right and then to go from duration to volatility聽聽
[637]
what we do is we take the duration divide by one聽 plus yield to maturity the yield to maturity here聽聽
[643]
is given to us as three percent so in this聽 case the volatility which is also called the聽聽
[649]
modified duration by the way can be calculated as聽 three point eight eight divide that by one plus聽聽
[656]
point zero seven and that is going to give you a聽 duration sorry it's going to give you a volatility聽聽
[662]
of 3.77 so this is basically how do you calculate聽 you know the duration and the volatility if you聽聽
[670]
have to use the ba the tiba 2 plus to run the聽 calculation so as always please let me know聽聽
[679]
if you have any questions i'll be more than聽 happy to answer any questions that you have聽聽
[684]
as always thanks for watching and i聽 will see you in another video tutorial