ItΓ΄ Calculus

Week 5

Lecture Notes

Baby’s First Stochastic Integral

This is seemingly one of the simplest integrals you could do.

∫0π‘‘π‘Š(𝑒)π‘‘π‘Š(𝑒)

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

=limπ‘›β†’βˆžβˆ«0𝑑Δ𝑛(𝑒)π‘‘π‘Š(𝑒)

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 [0,𝑑] 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

=βˆ‘π‘—=0π‘›βˆ’1π‘Šπ‘—(π‘Šπ‘—+1βˆ’π‘Šπ‘—)

We’re going to look at the expansion of this squaredd

12βˆ‘π‘—=0π‘›βˆ’1(π‘Šπ‘—+1βˆ’π‘Šπ‘—)2=12βˆ‘π‘—=0π‘›βˆ’1π‘Šπ‘—+12βˆ’βˆ‘π‘—=0π‘›βˆ’1π‘Šπ‘—π‘Šπ‘—+1+12βˆ‘π‘—=0π‘›βˆ’1π‘Šπ‘—2

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

βˆ‘π‘˜=1π‘›π‘Šπ‘˜2

I’m doing a reindex and starting at π‘˜. What would this be when π‘˜=0? 0. So this will be the same thing as

=βˆ‘π‘˜=0π‘›π‘Šπ‘˜2=π‘Šπ‘›2+βˆ‘π‘—=0π‘βˆ’1π‘Šπ‘—2

The expansion of this is

=12π‘Šπ‘›2+βˆ‘π‘—=0π‘›βˆ’1(π‘Šπ‘—2βˆ’π‘Šπ‘—π‘Šπ‘—+1)

Well, this is

=12π‘Šπ‘›2+βˆ‘π‘—=0π‘›βˆ’1π‘Šπ‘—(π‘Šπ‘—βˆ’π‘Šπ‘—+1)

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

βˆ‘π‘—=0π‘›βˆ’1π‘Šπ‘—(π‘Šπ‘—+1βˆ’π‘Šπ‘—)=12π‘Šπ‘›2βˆ’12βˆ‘π‘—=0π‘›βˆ’1(π‘Šπ‘—+1βˆ’π‘Šπ‘—)2

After substituting that back in, I now have that

∫0π‘‘π‘Š(𝑒)π‘‘π‘Š(𝑒)=limπ‘›β†’βˆž(12π‘Šπ‘›2βˆ’12βˆ‘π‘—=0π‘›βˆ’1(π‘Šπ‘—+1βˆ’π‘Šπ‘—)2)

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 𝑑

=12π‘Š2(𝑑)βˆ’π‘‘2

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

𝑑𝑓(π‘Š(𝑑))=𝑓′(π‘Š(𝑑))π‘‘π‘Š(𝑑)+12𝑓″(π‘Š(𝑑))𝑑𝑑

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

𝑓(π‘₯)=βˆ‘π‘˜=0βˆžπ‘“(π‘˜)(π‘Ž)(π‘₯βˆ’π‘Ž)π‘˜π‘˜!

writing out the first few terms, this is

=𝑓(π‘Ž)+𝑓′(π‘Ž)(π‘₯βˆ’1)+12𝑓″(π‘Ž)(π‘₯βˆ’π‘Ž)2+16𝑓‴(π‘Ž)(π‘₯βˆ’π‘Ž)3…

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 {𝑋𝑖}π‘–βˆˆ{1,…,𝑛} what can you tell me about this/

βˆ‘π‘–=0π‘›βˆ’1(𝑋𝑖+1βˆ’π‘‹π‘–)=𝑋1βˆ’π‘‹0+𝑋2βˆ’π‘‹1+𝑋3βˆ’π‘‹2+…+π‘‹π‘›βˆ’1βˆ’π‘‹π‘›βˆ’2+π‘‹π‘›βˆ’π‘‹π‘›βˆ’1

Well this is going to cancel out in between so we end up just getting the difference between the endpoints.

=π‘‹π‘›βˆ’π‘‹0

We now have most of our pieces.

