Martingales and Random Walks

Week 2

Lecture Notes

Measurability

(continuing from last time)

A stochastic process is a collection of random variables indexed by time. If you start out at time 0 and each time you pick heads you go one step, it’s now a walk. You have no idea where you’re going to be in the future, but you know the general distribution and have an idea of where you’re likely to do.

We also have a filtration which is a collection of 𝜎-algebras indexed by time. If we have enough information in the filtration to know what set your outcome is in, you get an adapted stochastic process. Mathematically, these variables are considered ℱ︀-measurable by the filtration ℱ︀.

Independence

Two 𝜎-algebras are independent if for every element 𝐴 and 𝐵 in both 𝜎-algebras:

ℙ(𝐴∩𝐵)=ℙ(𝐴)×ℙ(𝐵)

This is a strong mathematical result, but it is not useful because most useful 𝜎-algebras are infinite.

BUt if you can show that the joint cdf is the same as the products of the marginal cdfs (WILL COVER LATER) it will do the same thing.

We can say that two random variables are independent if the 𝜎-algebras generated by them are

One useful way to do this is by determining that if one variable is measurable by a 𝜎-algebra that is independent of a 𝜎-algebra generated by another variable, they are independent.

Variance

Variance 𝕍(𝑋) is defined by:

𝑉𝑎𝑟(𝑋)=𝕍(𝑋)=𝔼[(𝑋−𝔼[𝑋])2]=𝔼[𝑋2]−(𝔼[𝑋])2

This variable is necessarily nonnegative, although it may be infinite. If your variance is negative, it is for sure wrong. The standard deviation of 𝑋 is the square root of the variance.

The reason that it’s squared is that it’s always positive, which means that movements above the mean matter as much as movements below the mean. The reason it’s squared and not absolute value is that if you have tiny differences from the mean, and you square them, they disappear, while bigger ones get bigger. It minimizes tiny differences and maximizes larger ones. This is why it’s called the measurement of central tendency, because it measures how clustered values are around the mean.

Covariance

We have a sample space and we take variables. You measure how much variables fluctuate with each other with respect to the inputs from the sample space.

Cov(𝑋,𝑌)=𝔼{(𝑋−𝔼[𝑋])(𝑌−𝔼[𝑌])}

=∑𝜔∈Ω(𝑋(𝜔)−𝔼[𝑋])(𝑌(𝜔)−𝔼[𝑌])ℙ(𝜔)

You’re going through every entry and seeing how much 𝑋 differs from its mean and 𝑌 differs from its mean, weighting them with their probability measure. It’s how they are different from each other in the same scenario.

We can say that two variables are uncorrelated if their covariance is 0. Independent variables are uncorrelated, but uncorrelated variables may not be independent. The value of covariance doesn’t tell you how correlated variables are, only the correlation coefficient does:

𝜌(𝑋,𝑌)=Cov(𝑋,𝑌)𝕍(𝑋)𝕍(𝑌)

If this value is 0, then they are uncorrelated. This coefficient is always [−1,1]. −1 means perfectly inverse, and 1 means perfectly direct. This only has to do with direction, not necessarily magnitude.

Let’s consider a probability space. 𝒢︀ is a sub-𝜎-algebra of ℱ︀, and 𝑋 random variable. The conditional expectation of 𝑋 given 𝒢︀ is a random variable that is measurable i.e. 𝔼[𝑋|𝒢︀] is 𝒢︀-measurable and partial averaging

If i limited myself just to a set 𝐴 and I averaged 𝑋 over 𝐴, I should get the same result as if I took the average of 𝑋. Underneath this subset, if I average over the 𝑋 terms.

Conditional expectations are random variables.

Technically, the condition in a conditional expectation is a 𝜎-algebra.

Important theorems:

  1. Linearity of conditional expectations: 𝔼[𝑐1𝑋+𝑐2𝑌|𝒢︀]=𝑐1𝔼[𝑋|𝒢︀]+𝑐2𝔼[𝑌|𝒢︀] Let’s consider a situation where 𝑋 can take one of two values and 𝑌 can take one of two values, both dependent on 𝑎,𝑏,𝑐,𝑑. If 𝑌=3, 𝜔∈{𝑎,𝑐}, then 𝔼[𝑋|𝑌=3]=∑𝜔∈Ω𝑋(𝜔)ℙ(𝜔|𝑌=3) and this is the same as ∑𝜔∈Ω𝑋(𝜔)ℙ(𝜔∩{𝑎,𝑐})ℙ({𝑎,𝑐}) from Bayes theorem Knowing that Y=3, that means ∑𝜔∈{𝑎,𝑐}𝑋(𝜔)ℙ(𝜔)2/3 =32(𝑋(𝑎)ℙ(𝑎)+𝑋(𝑐)ℙ(𝑐))
  2. We can take something that is known outside of an expectation. 𝔼[𝑋𝑌|𝒢︀]=𝑋𝔼[𝑌|𝒢︀]
  3. Iterated conditioning. If ℋ︀⊂𝒢︀, (think of this as information), then we know less information in ℋ︀ than in 𝒢︀. If I create a new random variable around 𝑋 when you condition it just on this less information set, you get: 𝔼[𝔼[𝑋|𝒢︀]|ℋ︀]=𝔼[𝑋|ℋ︀] We use iterated conditioning to complicate a process before simplifying it.
  4. Independence: If 𝑋 is independent of 𝒢︀, having the condition doesn’t do anything.
  5. Conditional Jensen’s Inequality - not important
