ItΓ΄ Calculus
Week 5
Lecture Notes
Babyβs First Stochastic Integral
This is seemingly one of the simplest integrals you could do.
If weβre going to do this integral, how weβre going to do that is to create a process that converges so that this integral equals
We essentially want this integral to converge to the integral of a Brownian motion.
Weβre going to define
Weβre going to assume werβe cutting up our timespan into equal sized pieces.
What weβre doing here is that if we have this path of a Brownian motion, we will create time partitions where we are cutting it up into equal spaces. And our process takes the value of the motion at time 0 until time 1, then resets to time 1, then time 2, so it turns it into a random walk. As gets larger and larger, this converges to Brownian motion pointwise, no place for discontinuities to hide.
I can now express this integral as
The widths come from the change in Brownian motion.
Weβll denote for convenience, so this becomes
Weβre going to look at the expansion of this squaredd
The 1/2 will become relevant later
Now, first thing Iβm going to observe is that I could take this first term and rewrite it as
Iβm doing a reindex and starting at . What would this be when ? 0. So this will be the same thing as
The expansion of this is
Well, this is
This term here is very close to where we left off in the original expansion. I can move this to the other side, which takes out the β1, which makes them correspond.
We have just proven that
After substituting that back in, I now have that
What is ?
This doesnβt depend on . If you look very carefully at the summation of the difference of squares, thatβs quadratic variation, so
The quadratic variation is the precise property which makes stochastic integral different
This is the correct answer if we use the left-hand endpoints i.e. if this is an adaptive process.
Right hand endpoint also
Stratonyvich integral if we use midpoint, so thatβs intuitive. Why donβt we use it? Itβs not adaptive/measurable, it requires you to evaluate the value of the expression halfway through the integral. That would be the equivalent of choosing your trading position at the middle of the day for the entire day. Thatβs impossible. So we have to use Ito integrals.
Differential Form
If we were dealing with regular calculus, and you asked me to find the differential of a function, I would look at it and use the chain rule. But Brownian motion isnβt differentiable.
Weβre still not going to have it correct because of quadratic variation. We actually have
If we look at the integral form and we look at both sides,
By the theorem of calculus, integral of differential should be difference between bounds. So we must prove this.
Weβre going to use the Taylor series to come up with some expansions. This is going to be
writing out the first few terms, this is
So, I have that equals all of this stuff
This is true for any function that we can do the Taylor approximation on. Weβre going to keep this in mind and then I want to talk about telescoping sums. For a sequence what can you tell me about this/
Well this is going to cancel out in between so we end up just getting the difference between the endpoints.
We now have most of our pieces.
Iβm going to say that for a given partition , Iβm going to let , . Iβm going to rewrite this Taylro series expansions with these variables. I now have
Then, I am now going to take (and remember, if I can do it to both sides I can do anything) I am going to add both of these sides up
The left is just our telescoping summation. We have various summations on the other side.
Because this is for an arbitrary partition, letβs look at the limit as the norm of partition goes to 0. Nothing happens on the left side, because thereβs no index involved there. So weβll leave it untouched.
Weβre writing this all down because we will need to refer back to this later! Now, letβs look and see how this limit affects this. As weβre dealing with the limit of the norm of this partition going to 0, this change in Brownian motion is going to converge to the differential. That is the definition of the differential. That means that this term inside the exponent is just the differential. So we get the first term as , then the second term as because thatβs what we determined. And after we multiply it one more time, it will be 0, because thatβs also proven. So we can throw out all terms after the second order. This gives us one Ito integral and one Riemann integral. What we have here is
At this point, everybody should know that the 1/2 appears because of the Taylor expansion. Everybody makes the mistake and forgets it, so you need to be extra vigilant on homework and tests for this.
Ito Formula
That leads us to being able to prove Theorem 4.4.1 the Ito formula for Brownian motion:
Let be a function for which the partial derivatives etc.
I would strongly suggest that you use a different form of the Ito formula.
is some function such that , , and exist.
This lets us remember where all the pieces are coming from. We can see that is only considered with respect to these dummy variables.
Where does this formula come from? The two dimensional Taylor series expansion!
For some function, centered around the point
These are all the first order derivatives. Then we get
into the second and third order and so on.
We will let , , ,
Weβre going to do the same sum to telescoping sum trick here.
assume that fab and fba are the same
The differential notation makes the limit transparent: is first-order time, is the Brownian increment, times any differential is 0, and through quadratic variation. The only nonzero second-order term is therefore the quadratic-variation term. That is how we get the ItΓ΄ formula.
Using this formula, we can now try and solve a simple exercise. The only stochastic part of the Ito formula is in the part. So letβs try and move everything to the other side of the expression.
So, if I was given the problem, what is
That seems to suggest that
What would be ? I donβt want to work with my functions with stochastic crap, I want to use well-defined dummy variables?
If I do this substitution, then this is what i results in.
Then what is
? 1.
I am going to do this the hardest possible way right now, to demonstrate how itβs done.
with being some arbitrary function, which has to be true because of all these derivatives. NOTE: this is the notation for a partial derivative with respect to .
We will prove that and must be 0, so we donβt have to worry about them later.
With these choices, Iβm going to be able to say that this
This is just plugging are previous values in the formula. We can cancel out the constant, so it will be 0 in the future.
What is the integral of ? It would just be . So it didnβt matter at all what function we used, so weβll just use 0 in the future. Whatβs left over is
which is the same exact answer.
Another Baby
We know that the partial derivative , so , .
So what is ? . We know that .
Professor recommendation: do everything with and , which is very handy. You donβt get messed up about the connections between and . This becomes
because everything else is 0. This is the fast way of doing it, just calculate the partial derivatives and solve through dummy variables until you canβt anymore.
Can you integrate Brownian motion? That value represents the area under Brownian motion. Knowing that every time Brownian motion is generated, it has a different value every time, you have to represent it as an integral, thereβs no simplification because you canβt know more. Lonon will troll the students by putting Riemann integrals on exams and homework. Students always try to throw away all the other math when they learn stochastic calculus.
Ito Processes
One benefit of these stochastic integrals is that we can create the Ito process. Our only requirement is that our processes have to be adapted.
We can show that the quadratic variation of this process is the same as the quadratic variation of the integral
Now letβs talk about the differential of a stochastic process.
When weβre talking about integrals over these tiny increments, itβs something different.
These limits are the same. This means that when you take the limit, you get
We can now take the differential of any integral really quickly. This is a really simple trick.
What if we squared it?
Letβs expand the square
Letβs simplify almost all of this. We know that all the dt squared and dtdW(t) are 0
This is an approach that will work for a continuous process. An Ito process has to be a continuous process. Itβs a nonrandom variable plus an Ito integral plus a Riemann integral. We can use this approach: Since I know that
That means that
IF IS CONTINUOUS.
This is the quick proof.
We can now define an Ito integral with respect to an Ito process.
Your stock process would follow some stochastic process, and this reprseents a trading strategy
We can now find, where is a simple process that dictates how we choose stocks,
We can vary it based on the stock price. We can actually use this Ito formula to take differentials as well as integrals. With the expression , if we assume
If I said this function was geometric Brownian motion
For simplicity, weβll replace with a and b
Then what are our partials?
Open question: look more into partial derivatives and why this is true.
This means that
Those terms cancel, which means this whole thing is
or, written slightly differently,
Now we can see why weβre looking at GBM. When Black-Scholes were looking for a way to model the stock prices. They looked at this instantaneous drift and the that is the diffusion. The problem is that this is nonsense because you can have negative stocks in that model. So now they look at proportional changes in the stock processes, which is sort of like instantaneous return. This is what this dynamic is showing us. We have drift and diffusion.
That means that our original integral for choosing stocks is
Our process is coming from deterministic drift and random diffusion. That also finally gets us to theorem 4.4.6, which is the best version of this formula, the Ito formula for an Ito process.
The source starts the general ItΓ΄-process formula here but leaves it unfinished (Open question: finish the displayed formula from the slides).
The first argument corresponds to the first differential , and then the second one is done once than twice, which is what goes into the quadratic variation.
Why is this true? Letβs go back to the two dimensional Taylor series.
If we use the Ito process instead of Brownian motion, you end up with the same combinations. . We can create a general rule that / multiplied by any other differential is 0. REMEMBER THIS.
The only difference is that the quadratic variation of the Ito process, which is
This also can be expressed in differential form, which loses a few details.
Generalized GBM
You can also have generalized Geometric Brownian Motion, which is different from regular GBM. We can now say that and are no longer inputs, they are stochastic processes in themselves. They are still adapted, but they are stochastic.
IF I define
I canβt do the differential hre normally because I donβt have everything substitutable, we donβt have W(t) really. We canβt write this as a function of and
But I can define a new stochastic process
Can I write now as an Ito process?
My Ito formula is going to tell me that
This helps me know what Iβm missing to find this differential.
Therefore, , ,
This is becauseβ¦ I donβt know he didnβt explain π
All of that is
We can cancel out the portion and create
This is the same as GBM, but we need to derive this by using the Ito process.
The Ito formula for Ito processes works for everything, which makes it the best one, 4.4.6.
An interesting result of theorem 4.4.9 is that
The random variable is normally distributed. Letβs prove that.
The key to this proof is that Iβm going to first define
.
What is
Letβs look at the differential, the Ito decomposition. This makes it much more clear if this is an Ito process.
But what we donβt have well defined is . But that shouldnβt be too bad.
I know what is given to us by 4.4.9
REMEMBER THAT is
Canceling out terms, we get
Integrating both sides, we get
I can see an interesting thing here. This formula must be a martingale, because itβs a constant plus a martingale. All Ito integrals with respect to Brownian motion are martingales.
The expected value is the same as when itβs conditioned on zero information, which is 1.
is explicitly nonrandom, so is the only stochastic part of it.
That means you actually have
Thatβs how you get a moment generating function, for a normal random variable, for mean 0 and variance given by this integral.
Vasicek
We donβt only use stochastic processes for stock prices. There are many random things in finance, like interest rates. There are different models for this. This is given by this stochastic differential equation:
It ahsa closed form solution, which we can prove.
This Vasicek model has a mean reverting component. We can see this by looking at the behavior of this process if the current value of interest rate , then . If our interest rate falls below this level, our drift term becomes strictly positive. Weβre going to have a general upward drift if this happens. But what if it goes below that? We get pulled back down. What happens if we hit it perfectly? We still have noise in our model from , so we will never have an equilibrium.
Closed form solution:
Weβll pick the Ito process
Because this will give us
We need to find
Weβll substitute with b$
Whatβs our partials?
If we run our Ito formula:
Letβs factor out this and cancel out when we factor it in.
We are very close to being . The only difference is So weβll add and subtract it.
When we cancel out the denominator with , we get
This is very nice because we can get the expected value of more easily.
Whenever youβre calculating expectations, you need to figure out whatβs random, because the expectation of a constant is itself.
The only random thing is the Ito integral, which is a martingale, so we get
What would be the long-term rate?
This term is called the long-term interest rate, what itβs mean reverting to.
This seems like a pretty interesting process. Ito process, closed form solution, but itβs got a big flaw. The only thing thatβs random is the integral.
If you add a constant to a normal distribution, itβs still normal. We just agreed that this process is normally distributed, which means that thereβs a nonzero probability that the interest rate could be negative. Depending on what youβre modeling, like risk-free interest rates in a functioning economy, this could be really bad.
Some very intelligent people saw this problem and fixed it.
Cox-Ingersoll-Ross
The CIR interest rate model adds in one thing: a square root. In order for the interest rate to go negative, it has to go to 0. This model causes noise to disappear as interest rates go to 0, so upward drift increases.
Unfortunately, there is no obvious closed-form solution. Fortunately, weβre built different. We would look at
where the dummy function is
So the differential becomes
We see what happens is that the terms get canceled because we chose this specific differential.
I can integrate both sides and get
I can kind of get by itself but not all the way because I canβt get rid of the square root. There is no fancy thing I can look at to make this thing behave. But I will still have
Which means I can get the expectation, which would not necessarily be given by the original expression.
If I tried doing that with the original, I depend on . But in my new form, the only is contained in the stochastic integral which we know has expectation 0.