I’m going to say that for a given partition Ξ , I’m going to let π‘₯=π‘Š(𝑑𝑗+1), π‘Ž=π‘Š(𝑑𝑗). I’m going to rewrite this Taylro series expansions with these variables. I now have

𝑓(π‘Š(𝑑𝑗+1))βˆ’π‘“(π‘Š(𝑑𝑗))=𝑓′(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))+12𝑓″(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))2+16𝑓‴(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))3+…

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

βˆ‘π‘—=0π‘›βˆ’1(𝑓(π‘Š(𝑑𝑗+1))βˆ’π‘“(π‘Š(𝑑𝑗)))=βˆ‘π‘—=0π‘›βˆ’1(𝑓′(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))+12𝑓″(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))2+16𝑓‴(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))3+…)

The left is just our telescoping summation. We have various summations on the other side.

𝑓(π‘Š(𝑑))βˆ’π‘“(π‘Š(0))=βˆ‘π‘—=0π‘›βˆ’1𝑓′(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))+12βˆ‘π‘—=0π‘›βˆ’1𝑓″(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))2+16βˆ‘π‘—=0π‘›βˆ’1𝑓″(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))3+…

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.

𝑓(π‘Š(𝑑))βˆ’π‘“(π‘Š(0))=limβˆ₯Ξ βˆ₯β†’0βˆ‘π‘—=0π‘›βˆ’1𝑓′(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))+12limβˆ₯Ξ βˆ₯β†’0βˆ‘π‘—=0π‘›βˆ’1𝑓″(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))2+limβˆ₯Ξ βˆ₯β†’016βˆ‘π‘—=0π‘›βˆ’1𝑓″(π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))3+…

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

=∫0𝑑𝑓′(π‘Š(𝑒))π‘‘π‘Š(𝑒)+12∫0𝑑𝑓″(π‘Š(𝑒))𝑑𝑒 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.

𝑓(𝑇,π‘Š(𝑇))=𝑓(0,π‘Š(0))…

I would strongly suggest that you use a different form of the Ito formula.

𝑓(π‘Ž,𝑏) is some function such that π‘“π‘Ž, 𝑓𝑏, and 𝑓𝑏𝑏𝑏𝑏 exist.

𝑓(𝑑,π‘Š(𝑑))=𝑓(0,π‘Š(0))+∫0π‘‘π‘“π‘Ž(𝑒,π‘Š(𝑒))𝑑𝑒+∫0𝑑𝑓𝑏(𝑒,π‘Š(𝑒))π‘‘π‘Š(𝑒)+12∫0𝑑𝑓𝑏𝑏(𝑒,π‘Š(𝑒))𝑑[π‘Š,π‘Š]𝑑𝑒

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 (π‘Ž0,𝑏0)

𝑓(π‘Ž,𝑏)βˆ’π‘“(π‘Ž0,𝑏0)=π‘“π‘Ž(π‘Ž0,𝑏0)(π‘Žβˆ’π‘Ž0)+𝑓𝑏(π‘Ž0,𝑏0)(π‘βˆ’π‘0)

These are all the first order derivatives. Then we get

+12π‘“π‘Žπ‘Ž(π‘Ž0,𝑏0)(π‘Žβˆ’π‘Ž0)2+12π‘“π‘Žπ‘(π‘Ž0,𝑏0)(π‘Žβˆ’π‘Ž0)(π‘βˆ’π‘0)+12π‘“π‘π‘Ž(π‘Ž0,𝑏0)(π‘βˆ’π‘0)(π‘Žβˆ’π‘Ž0)+12𝑓𝑏𝑏(π‘Ž0,𝑏0)(π‘βˆ’π‘0)2+16+…

into the second and third order and so on.

We will let π‘Ž0=𝑑𝑗, π‘Ž=𝑑𝑗+1, 𝑏0=π‘Š(𝑑𝑗), 𝑏=π‘Š(𝑑𝑗+1)

We’re going to do the same sum to telescoping sum trick here.

