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:
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.
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:
If this value is 0, then they are uncorrelated. This coefficient is always . −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:
- Linearity of conditional expectations: Let’s consider a situation where can take one of two values and can take one of two values, both dependent on . If , , then and this is the same as from Bayes theorem Knowing that Y=3, that means
- We can take something that is known outside of an expectation.
- 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.
- Independence: If is independent of , having the condition doesn’t do anything.
- Conditional Jensen’s Inequality - not important
Martingale Processes
Consider an adapted stochastic process , for 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:
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:
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
Using our definition of variance, this is the same as
and this ends up equalling, once you cancel everything out
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 ? 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 , 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:
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
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
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
so you get the total change as being 4. Open question: explain this step more clearly.
For quadratic order variation, this is
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 :
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
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.
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 . It also has a
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:
Important: understand what’s random and what’s not. only is random. Given the expectation of being known:
this is the same as
This is the moment generating function
We are trying to prove that
because this means that the walk is normally distributed. We can take the natural log of both sides
Let’s make a convenience variable
We are satisfied that the limit of going to is the same as going to 0.
this results in a 0/0, which is undesirable. In order to get rid of this situation, we will apply L’Hopital’s rule.
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 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 . 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
We will make more intricate partitions as we go on so that the limit approaches 0.
I want to show that
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 .
We can use the linearity of expectation to get
Using our previous definition of variance as
We know that the mean of the increment of Brownian motion is 0 and its variation is time .
So this becomes
therefore,
because the limit of a constant is the same as the constant.
Without standardization, the fourth moment is
The variance of an increment is the duration of time.
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.