Martingale Processes

Consider an adapted stochastic process 𝑀(𝑡), for 0≤𝑡≤𝑇 where 𝑇 is a fixed positive number. The process needs to be such that if I know all the information up to time 𝑠, my best estimate for where it will be in the future, it will be the same as it is now. On average, I expect it to stay the same. Even though it probably won’t, I expect it to. If you expect it to grow, it’s a submartingale, and if you expect it to shrink, it’s a supermartingale.

Markov

If you have a stochastic process where for every non-negative function 𝑓 on the number line, there is another 𝑔 where you can describe the expectation for a future 𝑓(𝑋(𝑡)) given the information in time 𝑠 with 𝑔(𝑋(𝑠)). How much information do we need to calculate the value of this process? We would love to have a stock process that is Markov. This aligns with the idea that all past information is encoded in the current price, so we only need the current price and some function on that to determine a future price.

Random Walks

We can define the outcomes of the tosses of a coin where heads is 1, and tails is −1. The process of flipping a coin and calculating the sum of the values is the symmetric random walk 𝑀. These increments are independent from each other, whether symmetric or asymmetric. Knowing that there were a bunch of heads in the past doesn’t give you any information about future flips. Our increment is defined by:

𝑀𝑘𝑖+1−𝑀𝑘𝑖=∑𝑗=𝑘𝑖+1𝑘𝑖+1𝑋𝑗

This starts at plus 1 because… wasn’t listening 😓

If we want to calculate the expected value of this, we can use the linearity of expectation to bring the expectation into the random variable: ∑𝑖=𝑘𝑖+1𝑘𝑖+1𝔼[𝑋𝑖]

By adding these together, we can see that the expectation of the random variable is 0.

Is variance a linear operator? If it is, then Var(𝛼𝑋+𝛽𝑌)=𝛼Var(𝑋)+𝛽Var(𝑌)

Using our definition of variance, this is the same as

𝔼[(𝛼𝑋+𝛽𝑌)2]−𝔼[𝛼𝑋+𝛽𝑌]2

=𝛼2𝔼[𝑋2]+2𝛼𝛽𝔼[𝑋𝑌]+𝛽2𝔼[𝑌2]−𝛼2𝔼[𝑋]2−2𝛼𝛽𝔼[𝑋]𝔼[𝑌]−𝛽2𝔼[𝑌]2

and this ends up equalling, once you cancel everything out

=𝛼2Var(𝑋)+2𝛼𝛽Cov(𝑋,𝑌)+𝛽2Var(𝑌)

Clearly, this is not a linear operator. Only in the scenario where the variables are independent and their coefficient is 1, i.e. they are independent and identically distributed (iid), do they act as if they are linear.

When we look at the random walk 𝑀, we can see that each increment of the random walk is independent, and the coefficient is 1. So in this case, the summation of the variances happens to equal the variance of the summations.

What about 𝔼[𝑋𝑗2]? Because the negative outcome is squared, it becomes 1, which means that the variance is 1, so that the summation of variances is 𝑙−𝑘. If you have a walk that lasts 5 steps or 500 steps, the expectation is the same, but the variance goes from 5 to 500.

We can prove this symmetric random walk is a Martingale.

We need to prove for 𝑘<𝑙 that

𝔼[𝑀(𝑙)|ℱ︀(𝑘)]=𝑀(𝑘)

If we add a zero, nothing should happen, right?

=𝔼[𝑀(𝑙)−𝑀(𝑘)+𝑀(𝑘)|ℱ︀(𝑘)]

Now we can use the linearity of expectations to take out the 𝑀(𝑘)

𝔼[𝑀(𝑙)−𝑀(𝑘)|ℱ︀(𝑘)]+𝔼[𝑀(𝑘)|ℱ︀(𝑘)]

