1.5 Solving Stochastic Differential Equations

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back this is our third and last video on stochastic calculus and continuous time methods now we're going to talk about solving stochastic differential equations forbidding title but actually and interesting and fairly simple idea you've done this in discrete time in discrete time we started with a stochastic difference equation the AR one and you know how to solve the air one meaning express today's X in terms of the long distant past and all the sequence of shocks that's just the the antiderivative if you will of this that's the differential form that's if you will the integral form our job is to learn how to do exactly that kind of operation with the kind of diffusion processes that we've been talking about so let's start with the simplest one the stochastic integral we originally defined DZ as the difference of the Z process now we want to go back and do the corresponding integral of the differential that we took the first time around so if you have ZT and you want to go back to the level why don't we just say that the level of Z is the integral of all the changes that's what we do in discrete time in discrete time the level of Z is just the sum of all the changes so the level of the in continuous time is the integral of all the changes now what does integral DZ t mean what meaning can we attach to that natural notation well it just means add up all the little changes integral DZ t means let's add up the first change from zero to Delta the second change from two Delta to one Delta all the way up to the last change and then make those Delta's smaller and smaller and smaller so the meaning of a stochastic integral of an expression of the form integral DZ T is just add up all the Changez and when you add up all the little changes what do you get back but the last term minus the first term ZT minus Z zero is the sum of all the little changes I should warn you there's a lot of math under this this is a different definition of integral than what you're used to from calculus in calculus the kind of integral you want to write the way you would anti-differentiate is you have integrals with DTS on them and until today that's the kinds of integrals you've always seen the meaning of that integral is the area under the curve chopped up into little DTS but that's not going to work for us here because our curve is not differentiable it's always hanging up and down therefore we use this notation dzt and the idea add up all the changes not the conventional notation because we don't have a smooth function that we can take the area under a curve with but that shouldn't let you bother you it's just sum up all the little changes and you get back to the level another way of thinking of what the stochastic integral produces is it produces a random variable the integral when you see the expression integral DZ t that means ZT minus z0 that just means a random variable a random variable normally distributed mean 0 and variance t sometimes I write a tee times epsilon when epsilon is normal 0 1 to remind myself there's nothing particularly mysterious about that it's just a normally distributed random variable with mean 0 and variance T well that's the easy one that's the Z now let's try to do some more complicated examples let's start with the diffusion DX T is mew dt plus sigma DZ our standard or standard diffusion formula what's the what's the opposite of that what's the how can we solve that stochastic differential equation let's just plop the integral sign on both sides of that expression as you solve easy regular differential equations by just plopping an integral sign on both sides of the expression what if you get integral DX t well that just means XT minus X 0 integral DT if we just add up little differences DT we just get capital T the total time difference and integral DZ T we've already met our friend integral DZ T that's zk ZT minus z0 that's a random variable so we have now solved a stochastic differential equation x at time t minus its initial value is mu t plus a shock which is normally distributed with mean zero and variance t easy huh let's do a little harder one this is the one that we're going to do all the time in asset pricing we model asset prices by thinking that the rate of return has a mean mu adrift mu and a variance Sigma D Z so what is the finite time price what does the price look like if we go a year ahead two years ahead five years ahead to know that this is a differential equation we have to solve that differential equation forward and see how the price behaves many years ahead how do we do that well ignore the red stuff for the moment let's take the log of P first D if that's DP over P D log P is mu minus one-half Sigma squared DT plus Sigma D Z we did that when we were doing Ito's lemma there was a reason I did that example when we did Ito's lemma we were going to need it right away now we have a diffusion for log P and we know how to just slap an integral on both sides integral d log p integral DT integral DZ what's the integral of d log P well that is add up of little changes that's log P capital t minus log p 0 that's just capital T and DS integral DZ T you've just met that's a shock so now we've found that the log price is normally distributed that's the mean of the log price after t years and that's the variance term that's the shock the random part of the log price after 2 years if you want to look at the price itself exponentiate so the price itself or the gross rate of return this is the rate of return from time 0 to time T that is e to all this stuff the rate of return is log normally distributed that's what we call e raised to a normally distributed thing so for example we can take the mean what is the mean growth rate of a turn well that's the mean of a log normally distributed random variable what is e of all this stuff I use the fact that e of e to the X is e to the mean plus 1/2 Sigma squared that fact works for normally distributed random variables and therefore the mean of the long run rate of return is e to the MU minus 1/2 Sigma squared T plus 1/2 the variance of that term which is another 1/2 Sigma squared T the 2 Sigma Squared's cancel and the mean is e to the mute e as you might expect so you've taken a geometric Brownian motion model for the rate of return and found out that the long-run distribution of prices is log normally distributed this is very important in asset pricing we often think of the rate of return say of monthly returns being normally distributed a distribution looking something like that the log normal distribution is a good distribution for thinking about long run returns because returns can never be negative the log normal distribution looks something like that well you take a bunch of monthly returns that look like that and that turns into 5 and 10-year returns that look something like that now you know how to do it one more slightly more complicated example the AR one is the one that we've been using all along to connect discrete time and continuous time the AR one is d xt drifts down and it's diffusion you've seen the AR one many times ah what does the AR one look like here I'm going to relegate the algebra to the notes watching me do algebra we'll put all of you to sleep for sure and here's the answer however when we solve that equation we have e to the minus Phi T X naught Plus this integral a common set of weights times all the past shocks this is of course exactly parallel to the discrete-time formula row to the T times X naught plus a geometrically weighted sum of all the past shocks geometrically weighted integral of all the past shocks once you've solved a stochastic differential equation you can find the moments of the ar1 just as we found this moment here of the log normal distribution what is the mean and variance of the ar1 this one is easy to do once you just look at the solution what is the mean of XT that's this term because the mean of all those guys is zero what is the variance of XT well that term is just a constant so it doesn't enter into variances we have to take the variance of this integral how do you take the variance of that integral well remember disease only only enter when they multiply themselves diesease are uncorrelated so the variance of that integral the squared value of that integral is just the squared value of the integrand and then each of the DZ squared which is DT so in fact you can find the variance from this very simple integral formula and when you do the integral that's the formula for the variance of an AR one l j-- abrin in the notes but you can see the usefulness of the procedure you found from the differential representation you found how XT depends on all the past shocks and from how XT depends on all the past sharks you can find the mean and the variance of XT as a random variable you may be getting all excited I have to break some bad news to you in general it's not so easy if you remember regular differential equations weren't so easy either why were they not so easy typical differential equations you have DX t is mu which is also a function of X T so when I plop an integral on both sides of here I don't naturally have the X's on the left and the T's on the right and you spent the whole quarter of a differential equations class figuring out how to deal with that things don't get any easier when Sigma depends on X as well but the concept and the idea of solving a stochastic differential equation no harder in continuous-time than it is in discrete-time so summary what have you learned the concept of solving a stochastic differential equation where we simply add up all the little differences the concept of a stochastic integral so objects like integral DX or integral DZ that don't have integral DT on them as you're used to seeing that should now make sense to you that just means add up all the little changes sometimes add up all the little changes weighted by some function of time or state variable another thing you learned is interpreting formulas like that that really just means a random variable that's a shock in this case integral DZ is a random variable with mean zero and variance T and you've seen that one way to get moments conditional means conditional variances is by finding full solutions and then just taking means and variances of sums and integrals of disease which isn't that hard moments is what we're all about an asset pricing prices today reflect expected value of dividends in the far future now we have a mathematical structure that we can use to start thinking about what our expected values of payoffs in the far future what our prices what should prices be with that mathematical structure we can start to go ask the real economic question and that's what we'll do on our first lecture you
Info
Channel: UChicago Online
Views: 31,676
Rating: 4.9496856 out of 5
Keywords:
Id: O0dOlr_XbdM
Channel Id: undefined
Length: 12min 43sec (763 seconds)
Published: Wed Jun 22 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.