𝑓(𝑑,π‘Š(𝑑))βˆ’π‘“(0,0)=βˆ‘π‘—=0π‘›βˆ’1π‘“π‘Ž(𝑑𝑗,π‘Š(𝑑𝑗))(𝑑𝑗+1βˆ’π‘‘π‘—)+βˆ‘π‘—=0π‘›βˆ’1𝑓𝑏(𝑑𝑗,π‘Š(𝑑𝑗))(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))+12βˆ‘π‘—=0π‘›βˆ’1π‘“π‘Žπ‘Ž(𝑑𝑗,π‘Š(𝑑𝑗))(𝑑𝑗+1βˆ’π‘‘π‘—)2+βˆ‘π‘—=0π‘›βˆ’1π‘“π‘Žπ‘(𝑑𝑗,π‘Š(𝑑𝑗))(𝑑𝑗+1βˆ’π‘‘π‘—)(π‘Š(𝑑𝑗+1βˆ’π‘Š(𝑑𝑗))+12βˆ‘π‘—=0π‘›βˆ’1𝑓𝑏𝑏(𝑑𝑗,π‘Š(𝑑𝑗))(𝑑𝑗+1βˆ’π‘‘π‘—)(π‘Š(𝑑𝑗+1)βˆ’π‘Š(𝑑𝑗))

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 (π‘‘π‘Š(𝑒))2=𝑑𝑒 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.

∫0𝑑𝑓𝑏(𝑒,π‘Š(𝑒))π‘‘π‘Š(𝑒)=𝑓(𝑑,π‘Š(𝑑))βˆ’π‘“(0,π‘Š(0))βˆ’βˆ«0π‘‘π‘“π‘Ž(𝑒,π‘Š(𝑒))π‘‘π‘’βˆ’12∫0𝑑𝑓𝑏𝑏(𝑒,π‘Š(𝑒))𝑑𝑒

So, if I was given the problem, what is

∫0π‘‘π‘Š(𝑒)π‘‘π‘Š(𝑒)

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.

𝑓(π‘Ž,𝑏)=𝑏22+𝑔(π‘Ž)+𝐢

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

∫0π‘‘π‘Š(𝑒)π‘‘π‘Š(𝑒)=π‘Š2(𝑑)2+𝑔(𝑑)+πΆβˆ’π‘Š2(0)2βˆ’π‘”(0)βˆ’πΆβˆ’βˆ«0𝑑𝑔′(𝑒)π‘‘π‘’βˆ’12∫0𝑑𝑑𝑒

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 𝑔(𝑑)βˆ’π‘”(0). 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

=π‘Š2(𝑑)2βˆ’π‘‘2

which is the same exact answer.

Another Baby

∫0π‘‘π‘’π‘‘π‘Š(𝑒)

We know that the partial derivative 𝑓𝑏(𝑒,π‘Š(𝑒))=𝑒, so 𝑓𝑏(π‘Ž,𝑏)=π‘Ž, 𝑓𝑏𝑏=0.

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

=π‘‘π‘Š(𝑑)βˆ’βˆ«0π‘‘π‘Š(𝑒)𝑑𝑒

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.

𝑋(𝑑)=𝑋(0)+∫0𝑑Δ(𝑒)π‘‘π‘Š(𝑒)+∫0π‘‘Ξ˜(𝑒)𝑑𝑒

We can show that the quadratic variation of this process is the same as the quadratic variation of the integral

[𝑋,𝑋](𝑑)=∫0𝑑Δ2(𝑒)𝑑𝑒

Now let’s talk about the differential of a stochastic process.

𝑑𝑋(𝑑)=lim𝛿→0+(𝑋(𝑑+𝛿)βˆ’π‘‹(𝑑))

=lim𝛿→0+(βˆ«π‘‘π‘‘+𝛿Δ(𝑒)π‘‘π‘Š(𝑒)+βˆ«π‘‘π‘‘+π›ΏΞ˜(𝑒)𝑑𝑒)

When we’re talking about integrals over these tiny increments, it’s something different.

lim𝛿→0+(Ξ”(𝑑)(π‘Š(𝑑+𝛿)βˆ’π‘Š(𝑑))+Θ(𝑑)(𝑑+π›Ώβˆ’π‘‘))

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?

(𝑑𝑋(𝑑))2=(Ξ”(𝑑)π‘‘π‘Š(𝑑)+Θ(𝑑)𝑑𝑑)2

Let’s expand the square

=Ξ”2(𝑑)(π‘‘π‘Š(𝑑))2+2Ξ”(𝑑)Θ(𝑑)π‘‘π‘‘π‘‘π‘Š(𝑑)+Θ2(𝑑)(𝑑𝑑)2 Let’s simplify almost all of this. We know that all the dt squared and dtdW(t) are 0

=Ξ”2(𝑑)𝑑𝑑

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

(𝑑𝑋(𝑑))2=𝑑[𝑋,𝑋](𝑑)

That means that

∫0𝑑(𝑑𝑋(𝑒))2=[𝑋,𝑋](𝑑)

IF 𝑋 IS CONTINUOUS.

This is the quick proof.

We can now define an Ito integral with respect to an Ito process.

∫0𝑑Γ(𝑒)𝑑𝑋(𝑒)=∫0𝑑Γ(𝑒)Ξ”(𝑒)π‘‘π‘Š(𝑒)+∫0𝑑Γ(𝑒)Θ(𝑒)𝑑𝑒

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,

∫0𝑑Δ(𝑀)𝑑𝑆(𝑀)

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

𝑑𝑓(𝑑,π‘Š(𝑑))=π‘“π‘Ž(𝑑,π‘Š(𝑑))𝑑𝑑+𝑓𝑏(𝑑,π‘Š(𝑑))π‘‘π‘Š(𝑑)+12𝑓𝑏𝑏(𝑑,π‘Š(𝑑))(π‘‘π‘Š(𝑑))2

If I said this function was geometric Brownian motion

𝑓(𝑑,π‘Š(𝑑))=𝑆(0)𝑒(π›Όβˆ’πœŽ22)𝑑+πœŽπ‘Š(𝑑)

For simplicity, we’ll replace with a and b

𝑓(π‘Ž,𝑏)=𝑆(0)𝑒(π›Όβˆ’πœŽ22)π‘Ž+πœŽπ‘

Then what are our partials? π‘“π‘Ž=(π›Όβˆ’πœŽ22)𝑓(π‘Ž,𝑏)

𝑓𝑏=πœŽπ‘“(π‘Ž,𝑏)

𝑓𝑏𝑏=𝜎2𝑓(π‘Ž,𝑏)

Open question: look more into partial derivatives and why this is true.

This means that

𝑑𝑆(𝑑)=(π›Όβˆ’πœŽ22)𝑆(𝑑)𝑑𝑑+πœŽπ‘†(𝑑)π‘‘π‘Š(𝑑)+12𝜎2𝑆(𝑑)𝑑𝑑

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

∫0𝑑Δ(𝑒)𝑑𝑆(𝑒)=∫0𝑑Δ(𝑒)𝛼𝑆(𝑒)𝑑𝑒+∫0𝑑Δ(𝑒)𝜎(𝑒)

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 Ξ”2(𝑒)𝑑𝑒

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

𝑆(𝑑)=𝑆(0)exp(∫0𝑑(𝛼(𝑒)βˆ’πœŽ2(𝑒)2)𝑑𝑒+∫0π‘‘πœŽ(𝑒)π‘‘π‘Š(𝑒))

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

𝑋(𝑑)=∫0𝑑(𝛼(𝑒)βˆ’πœŽ2(𝑒)2)𝑑𝑒+∫0π‘‘πœŽ(𝑒)π‘‘π‘Š(𝑒)

Can I write 𝑆(𝑑) now as an Ito process?

𝑆(𝑑)=𝑆(0)𝑒𝑋(𝑑)=𝑓(𝑑,𝑋(𝑑))

My Ito formula is going to tell me that

𝑑𝑆(𝑑)=π‘“π‘Ž(𝑑,𝑋(𝑑))𝑑𝑑+𝑓𝑏(𝑑,𝑋(𝑑))𝑑𝑋(𝑑)+12𝑓𝑏𝑏(𝑑,𝑋(𝑑))(𝑑𝑋(𝑑))2

This helps me know what I’m missing to find this differential.

𝑓(π‘Ž,𝑏)=𝑆(0)𝑒𝑏

Therefore, π‘“π‘Ž=0, 𝑓𝑏=𝑓, 𝑓𝑏𝑏=𝑓

𝑑𝑋(𝑑)=(𝛼(𝑑)βˆ’πœŽ2(𝑑)2)𝑑𝑑+𝜎(𝑑)π‘‘π‘Š(𝑑)

(𝑑𝑋(𝑑))2=𝜎2(𝑑)𝑑𝑑

This is because… I don’t know he didn’t explain πŸ™

𝑑𝑆(𝑑)=0𝑑𝑑+𝑆(𝑑)𝑑𝑋(𝑑)+12𝑆(𝑑)(𝑑𝑋(𝑑))2

=𝑆(𝑑)(𝛼(𝑑)βˆ’πœŽ2(𝑑)2)𝑑𝑑+𝑆(𝑑)𝜎(𝑑)π‘‘π‘Š(𝑑)+12𝑆(𝑑)𝜎2(𝑑)𝑑𝑑 All of that is 𝑆(𝑑)𝑑𝑋(𝑑)

We can cancel out the 𝜎2 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

𝐼(𝑑)=∫0𝑑Δ(𝑠)π‘‘π‘Š(𝑠)

The random variable is normally distributed. Let’s prove that.

The key to this proof is that I’m going to first define

𝑋(𝑑)=𝑒𝐼(𝑑)βˆ’π‘’22∫0𝑑Δ2(𝑠)𝑑𝑠.

What is 𝔼[𝑒𝑋(𝑑)]=?

Let’s look at the differential, the Ito decomposition. This makes it much more clear if this is an Ito process.

𝑑(𝑒𝑋(𝑑))=𝑒𝑋(𝑑)𝑑𝑋(𝑑)+12𝑒𝑋(𝑑)(𝑑𝑋(𝑑))2

But what we don’t have well defined is 𝑑𝑋(𝑑). But that shouldn’t be too bad.

𝑑𝑋(𝑑)=𝑒𝑑𝐼(𝑑)βˆ’π‘’22Ξ”2(𝑑)𝑑𝑑

I know what is given to us by 4.4.9

=𝑒Δ(𝑑)π‘‘π‘Š(𝑑)βˆ’π‘’22Ξ”2(𝑑)𝑑𝑑

𝑑(𝑒𝑋(𝑑))=𝑒𝑋(𝑑)𝑒Δ(𝑑)π‘‘π‘Š(𝑑)βˆ’π‘’π‘‹(𝑑)𝑒22Ξ”2(𝑑)𝑑𝑑+12𝑒𝑋(𝑑)𝑒2Ξ”2(𝑑)𝑑𝑑

REMEMBER THAT (𝑑𝑋(𝑑))2 is Ξ”2𝑑𝑑

Canceling out 𝑒 terms, we get

=𝑒𝑋(𝑑)𝑒Δ(𝑑)π‘‘π‘Š(𝑑)

Integrating both sides, we get

𝑒𝑋(𝑑)=𝑒𝑋(0)+∫0𝑑𝑒𝑋(𝑠)𝑒Δ(𝑠)π‘‘π‘Š(𝑠)

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.

=1+∫0𝑑𝑒𝑋(𝑠)…

The expected value is the same as when it’s conditioned on zero information, which is 1.

𝔼[exp(𝑒𝐼(𝑑)βˆ’π‘’22∫0𝑑Δ2(𝑠)𝑑𝑠)]=1

Ξ” is explicitly nonrandom, so 𝐼(𝑑) is the only stochastic part of it.

That means you actually have

𝔼[𝑒𝑒𝐼(𝑑)]=exp…

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 (π›Όβˆ’π›½π‘…(𝑑))>0. 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:

𝑅(𝑑)=𝑅(0)π‘’βˆ’π›½π‘‘+𝛼𝛽(1βˆ’π‘’βˆ’π›½π‘‘)+πœŽπ‘’βˆ’π›½π‘‘βˆ«0π‘‘π‘’π›½π‘’π‘‘π‘Š(𝑒)

We’ll pick the Ito process

𝑋(𝑑)=∫0π‘‘π‘’π›½π‘’π‘‘π‘Š(𝑒)

Because this will give us

𝑅(𝑑)=𝑓(𝑑,𝑋(𝑑))

We need to find 𝑑𝑋(𝑑)

𝑑𝑋(𝑑)=π‘’π›½π‘‘π‘‘π‘Š(𝑑) We’ll substitute with π‘Žπ‘Žπ‘›π‘‘b$

𝑓(π‘Ž,𝑏)=𝑅(0)π‘’βˆ’π›½π‘Ž+𝛼𝛽(1βˆ’π‘’βˆ’π›½π‘Ž)+πœŽπ‘’βˆ’π›½π‘Žπ‘

What’s our partials? π‘“π‘Ž=βˆ’π›½π‘…(0)π‘’βˆ’π›½π‘Ž+π›Όπ‘’βˆ’π›½π‘Žβˆ’π›½πœŽπ‘’βˆ’π›½π‘Žπ‘

𝑓𝑏=πœŽπ‘’βˆ’π›½π‘Ž

𝑓𝑏𝑏=0

If we run our Ito formula:

𝑑𝑅(𝑑)=(βˆ’π›½π‘…(0)π‘’βˆ’π›½π‘‘+π›Όπ‘’βˆ’π›½π‘‘βˆ’π›½πœŽπ‘’βˆ’π›½π‘‘π‘‹(𝑑))𝑑𝑑+πœŽπ‘’βˆ’π›½π‘‘π‘‘π‘‹(𝑑)+12(0)(𝑑𝑋(𝑑))2

Let’s factor out this βˆ’π›½ and cancel out 𝑑𝑋(𝑑)) when we factor it in.