for the purposes of this, ℱ︀(𝑘) is the information we would know at time 𝑘, and 𝑀(𝑘) is definitely known with respect to that information. We also know that the difference between 𝑀 is the increment, and that the increment is independent of information, so we can ignore it:

𝔼[𝑀(𝑙)−𝑀(𝑘)]+𝑀(𝑘)

We already know that the expectation of the increment is 0, so

𝑀(𝑘)=𝑀(𝑘)

First Order Variation

This is the total change of the process. The first order variation in a function is the change in the y-axis. We’ll consider Π as the partition of the process, going from {𝑡0,𝑡1,…,𝑡𝑛}, where this is a sequence of ordered values that ends at 𝑡. Let’s get an operator called the norm which gives you the length of the biggest piece of the partition: ||Π||

We want a brute force way to calculate this first order variation for any function. We’ll cut up our function into a bunch of different pieces, and then look at the value of the function at every point (the “realizations” of this process). You can get all the changes in y at the different values and add them all up. In order to get the true value, we would add more and more points, maybe an infinite number of points. We need to take the limit as the norm of the partition approaches 0. The mechanical way to do this is to take the norm and cut it in half at every step:

𝐹𝑉𝑇(𝑓)=lim||Π||→0∑𝑗=0𝑛−1|𝑓(𝑡𝑗+1)−𝑓(𝑡𝑗)|

For a continuous and differentiable function, we can use the mean value theorem which means that for every increment, there exists a number which exists within that increment where the derivative of that point is equal to the slope between the beginning and end of the increment. In this case, we can use this fact to simplify this to get the Riemann integral.

Quadratic Variation

[𝑓,𝑓](𝑇)=lim||Π||→0∑𝑗=0𝑛−1(𝑓(𝑡𝑗+1)−𝑓(𝑡𝑗))2

Does not have a nice real world analogy. It is that same change squared. This is uninteresting outside of stochastic calculus because the quadratic variation for a continuous, differentiable function is always 0.

We can create a handy inequality here. We can take out the norm like this and say

lim||Π||→0||Π||∑𝑗=0𝑛−1(𝑓′(𝑡𝑗∗))2(𝑡𝑗+1−𝑡𝑗)

is greater than or equal to the same but with the difference squared, because the norm is the largest piece.

And because this is a continuously shrinking limit that’s being added together, we can say that this is an integral of a derivative. But we also know that because the term of the norm is here, that goes to 0, which means that the entire thing is 0. And because that is greater than or equal to the quadratic variation formula, that must also always be zero (because it has to be positive).

We will deal with some situations where the first order variation will be infinite, and quadratic variation will give us a more interesting result.

The random walk evolves in a discontinuous, non-differentiable way. It also is random, so there are multiple different versions of the same function. Subdividing this function with first order variation gives you that the expectation is 0 most of the time. We can consider it as

𝐹𝑉4(𝑀)=∑𝑗=14|𝑋𝑗|

so you get the total change as being 4. Open question: explain this step more clearly.

For quadratic order variation, this is

[𝑀,𝑀](4)=∑𝑗=14(𝑋𝑗)2=4

This does not necessarily occur! If the step size changed to 2 and −1, this is no longer true. The quadratic order variation is only the same as first order variation when the random walk is symmetric.

Scaled Symmetric Random Walk

Brownian motion is an approximation for a process that constantly fluctuates. Our random walk jumps up and down simplistically. We need to start taking steps a lot more often, but the problem with that is it would significantly magnify our variation without changing much. We also need to decrease step size. We create more and more steps by subdividing the x-axis, and make them smaller. This gives us our scaled symmetric random walk. We will take 𝑛 times as many steps, but the step size is decreased by 𝑛:

𝑊(𝑛)(𝑡)=1𝑛∑𝑗=1𝑛𝑡𝑋𝑗

We still have independence of increments in this walk. The expected value of a walk is still 0. We can use the same arguments to determine that this is a martingale. But if we look at the variance of the increments in the scaled symmetric random walk, it is now

Var(∑𝑗=𝑛𝑠+1𝑛𝑡1𝑛𝑋𝑗)

This presents a problem for our attempt to convert between summation of variances because there is now a coefficient. But because 𝛼=𝛽 in this case, Open question: explain this conversion more clearly.

=∑𝑗=𝑛𝑠+1𝑛𝑡1𝑛Var(𝑋𝑗)

=1𝑛(𝑛𝑡−𝑛𝑠)=𝑡−𝑠

The reason it has to be 𝑛 and not 𝑛 is because in this formula, the variance would be going to 0 as 𝑛 goes to ∞.

The quadratic variation becomes 𝑡, but the first order variation goes to ∞.

Normal Distribution

