Quantitative Finance - Chapter 4 - elementary stochastic calculus

Published

February 23, 2024

Untitled.png

In this chapter

  • all the stochastic calculus
  • the meaning of Markov and martingale
  • Brownian motion
  • stochastic integration
  • stochastic differential equations
  • Ito’s lemma in one and more dimensions

The Markov property

The distribution of the value of the random variable Si conditional upon all of the past events only depends on the previous value Si1. This is the Markov property.

The martingale property

E[Si|Sj,j<i]=Sj

Quadratic variation

Quadratic variation of the random work

j=1i(SjSj1)2

Brownian motion

We will have n tosses in the allowed time t, with an amount t/n riding on each throw. Again, the Markov and martingale properties are retained and the quadratic variation is still

j=1i(SjSj1)2=n×(tn)2=t

As I go to the limit n=, the resulting random walk stays finite. It has an expectation, conditional on a starting value of zero and a variance are

E[S(t)]=0, E[S(t)2]=t

I use S(t) to denote the amount you have won or the value of the random variable after a time t. The limiting process for this random walk as the time steps go to zero is called Brownian motion, and I will denote it by X(t).

  • finiteness: Any other scaling of the bet size or ‘increments’ with time step would have resulted in either a random walk going to infinity in a finite time, or a limit in which there was no motion at all. It is important that the increment scales with the square root of the time step.
  • Continuity: The paths are continuous, there are no discontinuous. Brownian motion is the continuous-time limit of our discrete time random walk.
  • Markov: The conditional distribution of X(t) given information up until τ<t depends only on X(τ)
  • Martingale: Given information up until τ<t the conditional expectation of X(t) is X(τ)
  • Quadratic variation: If we divide up the time 0 to t in a partition with n + 1 partition points ti=it/n then

j=1n(X(tj)X(tj1))2t

  • Normality: Over finite time increments ti1 to ti, X(ti)X(ti1) is normally distributed with mean zero and variance titi1

Stochastic integration

W(t)=0tf(τ)dX(τ)=limnj=1nf(tj1)(X(tj)X(tj1))

tj=jtn

The integration is non-anticipatory.

Stochastic differential equations

W(t)=0tf(τ)dX(τ)

dW=f(t)dX

Think of dX as being an increment in X, i.e. a normal random variable with mean zero and standard deviation dt1/2

dW=g(t)dt+f(t)dX

W(t)=0tg(τ)dτ+0tf(τ)dX(τ)

stochastic differential equations

Untitled

Deterministic being a function representing the growth in something when you switch randomness off, and Random being another function representing how random the Something is.

The mean square limit

Untitled

Functions of stochastic variables and Ito’s lemma

Clearly X is random and therefore F(X) is random, stochastic. If F is stochastic then what is the stochastic differential equation is satisfies?

If F=X2 is true that dF=eXdX?

No. The ordinary rules of calculus do not generally hold in a stochastic environment. Then what are the rules of calculus?

I am going to ‘derive’ the most important rule of stochastic calculus, Ito’s lemma.

Untitled

Untitled

Untitled

I can now extend this result over longer timescales, from zero up to t, over which F does vary substantially to get

F(X(t))=F(X(0))+0tdFdX(X(τ))dX(τ)+120td2FdX2(X(τ))dτ

This is the integral version of Ito’s lemma.

dF=dFdXdX+12d2FdX2dt

Interpretation of Ito’s Lemma

Both look stochastic and we know that the stock price satisfies a stochastic differential equation

dS=μSdt+σSdX

Untitled

What are the underlined bits? And that is precisely what Ito tells us.

This will be important later when we do the Black-Scholes theory, because knowing how much randomness there is in an option’s value relative to a stock’s value will give us a recipe for eliminating the randomness by buying an option and selling short a special quantity of the stock.

Ito and Taylor

Untitled

use Taylor series with the ‘rule of thumb’

The intuition

There are several contributions to the sum: Those that are a sum of random variables and those that are the sum of the squares of random variables, and then there are higher-order terms.

Add up a large number of random variables and the Central limit theorem kicks in, the end result being a normally distributed random variable. But what is its mean and standard deviation? This is the key.

The higher-order terms have means and standard deviations that are too small, disappearing rapidly in the limit as N tends to infinity.

Simple generalization

spot price

  • 1st derivative: return

Untitled

Ito in higher dimensions

Untitled

They are correlated

Untitled

Some pertinent examples

Untitled

The bit in front of the dt is deterministic and the bit in front of the dX tells us how much randomness there is. Modeling is very much about choosing functions to go where the underlining is; it is about choosing the functional form for the deterministic part and the functional form for the amount of randomness.

Brownian motion with drift

dS=μdt+σdX

S(t)=S(0)+μt+σ(X(t)X(0))

The lognormal random walk

dS=μSdt+σSdX

dF=dFdSdS+12σ2§2d2FdS2dt=1S(μSdt+σSdX)12σ2dt=(μ12σ2)dt+σdX

dV=Vtdt+VSdS+12σ2S22VS2dt

A mean-reverting random walk

dS=(νμS)dt+σdX

This random walk is an example of a mean-revering random walk. If S is large, greater than ν/μ, the negative coefficient in front of dt means that S will move down on average; if S is small, less than ν/μ, it rises on average. There is still no incentive for S to stay positive in this random walk. With r instead of S this random walk is the Vasicek model for the short-term interest rate.

Untitled

The random walk for W is an Ornstein-Uhlenbeck process.

Untitled

Untitled

And another mean-reverting random walk

Untitled

Untitled

Untitled

This makes the origin non-attainable. In other word, if the parameter ν is sufficiently large it forces the random walk to stay away from zero.

Further reading

Untitled