=βˆ’π›½(𝑅(0)π‘’βˆ’π›½π‘‘βˆ’π›Όπ›½π‘’βˆ’π›½π‘‘+πœŽπ‘’βˆ’π›½π‘‘π‘‹(𝑑))𝑑𝑑+πœŽπ‘‘π‘Š(𝑑))

We are very close to being 𝑅(𝑑). The only difference is 𝛼𝛽 So we’ll add and subtract it.

=βˆ’π›½(βˆ’π›Όπ›½+𝑅(0)π‘’βˆ’π›½π‘‘+π›Όπ›½βˆ’π›Όπ›½π‘’βˆ’π›½π‘‘+πœŽπ‘’βˆ’π›½π‘‘π‘‹(𝑑))𝑑𝑑+πœŽπ‘‘π‘Š(𝑑)

When we cancel out the denominator with 𝛽, we get

=(π›Όβˆ’π›½π‘…(𝑑))𝑑𝑑+πœŽπ‘‘π‘Š(𝑑)

This is very nice because we can get the expected value of 𝑅(𝑑) more easily.

𝔼[𝑅(𝑑)]=𝔼[𝑅(0)π‘’βˆ’π›½π‘‘+𝛼𝛽(1βˆ’π‘’βˆ’π›½π‘‘)+πœŽπ‘’βˆ’π›½π‘‘βˆ«0π‘‘π‘’π›½π‘‘π‘‘π‘Š(𝑠)]

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

=𝑅(0)π‘’βˆ’π›½π‘‘+𝛼𝛽(1βˆ’π‘’βˆ’π›½π‘‘)

What would be the long-term rate?

limπ‘‘β†’βˆžπ”Ό[𝑅(𝑑)]=𝛼𝛽

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

𝑓(π‘Ž,𝑏)=π‘’π›½π‘Žπ‘

π‘“π‘Ž=𝛽𝑓

𝑓𝑏=π‘’π›½π‘Ž

𝑓𝑏𝑏=0

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

𝑒𝛽𝑑𝑅(𝑑)βˆ’π‘’π›½(0)𝑅(0)=∫0𝑑𝛼𝑒𝛽𝑒𝑑𝑒+∫0π‘‘πœŽπ‘…(𝑒)π‘’π›½π‘’π‘‘π‘Š(𝑒)

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

𝑅(𝑑)=𝑅(0)π‘’βˆ’π›½π‘‘+𝛼𝛽(1βˆ’π‘’βˆ’π›½π‘‘)+π‘’βˆ’π›½π‘‘βˆ«0π‘‘πœŽπ‘…(𝑑)π‘’π›½π‘’π‘‘π‘Š(𝑒)

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.