We will prove that the scaled symmetric walk approaches the normal distribution. Any normal variable is defined by 𝜇 and 𝜎2. It also has a

𝜑𝑊(𝑛)(𝑡)(𝑠)=𝔼[𝑒𝑠𝑊(𝑛)(𝑡)]

=𝔼[𝑒∑𝑗=1𝑛𝑡𝑠𝑛𝑋𝑗]

=𝔼[∏𝑗=1𝑛𝑡𝑒𝑠𝑛𝑋𝑗]

This is the expected value of the product as a whole bunch of independent variables, which means that it’s the same as the product of the expectations:

=∏𝑗=1𝑛𝑡𝔼[𝑒𝑠𝑛𝑋𝑗]

Important: understand what’s random and what’s not. 𝑋𝑗 only is random. Given the expectation of 𝑋𝑗 being known:

=∏𝑗=1𝑛𝑡(12𝑒𝑠𝑛+12𝑒−𝑠𝑛)

this is the same as

=(12𝑒𝑠/𝑛+12𝑒−𝑠/𝑛)𝑛𝑡

This is the moment generating function

We are trying to prove that

lim𝑛→∞𝜑𝑊(𝑛)(𝑡)(𝑠)=𝑒12𝑠2𝑡

because this means that the walk is normally distributed. We can take the natural log of both sides

lim𝑛→∞log(𝜑𝑊(𝑛)(𝑡)(𝑠))=12𝑠2𝑡

Let’s make a convenience variable 𝑥

𝑥=1𝑛

We are satisfied that the limit of 𝑛 going to ∞ is the same as 𝑥 going to 0.

lim𝑥→0+(𝑡𝑥2log(12𝑒𝑠𝑥+12𝑒−𝑠𝑥))

this results in a 0/0, which is undesirable. In order to get rid of this situation, we will apply L’Hopital’s rule.

=𝐿𝑠𝑡2lim𝑥→0+(12𝑒𝑠𝑥−12𝑒−𝑠𝑥𝑥)

which is still indeterminate, so we will apply it once again, which will give us the normal distribution

Open question: copy the limiting argument from the video.

Brownian Motion

Suppose there is a continuous function 𝑊(𝑡) which starts at 𝑊(0)=0 and depends on 𝜔. We have increments that are independent and each of the increments are normally distributed. The expectation is 0, and the variation is 𝑡𝑖+1−𝑡𝑖. The quadratic variation of Brownian motion is known to be 𝑡. Because this is a continuous, non-differentiable variable, its first order variation goes to infinity.

Let’s talk about mean squared convergence. We can define a random process that will converge to our quadratic variation, and if its square does as well, and the mean of that square converges as well, the expectation must as well.

We have a sample quadratic variation for a random partition

𝑄Π=∑𝑗=0𝑛−1(𝑤(𝑡𝑗+1)−𝑊(𝑡𝑗))2

We will make more intricate partitions as we go on so that the limit approaches 0.

I want to show that

lim||Π||→0𝔼[𝑄Π]=𝔼[𝑇]

where 𝑇 is a constant. Because 𝑇 is a constant, expectation is itself and variance is 0. We can then show that we want 𝑄Π to approach both the variance and the value of 𝑇.

𝔼[𝑄Π]=𝔼[∑𝑗=0𝑛−1(𝑊(𝑡𝑗+1)−𝑊(𝑡𝑗))2]

We can use the linearity of expectation to get

=∑𝑗=0𝑛−1𝔼[(𝑊(𝑡𝑗+1)−𝑊(𝑡𝑗))2]

Using our previous definition of variance as

𝔼[𝑋2]=Var(𝑋)+𝔼[𝑋]2

We know that the mean of the increment of Brownian motion is 0 and its variation is time 𝑡.

So this becomes

∑𝑗=0𝑛+1(𝑡𝑗+1−𝑡𝑗)=𝑡

therefore,

lim||Π||→0𝔼[𝑄Π]=𝑡

because the limit of a constant is the same as the constant.

Var((𝑊(𝑡𝑗+1)−𝑊(𝑡𝑗))2)=𝔼[(𝑊(𝑡𝑗+1)−𝑊(𝑡𝑗))4]

Without standardization, the fourth moment is 3𝜎4

The variance of an increment is the duration of time.

lim∥Π∥→0Var(𝑄Π)=2lim∥Π∥→0∑𝑗(𝑡𝑗+1−𝑡𝑗)2=0

We have derived the quadratic variation of time. 🤯

Time is a continuous, differentiable function, so it’s 0.

Overall: we have determined that the quadratic variation of Brownian motion is equal to the time almost surely, since any individual continuous differentiable function formed by Brownian motion has probability 0 of occurring.