{"categories":["Stochastic Calculus"],"contentHtml":"<h3>Week 2</h3><h4>Lecture Notes</h4><h5>Measurability</h5><p>(continuing from last time)</p><p>A <strong>stochastic process</strong> 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.</p><p>We also have a filtration which is a collection of <math><mi>𝜎</mi></math>-algebras indexed by time. If we have enough information in the filtration to know what set your outcome is in, you get an <strong>adapted stochastic process</strong>. Mathematically, these variables are considered <math><mi>ℱ︀</mi></math>-measurable by the filtration <math><mi>ℱ︀</mi></math>.</p><h5>Independence</h5><p>Two <math><mi>𝜎</mi></math>-algebras are independent if for every element <math><mi>𝐴</mi></math> and <math><mi>𝐵</mi></math> in both <math><mi>𝜎</mi></math>-algebras:</p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝐴</mi><mo>∩</mo><mi>𝐵</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝐴</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo lspace=\"0.2222222222222222em\" rspace=\"0.2222222222222222em\">×</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝐵</mi><mo stretchy=\"false\">)</mo></math></p><p>This is a strong mathematical result, but it is not useful because most useful <math><mi>𝜎</mi></math>-algebras are infinite.</p><p>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.</p><p>We can say that two random variables are independent if the <math><mi>𝜎</mi></math>-algebras generated by them are</p><p>One useful way to do this is by determining that if one variable is measurable by a <math><mi>𝜎</mi></math>-algebra that is independent of a <math><mi>𝜎</mi></math>-algebra generated by another variable, they are independent.</p><h5>Variance</h5><p>Variance <math><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo stretchy=\"false\">)</mo></math> is defined by:</p><p><math><mi>𝑉</mi><mi>𝑎</mi><mi>𝑟</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>−</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑋</mi><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>−</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><msup><mo stretchy=\"false\">)</mo><mn>2</mn></msup></math></p><p>This variable is <strong>necessarily nonnegative</strong>, although it may be infinite. If your variance is negative, it is for sure wrong. The standard deviation of <math><mi>𝑋</mi></math> is the square root of the variance.</p><p>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 <strong>measurement of central tendency</strong>, because it measures how clustered values are around the mean.</p><h5>Covariance</h5><p>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.</p><p><math><mtext>Cov</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>,</mo><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝔼</mi><mrow><mo>{</mo><mrow><mo stretchy=\"false\">(</mo><mi>𝑋</mi><mo>−</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo>−</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo stretchy=\"false\">)</mo></mrow><mo>}</mo></mrow></math></p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msub><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝜔</mi><mo lspace=\"0em\" rspace=\"0em\">∈</mo><mi mathvariant=\"normal\">Ω</mi></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo stretchy=\"false\">)</mo></math></p><p>You’re going through every entry and seeing how much <math><mi>𝑋</mi></math> differs from its mean and <math><mi>𝑌</mi></math> differs from its mean, weighting them with their probability measure. It’s how they are different from each other <em>in the same scenario</em>.</p><p>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:</p><p><math><mi>𝜌</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>,</mo><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mfrac><mrow><mtext>Cov</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo rspace=\"0em\">,</mo><mi>𝑌</mi><mo stretchy=\"false\">)</mo></mrow><msqrt><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝕍</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo stretchy=\"false\">)</mo></msqrt></mfrac></math></p><p>If this value is 0, then they are uncorrelated. This coefficient is always <math><mo stretchy=\"false\">[</mo><mo form=\"prefix\">−</mo><mn>1</mn><mo>,</mo><mn>1</mn><mo stretchy=\"false\">]</mo></math>. −1 means perfectly inverse, and 1 means perfectly direct. This only has to do with direction, not necessarily magnitude.</p><p>Let’s consider a probability space. <math><mi>𝒢︀</mi></math> is a sub-<math><mi>𝜎</mi></math>-algebra of <math><mi>ℱ︀</mi></math>, and <math><mi>𝑋</mi></math> random variable. The <strong>conditional expectation</strong> of <math><mi>𝑋</mi></math> given <math><mi>𝒢︀</mi></math> is a random variable that is measurable i.e.&nbsp;<math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo stretchy=\"false\">]</mo></math> is <math><mi>𝒢︀</mi></math>-measurable and partial averaging</p><p>If i limited myself just to a set <math><mi>𝐴</mi></math> and I averaged <math><mi>𝑋</mi></math> over <math><mi>𝐴</mi></math>, I should get the same result as if I took the average of <math><mi>𝑋</mi></math>. Underneath this subset, if I average over the <math><mi>𝑋</mi></math> terms.</p><p><em>Conditional expectations are random variables</em>.</p><p>Technically, the condition in a conditional expectation is a <math><mi>𝜎</mi></math>-algebra.</p><p>Important theorems:</p><ol><li>Linearity of conditional expectations: <math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msub><mi>𝑐</mi><mn>1</mn></msub><mi>𝑋</mi><mo>+</mo><msub><mi>𝑐</mi><mn>2</mn></msub><mi>𝑌</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><msub><mi>𝑐</mi><mn>1</mn></msub><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><msub><mi>𝑐</mi><mn>2</mn></msub><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑌</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo stretchy=\"false\">]</mo></math> Let’s consider a situation where <math><mi>𝑋</mi></math> can take one of two values and <math><mi>𝑌</mi></math> can take one of two values, both dependent on <math><mi>𝑎</mi><mo>,</mo><mi>𝑏</mi><mo>,</mo><mi>𝑐</mi><mo>,</mo><mi>𝑑</mi></math>. If <math><mi>𝑌</mi><mo>=</mo><mn>3</mn></math>, <math><mi>𝜔</mi><mo>∈</mo><mrow><mo>{</mo><mrow><mi>𝑎</mi><mo>,</mo><mi>𝑐</mi></mrow><mo>}</mo></mrow></math>, then <math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝑌</mi><mo>=</mo><mn>3</mn><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\">∑</mo><mrow><mi>𝜔</mi><mo lspace=\"0em\" rspace=\"0em\">∈</mo><mi mathvariant=\"normal\">Ω</mi></mrow></msub><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝑌</mi><mo>=</mo><mn>3</mn><mo stretchy=\"false\">)</mo></math> and this is the same as <math><msub><mo lspace=\"0em\">∑</mo><mrow><mi>𝜔</mi><mo lspace=\"0em\" rspace=\"0em\">∈</mo><mi mathvariant=\"normal\">Ω</mi></mrow></msub><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mfrac><mrow><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo lspace=\"0em\" rspace=\"0em\">∩</mo><mrow><mo>{</mo><mrow><mi>𝑎</mi><mo rspace=\"0em\">,</mo><mi>𝑐</mi></mrow><mo>}</mo></mrow><mo stretchy=\"false\">)</mo></mrow><mrow><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mrow><mo>{</mo><mrow><mi>𝑎</mi><mo rspace=\"0em\">,</mo><mi>𝑐</mi></mrow><mo>}</mo></mrow><mo stretchy=\"false\">)</mo></mrow></mfrac></math> from Bayes theorem Knowing that Y=3, that means <math><msub><mo lspace=\"0em\">∑</mo><mrow><mi>𝜔</mi><mo lspace=\"0em\" rspace=\"0em\">∈</mo><mrow><mo>{</mo><mrow><mi>𝑎</mi><mo rspace=\"0em\">,</mo><mi>𝑐</mi></mrow><mo>}</mo></mrow></mrow></msub><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mfrac><mrow><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝜔</mi><mo stretchy=\"false\">)</mo></mrow><mrow><mn>2</mn><mi>/</mi><mn>3</mn></mrow></mfrac></math> <math><mo form=\"infix\" lspace=\"0em\">=</mo><mfrac><mn>3</mn><mn>2</mn></mfrac><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑎</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑎</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑐</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑐</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></math></li><li>We can take something that is known outside of an expectation. <math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mi>𝑌</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝑋</mi><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑌</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo stretchy=\"false\">]</mo></math></li><li>Iterated conditioning. If <math><mi>ℋ︀</mi><mo>⊂</mo><mi>𝒢︀</mi></math>, (think of this as information), then we know less information in <math><mi>ℋ︀</mi></math> than in <math><mi>𝒢︀</mi></math>. If I create a new random variable around <math><mi>𝑋</mi></math> when you condition it just on this less information set, you get: <math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝒢︀</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>ℋ︀</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>ℋ︀</mi><mo stretchy=\"false\">]</mo></math> We use iterated conditioning to complicate a process before simplifying it.</li><li>Independence: If <math><mi>𝑋</mi></math> is independent of <math><mi>𝒢︀</mi></math>, having the condition doesn’t do anything.</li><li>Conditional Jensen’s Inequality - not important</li></ol><h5>Martingale Processes</h5><p>Consider an adapted stochastic process <math><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></math>, for <math><mn>0</mn><mo>≤</mo><mi>𝑡</mi><mo>≤</mo><mi>𝑇</mi></math> where <math><mi>𝑇</mi></math> is a fixed positive number. The process needs to be such that if I know all the information up to time <math><mi>𝑠</mi></math>, 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.</p><h5>Markov</h5><p>If you have a stochastic process where for every non-negative function <math><mi>𝑓</mi></math> on the number line, there is another <math><mi>𝑔</mi></math> where you can describe the expectation for a future <math><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></math> given the information in time <math><mi>𝑠</mi></math> with <math><mi>𝑔</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑠</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></math>. 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.</p><h5>Random Walks</h5><p>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 <strong>symmetric random walk</strong> <math><mi>𝑀</mi></math>. 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:</p><p><math><msub><mi>𝑀</mi><msub><mi>𝑘</mi><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub></msub><mo>−</mo><msub><mi>𝑀</mi><msub><mi>𝑘</mi><mi>𝑖</mi></msub></msub><mo>=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><msub><mi>𝑘</mi><mi>𝑖</mi></msub><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow><msub><mi>𝑘</mi><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub></msubsup><msub><mi>𝑋</mi><mi>𝑗</mi></msub></math></p><p>This starts at plus 1 because… wasn’t listening 😓</p><p>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: <math><msubsup><mo lspace=\"0em\">∑</mo><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><msub><mi>𝑘</mi><mi>𝑖</mi></msub><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow><msub><mi>𝑘</mi><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub></msubsup><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msub><mi>𝑋</mi><mi>𝑖</mi></msub><mo stretchy=\"false\">]</mo></math></p><p>By adding these together, we can see that the expectation of the random variable is 0.</p><p>Is variance a linear operator? If it is, then <math><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝛼</mi><mi>𝑋</mi><mo>+</mo><mi>𝛽</mi><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝛼</mi><mspace width=\"0.2222em\"></mspace><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><mi>𝛽</mi><mspace width=\"0.2222em\"></mspace><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo stretchy=\"false\">)</mo></math></p><p>Using our definition of variance, this is the same as</p><p><math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝛼</mi><mi>𝑋</mi><mo>+</mo><mi>𝛽</mi><mi>𝑌</mi><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>−</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝛼</mi><mi>𝑋</mi><mo>+</mo><mi>𝛽</mi><mi>𝑌</mi><msup><mo stretchy=\"false\">]</mo><mn>2</mn></msup></math></p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msup><mi>𝛼</mi><mn>2</mn></msup><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑋</mi><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><mn>2</mn><mi>𝛼</mi><mi>𝛽</mi><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><msup><mi>𝛽</mi><mn>2</mn></msup><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑌</mi><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>−</mo><msup><mi>𝛼</mi><mn>2</mn></msup><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mn>2</mn></msup><mo>−</mo><mn>2</mn><mi>𝛼</mi><mi>𝛽</mi><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>−</mo><msup><mi>𝛽</mi><mn>2</mn></msup><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑌</mi><msup><mo stretchy=\"false\">]</mo><mn>2</mn></msup></math></p><p>and this ends up equalling, once you cancel everything out</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msup><mi>𝛼</mi><mn>2</mn></msup><mspace width=\"0.2222em\"></mspace><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><mn>2</mn><mi>𝛼</mi><mi>𝛽</mi><mspace width=\"0.2222em\"></mspace><mtext>Cov</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>,</mo><mi>𝑌</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><msup><mi>𝛽</mi><mn>2</mn></msup><mspace width=\"0.2222em\"></mspace><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo stretchy=\"false\">)</mo></math></p><p>Clearly, this is not a linear operator. Only in the scenario where the variables are independent and their coefficient is 1, i.e.&nbsp;they are independent and identically distributed (iid), do they act as if they are linear.</p><p>When we look at the random walk <math><mi>𝑀</mi></math>, 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.</p><p>What about <math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msubsup><mi>𝑋</mi><mi>𝑗</mi><mn>2</mn></msubsup><mo stretchy=\"false\">]</mo></math>? Because the negative outcome is squared, it becomes 1, which means that the variance is 1, so that the summation of variances is <math><mi>𝑙</mi><mo>−</mo><mi>𝑘</mi></math>. 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.</p><p>We can prove this symmetric random walk is a Martingale.</p><p>We need to prove for <math><mi>𝑘</mi><mo>&lt;</mo><mi>𝑙</mi></math> that</p><p><math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑙</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>ℱ︀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo stretchy=\"false\">)</mo></math></p><p>If we add a zero, nothing should happen, right?</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑙</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>ℱ︀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">]</mo></math></p><p>Now we can use the linearity of expectations to take out the <math><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo stretchy=\"false\">)</mo></math></p><p><math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑙</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>ℱ︀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>ℱ︀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">]</mo></math></p><p>for the purposes of this, <math><mi>ℱ︀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo stretchy=\"false\">)</mo></math> is the information we would know at time <math><mi>𝑘</mi></math>, and <math><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo stretchy=\"false\">)</mo></math> is definitely known with respect to that information. We also know that the difference between <math><mi>𝑀</mi></math> is the increment, and that the increment is independent of information, so we can ignore it:</p><p><math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑙</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>+</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo stretchy=\"false\">)</mo></math></p><p>We already know that the expectation of the increment is 0, so</p><p><math><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑀</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑘</mi><mo stretchy=\"false\">)</mo></math></p><h5>First Order Variation</h5><p>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 <math><mi mathvariant=\"normal\">Π</mi></math> as the partition of the process, going from <math><mrow><mo>{</mo><mrow><msub><mi>𝑡</mi><mn>0</mn></msub><mo>,</mo><msub><mi>𝑡</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑡</mi><mi>𝑛</mi></msub></mrow><mo>}</mo></mrow></math>, where this is a sequence of ordered values that ends at <math><mi>𝑡</mi></math>. Let’s get an operator called the norm which gives you the length of the biggest piece of the partition: <math><mo stretchy=\"false\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo stretchy=\"false\">|</mo></math></p><p>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:</p><p><math><mi>𝐹</mi><msub><mi>𝑉</mi><mi>𝑇</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑓</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mo stretchy=\"false\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msubsup><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">|</mo></math></p><p>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.</p><h5>Quadratic Variation</h5><p><math><mo stretchy=\"false\">[</mo><mi>𝑓</mi><mo>,</mo><mi>𝑓</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑇</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mo stretchy=\"false\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo stretchy=\"false\">)</mo><mn>2</mn></msup></math></p><p>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.</p><p>We can create a handy inequality here. We can take out the norm like this and say</p><p><math><msub><mo lspace=\"0em\" rspace=\"0em\">lim</mo><mrow><mo stretchy=\"false\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><msubsup><mo form=\"prefix\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><msup><mi>𝑓</mi><mo>′</mo></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><msubsup><mi>𝑡</mi><mi>𝑗</mi><mo>∗</mo></msubsup><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo>−</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo stretchy=\"false\">)</mo></math></p><p>is greater than or equal to the same but with the difference squared, because the norm is the largest piece.</p><p>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).</p><p>We will deal with some situations where the first order variation will be infinite, and quadratic variation will give us a more interesting result.</p><p>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</p><p><math><mi>𝐹</mi><msub><mi>𝑉</mi><mn>4</mn></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑀</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mn>4</mn></msubsup><mo lspace=\"0em\" rspace=\"0em\">|</mo><msub><mi>𝑋</mi><mi>𝑗</mi></msub><mo stretchy=\"false\">|</mo></math></p><p>so you get the total change as being 4. <strong>Open question:</strong> explain this step more clearly.</p><p>For quadratic order variation, this is</p><p><math><mo stretchy=\"false\">[</mo><mi>𝑀</mi><mo>,</mo><mi>𝑀</mi><mo form=\"postfix\" stretchy=\"false\">]</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>4</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mn>4</mn></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mi>𝑗</mi></msub><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo>=</mo><mn>4</mn></math></p><p>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.</p><h5>Scaled Symmetric Random Walk</h5><p><strong>Brownian motion</strong> 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 <strong>scaled symmetric random walk</strong>. We will take <math><mi>𝑛</mi></math> times as many steps, but the step size is decreased by <math><msqrt><mi>𝑛</mi></msqrt></math>:</p><p><math><msup><mi>𝑊</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑛</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mfrac><mn>1</mn><msqrt><mi>𝑛</mi></msqrt></mfrac><msubsup><mo form=\"prefix\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><msub><mi>𝑋</mi><mi>𝑗</mi></msub></math></p><p>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</p><p><math><mtext>Var</mtext><mspace width=\"0.2222em\"></mspace><mrow><mo>(</mo><mrow><msubsup><mo lspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mi>𝑛</mi><mi>𝑠</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><mfrac><mn>1</mn><msqrt><mi>𝑛</mi></msqrt></mfrac><msub><mi>𝑋</mi><mi>𝑗</mi></msub></mrow><mo>)</mo></mrow></math></p><p>This presents a problem for our attempt to convert between summation of variances because there is now a coefficient. But because <math><mi>𝛼</mi><mo>=</mo><mi>𝛽</mi></math> in this case, <strong>Open question:</strong> explain this conversion more clearly.</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mi>𝑛</mi><mi>𝑠</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><mfrac><mn>1</mn><mi>𝑛</mi></mfrac><mspace width=\"0.2222em\"></mspace><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mi>𝑗</mi></msub><mo stretchy=\"false\">)</mo></math></p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><mfrac><mn>1</mn><mi>𝑛</mi></mfrac><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑛</mi><mi>𝑡</mi><mo>−</mo><mi>𝑛</mi><mi>𝑠</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑡</mi><mo>−</mo><mi>𝑠</mi></math></p><p>The reason it has to be <math><msqrt><mi>𝑛</mi></msqrt></math> and not <math><mi>𝑛</mi></math> is because in this formula, the variance would be going to 0 as <math><mi>𝑛</mi></math> goes to <math><mi>∞</mi></math>.</p><p>The quadratic variation becomes <math><mi>𝑡</mi></math>, but the first order variation goes to <math><mi>∞</mi></math>.</p><h5>Normal Distribution</h5><p>We will prove that the scaled symmetric walk approaches the normal distribution. Any normal variable is defined by <math><mi>𝜇</mi></math> and <math><msup><mi>𝜎</mi><mn>2</mn></msup></math>. It also has a</p><p><math><msub><mi>𝜑</mi><mrow><msup><mi>𝑊</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑛</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑠</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑒</mi><mrow><mi>𝑠</mi><msup><mi>𝑊</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑛</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo stretchy=\"false\">]</mo></math></p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑒</mi><mrow><msubsup><mo lspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><mfrac><mi>𝑠</mi><msqrt><mi>𝑛</mi></msqrt></mfrac><msub><mi>𝑋</mi><mi>𝑗</mi></msub></mrow></msup><mo stretchy=\"false\">]</mo></math></p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><mi>𝔼</mi><mrow><mo>[</mo><mrow><msubsup><mo lspace=\"0em\">∏</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><msup><mi>𝑒</mi><mrow><mfrac><mi>𝑠</mi><msqrt><mi>𝑛</mi></msqrt></mfrac><msub><mi>𝑋</mi><mi>𝑗</mi></msub></mrow></msup></mrow><mo>]</mo></mrow></math></p><p>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:</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\">∏</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><mi>𝔼</mi><mrow><mo>[</mo><msup><mi>𝑒</mi><mrow><mfrac><mi>𝑠</mi><msqrt><mi>𝑛</mi></msqrt></mfrac><msub><mi>𝑋</mi><mi>𝑗</mi></msub></mrow></msup><mo>]</mo></mrow></math></p><p>Important: understand what’s random and what’s not. <math><msub><mi>𝑋</mi><mi>𝑗</mi></msub></math> only is random. Given the expectation of <math><msub><mi>𝑋</mi><mi>𝑗</mi></msub></math> being known:</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∏</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>1</mn></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msubsup><mrow><mo>(</mo><mrow><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mfrac><mi>𝑠</mi><msqrt><mi>𝑛</mi></msqrt></mfrac></msup><mo>+</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mo>−</mo><mfrac><mi>𝑠</mi><msqrt><mi>𝑛</mi></msqrt></mfrac></mrow></msup></mrow><mo>)</mo></mrow></math></p><p>this is the same as</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msup><mrow><mo>(</mo><mrow><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mi>𝑠</mi><mi>/</mi><msqrt><mi>𝑛</mi></msqrt></mrow></msup><mo>+</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mo>−</mo><mi>𝑠</mi><mi>/</mi><msqrt><mi>𝑛</mi></msqrt></mrow></msup></mrow><mo>)</mo></mrow><mrow><mi>𝑛</mi><mi>𝑡</mi></mrow></msup></math></p><p>This is the moment generating function</p><p>We are trying to prove that</p><p><math><msub><mo lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mi>∞</mi></mrow></msub><msub><mi>𝜑</mi><mrow><msup><mi>𝑊</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑛</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑠</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msup><mi>𝑒</mi><mrow><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑠</mi><mn>2</mn></msup><mi>𝑡</mi></mrow></msup></math></p><p>because this means that the walk is normally distributed. We can take the natural log of both sides</p><p><math><msub><mo lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mi>∞</mi></mrow></msub><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">log</mo><mrow><mo>(</mo><mrow><msub><mi>𝜑</mi><mrow><msup><mi>𝑊</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑛</mi><mo stretchy=\"false\">)</mo></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑠</mi><mo stretchy=\"false\">)</mo></mrow><mo>)</mo></mrow><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑠</mi><mn>2</mn></msup><mi>𝑡</mi></math></p><p>Let’s make a convenience variable <math><mi>𝑥</mi></math></p><p><math><mi>𝑥</mi><mo>=</mo><mfrac><mn>1</mn><msqrt><mi>𝑛</mi></msqrt></mfrac></math></p><p>We are satisfied that the limit of <math><mi>𝑛</mi></math> going to <math><mi>∞</mi></math> is the same as <math><mi>𝑥</mi></math> going to 0.</p><p><math><msub><mo lspace=\"0em\" rspace=\"0em\">lim</mo><mrow><mi>𝑥</mi><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><msup><mn>0</mn><mo>+</mo></msup></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mfrac><mi>𝑡</mi><msup><mi>𝑥</mi><mn>2</mn></msup></mfrac><mo form=\"prefix\" lspace=\"0.16666666666666666em\" rspace=\"0em\">log</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mi>𝑠</mi><mi>𝑥</mi></mrow></msup><mo>+</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mo>−</mo><mi>𝑠</mi><mi>𝑥</mi></mrow></msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></math></p><p>this results in a 0/0, which is undesirable. In order to get rid of this situation, we will apply L’Hopital’s rule.</p><p><math><mover><mo form=\"infix\" lspace=\"0em\">=</mo><mi>𝐿</mi></mover><mfrac><mrow><mi>𝑠</mi><mi>𝑡</mi></mrow><mn>2</mn></mfrac><msub><mo form=\"prefix\" lspace=\"0.16666666666666666em\" rspace=\"0em\">lim</mo><mrow><mi>𝑥</mi><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><msup><mn>0</mn><mo>+</mo></msup></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mfrac><mrow><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mi>𝑠</mi><mi>𝑥</mi></mrow></msup><mo lspace=\"0em\" rspace=\"0em\">−</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mi>𝑒</mi><mrow><mo>−</mo><mi>𝑠</mi><mi>𝑥</mi></mrow></msup></mrow><mi>𝑥</mi></mfrac><mo stretchy=\"false\">)</mo></math></p><p>which is still indeterminate, so we will apply it once again, which will give us the normal distribution</p><p><strong>Open question:</strong> copy the limiting argument from the video.</p><h5>Brownian Motion</h5><p>Suppose there is a continuous function <math><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑡</mi><mo stretchy=\"false\">)</mo></math> which starts at <math><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>0</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mn>0</mn></math> and depends on <math><mi>𝜔</mi></math>. We have increments that are independent and each of the increments are normally distributed. The expectation is 0, and the variation is <math><msub><mi>𝑡</mi><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo>−</mo><msub><mi>𝑡</mi><mi>𝑖</mi></msub></math>. The quadratic variation of Brownian motion is known to be <math><mi>𝑡</mi></math>. Because this is a continuous, non-differentiable variable, its first order variation goes to infinity.</p><p>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.</p><p>We have a sample quadratic variation for a random partition</p><p><math><msub><mi>𝑄</mi><mi mathvariant=\"normal\">Π</mi></msub><mo>=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑤</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo stretchy=\"false\">)</mo><mn>2</mn></msup></math></p><p>We will make more intricate partitions as we go on so that the limit approaches 0.</p><p>I want to show that</p><p><math><msub><mo lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mo stretchy=\"false\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msub><mi>𝑄</mi><mi mathvariant=\"normal\">Π</mi></msub><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑇</mi><mo stretchy=\"false\">]</mo></math></p><p>where <math><mi>𝑇</mi></math> is a constant. Because <math><mi>𝑇</mi></math> is a constant, expectation is itself and variance is 0. We can then show that we want <math><msub><mi>𝑄</mi><mi mathvariant=\"normal\">Π</mi></msub></math> to approach both the variance and the value of <math><mi>𝑇</mi></math>.</p><p><math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msub><mi>𝑄</mi><mi mathvariant=\"normal\">Π</mi></msub><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msubsup><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo stretchy=\"false\">]</mo></math></p><p>We can use the linearity of expectation to get</p><p><math><mo form=\"infix\" lspace=\"0em\">=</mo><msubsup><mo form=\"prefix\" lspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msubsup><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo stretchy=\"false\">]</mo></math></p><p>Using our previous definition of variance as</p><p><math><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msup><mi>𝑋</mi><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mi>𝑋</mi><msup><mo stretchy=\"false\">]</mo><mn>2</mn></msup></math></p><p>We know that the mean of the increment of Brownian motion is 0 and its variation is time <math><mi>𝑡</mi></math>.</p><p>So this becomes</p><p><math><msubsup><mo lspace=\"0em\" rspace=\"0em\">∑</mo><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">=</mo><mn>0</mn></mrow><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msubsup><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo>−</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑡</mi></math></p><p>therefore,</p><p><math><msub><mo lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mo stretchy=\"false\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\">|</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><msub><mi>𝑄</mi><mi mathvariant=\"normal\">Π</mi></msub><mo form=\"postfix\" stretchy=\"false\">]</mo><mo>=</mo><mi>𝑡</mi></math></p><p>because the limit of a constant is the same as the constant.</p><p><math><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝔼</mi><mo form=\"prefix\" stretchy=\"false\">[</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>−</mo><mi>𝑊</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>4</mn></msup><mo stretchy=\"false\">]</mo></math></p><p>Without standardization, the fourth moment is <math><mn>3</mn><msup><mi>𝜎</mi><mn>4</mn></msup></math></p><p>The variance of an increment is the duration of time.</p><p><math><msub><mo lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mo form=\"infix\" lspace=\"0em\" rspace=\"0em\">∥</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">∥</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><mtext>Var</mtext><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑄</mi><mi mathvariant=\"normal\">Π</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mn>2</mn><msub><mo form=\"prefix\" lspace=\"0.16666666666666666em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mo form=\"infix\" lspace=\"0em\" rspace=\"0em\">∥</mo><mi mathvariant=\"normal\">Π</mi><mo lspace=\"0em\" rspace=\"0em\">∥</mo><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mn>0</mn></mrow></msub><msub><mo form=\"prefix\" lspace=\"0em\" rspace=\"0em\">∑</mo><mi>𝑗</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑡</mi><mrow><mi>𝑗</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mo>−</mo><msub><mi>𝑡</mi><mi>𝑗</mi></msub><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo>=</mo><mn>0</mn></math></p><p>We have derived the quadratic variation of time. 🤯</p><p>Time is a continuous, differentiable function, so it’s 0.</p><p>Overall: we have determined that the quadratic variation of Brownian motion is equal to the time <em>almost surely</em>, since any individual continuous differentiable function formed by Brownian motion has probability 0 of occurring.</p>","contentSourceFormat":"typst","contentTypst":"== Week 2\n<week-2>\n=== Lecture Notes\n<lecture-notes>\n==== Measurability\n<measurability>\n\\(continuing from last time)\n\nA #strong[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.\n\nWe also have a filtration which is a collection of $sigma$-algebras indexed by time. If we have enough information in the filtration to know what set your outcome is in, you get an #strong[adapted stochastic process]. Mathematically, these variables are considered $cal(F)$-measurable by the filtration $cal(F)$.\n\n==== Independence\n<independence>\nTwo $sigma$-algebras are independent if for every element $A$ and $B$ in both $sigma$-algebras:\n\n$bb(P)\\(A inter B\\)= bb(P)\\(A\\)times bb(P)\\(B\\)$\n\nThis is a strong mathematical result, but it is not useful because most useful $sigma$-algebras are infinite.\n\nBUt 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.\n\nWe can say that two random variables are independent if the $sigma$-algebras generated by them are\n\nOne useful way to do this is by determining that if one variable is measurable by a $sigma$-algebra that is independent of a $sigma$-algebra generated by another variable, they are independent.\n\n==== Variance\n<variance>\nVariance $bb(V)\\(X\\)$ is defined by:\n\n$V a r\\(X\\)= bb(V)\\(X\\)= bb(E)\\[\\(X - bb(E)\\[X\\]\\)^2\\]= bb(E)\\[X^2\\]-\\(bb(E)\\[X\\]\\)^2$\n\nThis variable is #strong[necessarily nonnegative], although it may be infinite. If your variance is negative, it is for sure wrong. The standard deviation of $X$ is the square root of the variance.\n\nThe 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 #strong[measurement of central tendency], because it measures how clustered values are around the mean.\n\n==== Covariance\n<covariance>\nWe 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.\n\n$\"Cov\"\\(X\\,Y\\)= bb(E) {\\(X - bb(E)\\[X\\]\\)\\(Y - bb(E)\\[Y\\]\\)}$\n\n$= sum_(omega in Omega)\\(X\\(omega\\)- bb(E)\\[X\\]\\)\\(Y\\(omega\\)- bb(E)\\[Y\\]\\)bb(P)\\(omega\\)$\n\nYou're going through every entry and seeing how much $X$ differs from its mean and $Y$ differs from its mean, weighting them with their probability measure. It's how they are different from each other #emph[in the same scenario].\n\nWe 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:\n\n$rho\\(X\\,Y\\)= frac(\"Cov\"\\(X\\,Y\\), sqrt(bb(V)\\(X\\)bb(V)\\(Y\\)))$\n\nIf 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.\n\nLet's consider a probability space. $cal(G)$ is a sub-$sigma$-algebra of $cal(F)$, and $X$ random variable. The #strong[conditional expectation] of $X$ given $cal(G)$ is a random variable that is measurable i.e.~$bb(E)\\[X\\|cal(G)\\]$ is $cal(G)$-measurable and partial averaging\n\nIf i limited myself just to a set $A$ and I averaged $X$ over $A$, I should get the same result as if I took the average of $X$. Underneath this subset, if I average over the $X$ terms.\n\n#emph[Conditional expectations are random variables].\n\nTechnically, the condition in a conditional expectation is a $sigma$-algebra.\n\nImportant theorems:\n\n+ Linearity of conditional expectations: $bb(E)\\[c_1 X + c_2 Y\\|cal(G)\\]= c_1 bb(E)\\[X\\|cal(G)\\]+ c_2 bb(E)\\[Y\\|cal(G)\\]$ Let's consider a situation where $X$ can take one of two values and $Y$ can take one of two values, both dependent on $a\\,b\\,c\\,d$. If $Y = 3$, $omega in { a\\,c }$, then $bb(E)\\[X\\|Y = 3\\]= sum_(omega in Omega) X\\(omega\\)bb(P)\\(omega\\|Y = 3\\)$ and this is the same as $sum_(omega in Omega) X\\(omega\\)frac(bb(P)\\(omega inter { a\\,c }\\), bb(P)\\({ a\\,c }\\))$ from Bayes theorem Knowing that Y=3, that means $sum_(omega in { a\\,c }) X\\(omega\\)frac(bb(P)\\(omega\\), 2\\/3)$ $= 3 / 2\\(X\\(a\\)bb(P)\\(a\\)+ X\\(c\\)bb(P)\\(c\\)\\)$\n+ We can take something that is known outside of an expectation. $bb(E)\\[X Y\\|cal(G)\\]= X bb(E)\\[Y\\|cal(G)\\]$\n+ Iterated conditioning. If $cal(H) subset cal(G)$, (think of this as information), then we know less information in $cal(H)$ than in $cal(G)$. If I create a new random variable around $X$ when you condition it just on this less information set, you get: $bb(E)\\[bb(E)\\[X\\|cal(G)\\]\\|cal(H)\\]= bb(E)\\[X\\|cal(H)\\]$ We use iterated conditioning to complicate a process before simplifying it.\n+ Independence: If $X$ is independent of $cal(G)$, having the condition doesn't do anything.\n+ Conditional Jensen's Inequality - not important\n\n==== Martingale Processes\n<martingale-processes>\nConsider an adapted stochastic process $M\\(t\\)$, for $0 lt.eq t lt.eq T$ where $T$ is a fixed positive number. The process needs to be such that if I know all the information up to time $s$, 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.\n\n==== Markov\n<markov>\nIf you have a stochastic process where for every non-negative function $f$ on the number line, there is another $g$ where you can describe the expectation for a future $f\\(X\\(t\\)\\)$ given the information in time $s$ with $g\\(X\\(s\\)\\)$. 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.\n\n==== Random Walks\n<random-walks>\nWe 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 #strong[symmetric random walk] $M$. 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:\n\n$M_(k_(i + 1)) - M_(k_i) = sum_(j = k_i + 1)^(k_(i + 1)) X_j$\n\nThis starts at plus 1 because… wasn't listening 😓\n\nIf we want to calculate the expected value of this, we can use the linearity of expectation to bring the expectation into the random variable: $sum_(i = k_i + 1)^(k_(i + 1)) bb(E)\\[X_i\\]$\n\nBy adding these together, we can see that the expectation of the random variable is 0.\n\nIs variance a linear operator? If it is, then $\"Var\"\\(alpha X + beta Y\\)= alpha \"Var\"\\(X\\)+ beta \"Var\"\\(Y\\)$\n\nUsing our definition of variance, this is the same as\n\n$bb(E)\\[\\(alpha X + beta Y\\)^2\\]- bb(E)\\[alpha X + beta Y\\]^2$\n\n$= alpha^2 bb(E)\\[X^2\\]+ 2 alpha beta bb(E)\\[X Y\\]+ beta^2 bb(E)\\[Y^2\\]- alpha^2 bb(E)\\[X\\]^2- 2 alpha beta bb(E)\\[X\\]bb(E)\\[Y\\]- beta^2 bb(E)\\[Y\\]^2$\n\nand this ends up equalling, once you cancel everything out\n\n$= alpha^2 \"Var\"\\(X\\)+ 2 alpha beta \"Cov\"\\(X\\,Y\\)+ beta^2 \"Var\"\\(Y\\)$\n\nClearly, 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.\n\nWhen we look at the random walk $M$, 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.\n\nWhat about $bb(E)\\[X_j^2\\]$? Because the negative outcome is squared, it becomes 1, which means that the variance is 1, so that the summation of variances is $l - k$. 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.\n\nWe can prove this symmetric random walk is a Martingale.\n\nWe need to prove for $k < l$ that\n\n$bb(E)\\[M\\(l\\)\\|cal(F)\\(k\\)\\]= M\\(k\\)$\n\nIf we add a zero, nothing should happen, right?\n\n$= bb(E)\\[M\\(l\\)- M\\(k\\)+ M\\(k\\)\\|cal(F)\\(k\\)\\]$\n\nNow we can use the linearity of expectations to take out the $M\\(k\\)$\n\n$bb(E)\\[M\\(l\\)- M\\(k\\)\\|cal(F)\\(k\\)\\]+ bb(E)\\[M\\(k\\)\\|cal(F)\\(k\\)\\]$\n\nfor the purposes of this, $cal(F)\\(k\\)$ is the information we would know at time $k$, and $M\\(k\\)$ is definitely known with respect to that information. We also know that the difference between $M$ is the increment, and that the increment is independent of information, so we can ignore it:\n\n$bb(E)\\[M\\(l\\)- M\\(k\\)\\]+ M\\(k\\)$\n\nWe already know that the expectation of the increment is 0, so\n\n$M\\(k\\)= M\\(k\\)$\n\n==== First Order Variation\n<first-order-variation>\nThis is the total change of the process. The first order variation in a function is the change in the y-axis. We'll consider $Pi$ as the partition of the process, going from ${ t_0\\,t_1\\,dots.h\\,t_n }$, where this is a sequence of ordered values that ends at $t$. Let's get an operator called the norm which gives you the length of the biggest piece of the partition: $\\|\\|Pi\\|\\|$\n\nWe 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:\n\n$F V_T\\(f\\)= lim_(\\|\\|Pi\\|\\|arrow.r 0) sum_(j = 0)^(n - 1)\\|f\\(t_(j + 1)\\)- f\\(t_j\\)\\|$\n\nFor 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.\n\n==== Quadratic Variation\n<quadratic-variation>\n$\\[f\\,f\\]\\(T\\)= lim_(\\|\\|Pi\\|\\|arrow.r 0) sum_(j = 0)^(n - 1)\\(f\\(t_(j + 1)\\)- f\\(t_j\\)\\)^2$\n\nDoes 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.\n\nWe can create a handy inequality here. We can take out the norm like this and say\n\n$lim_(\\|\\|Pi\\|\\|arrow.r 0)\\|\\|Pi\\|\\|sum_(j = 0)^(n - 1)\\(f'\\(t_j^(*)\\)\\)^2\\(t_(j + 1) - t_j\\)$\n\nis greater than or equal to the same but with the difference squared, because the norm is the largest piece.\n\nAnd 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).\n\nWe will deal with some situations where the first order variation will be infinite, and quadratic variation will give us a more interesting result.\n\nThe 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\n\n$F V_4\\(M\\)= sum_(j = 1)^4\\|X_j\\|$\n\nso you get the total change as being 4. #strong[Open question:] explain this step more clearly.\n\nFor quadratic order variation, this is\n\n$\\[M\\,M\\]\\(4\\)= sum_(j = 1)^4\\(X_j\\)^2= 4$\n\nThis 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.\n\n==== Scaled Symmetric Random Walk\n<scaled-symmetric-random-walk>\n#strong[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 #strong[scaled symmetric random walk]. We will take $n$ times as many steps, but the step size is decreased by $sqrt(n)$:\n\n$W^(\\(n\\))\\(t\\)= 1 / sqrt(n) sum_(j = 1)^(n t) X_j$\n\nWe 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\n\n$\"Var\" (sum_(j = n s + 1)^(n t) 1 / sqrt(n) X_j)$\n\nThis presents a problem for our attempt to convert between summation of variances because there is now a coefficient. But because $alpha = beta$ in this case, #strong[Open question:] explain this conversion more clearly.\n\n$= sum_(j = n s + 1)^(n t) 1 / n \"Var\"\\(X_j\\)$\n\n$= 1 / n\\(n t - n s\\)= t - s$\n\nThe reason it has to be $sqrt(n)$ and not $n$ is because in this formula, the variance would be going to 0 as $n$ goes to $oo$.\n\nThe quadratic variation becomes $t$, but the first order variation goes to $oo$.\n\n==== Normal Distribution\n<normal-distribution>\nWe will prove that the scaled symmetric walk approaches the normal distribution. Any normal variable is defined by $mu$ and $sigma^2$. It also has a\n\n$phi_(W^(\\(n\\))\\(t\\))\\(s\\)= bb(E)\\[e^(s W^(\\(n\\))\\(t\\))\\]$\n\n$= bb(E)\\[e^(sum_(j = 1)^(n t) s / sqrt(n) X_j)\\]$\n\n$= bb(E) [product_(j = 1)^(n t) e^(s / sqrt(n) X_j)]$\n\nThis 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:\n\n$= product_(j = 1)^(n t) bb(E) [e^(s / sqrt(n) X_j)]$\n\nImportant: understand what's random and what's not. $X_j$ only is random. Given the expectation of $X_j$ being known:\n\n$= product_(j = 1)^(n t) (1 / 2 e^(s / sqrt(n)) + 1 / 2 e^(- s / sqrt(n)))$\n\nthis is the same as\n\n$= (1 / 2 e^(s\\/sqrt(n)) + 1 / 2 e^(- s\\/sqrt(n)))^(n t)$\n\nThis is the moment generating function\n\nWe are trying to prove that\n\n$lim_(n arrow.r oo) phi_(W^(\\(n\\))\\(t\\))\\(s\\)= e^(1 / 2 s^2 t)$\n\nbecause this means that the walk is normally distributed. We can take the natural log of both sides\n\n$lim_(n arrow.r oo) log (phi_(W^(\\(n\\))\\(t\\)) \\( s \\)) = 1 / 2 s^2 t$\n\nLet's make a convenience variable $x$\n\n$x = 1 / sqrt(n)$\n\nWe are satisfied that the limit of $n$ going to $oo$ is the same as $x$ going to 0.\n\n$lim_(x arrow.r 0^(+))\\(t / x^2 log\\(1 / 2 e^(s x) + 1 / 2 e^(- s x)\\)\\)$\n\nthis results in a 0/0, which is undesirable. In order to get rid of this situation, we will apply L'Hopital's rule.\n\n$=^L frac(s t, 2) lim_(x arrow.r 0^(+))\\(frac(1 / 2 e^(s x) - 1 / 2 e^(- s x), x)\\)$\n\nwhich is still indeterminate, so we will apply it once again, which will give us the normal distribution\n\n#strong[Open question:] copy the limiting argument from the video.\n\n==== Brownian Motion\n<brownian-motion>\nSuppose there is a continuous function $W\\(t\\)$ which starts at $W\\(0\\)= 0$ and depends on $omega$. We have increments that are independent and each of the increments are normally distributed. The expectation is 0, and the variation is $t_(i + 1) - t_i$. The quadratic variation of Brownian motion is known to be $t$. Because this is a continuous, non-differentiable variable, its first order variation goes to infinity.\n\nLet'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.\n\nWe have a sample quadratic variation for a random partition\n\n$Q_Pi = sum_(j = 0)^(n - 1)\\(w\\(t_(j + 1)\\)- W\\(t_j\\)\\)^2$\n\nWe will make more intricate partitions as we go on so that the limit approaches 0.\n\nI want to show that\n\n$lim_(\\|\\|Pi\\|\\|arrow.r 0) bb(E)\\[Q_Pi\\]= bb(E)\\[T\\]$\n\nwhere $T$ is a constant. Because $T$ is a constant, expectation is itself and variance is 0. We can then show that we want $Q_Pi$ to approach both the variance and the value of $T$.\n\n$bb(E)\\[Q_Pi\\]= bb(E)\\[sum_(j = 0)^(n - 1)\\(W\\(t_(j + 1)\\)- W\\(t_j\\)\\)^2\\]$\n\nWe can use the linearity of expectation to get\n\n$= sum_(j = 0)^(n - 1) bb(E)\\[\\(W\\(t_(j + 1)\\)- W\\(t_j\\)\\)^2\\]$\n\nUsing our previous definition of variance as\n\n$bb(E)\\[X^2\\]= \"Var\"\\(X\\)+ bb(E)\\[X\\]^2$\n\nWe know that the mean of the increment of Brownian motion is 0 and its variation is time $t$.\n\nSo this becomes\n\n$sum_(j = 0)^(n + 1)\\(t_(j + 1) - t_j\\)= t$\n\ntherefore,\n\n$lim_(\\|\\|Pi\\|\\|arrow.r 0) bb(E)\\[Q_Pi\\]= t$\n\nbecause the limit of a constant is the same as the constant.\n\n$\"Var\"\\(\\(W\\(t_(j + 1)\\)- W\\(t_j\\)\\)^2\\)= bb(E)\\[\\(W\\(t_(j + 1)\\)- W\\(t_j\\)\\)^4\\]$\n\nWithout standardization, the fourth moment is $3 sigma^4$\n\nThe variance of an increment is the duration of time.\n\n$lim_(parallel Pi parallel arrow.r 0) \"Var\"\\(Q_Pi\\)= 2 lim_(parallel Pi parallel arrow.r 0) sum_j\\(t_(j + 1) - t_j\\)^2= 0$\n\nWe have derived the quadratic variation of time. 🤯\n\nTime is a continuous, differentiable function, so it's 0.\n\nOverall: we have determined that the quadratic variation of Brownian motion is equal to the time #emph[almost surely], since any individual continuous differentiable function formed by Brownian motion has probability 0 of occurring.","dataUrl":"https://sharifhsn.dev/api/posts/martingales-and-random-walks.json","date":"2024-09-19","datePublished":"2024-09-19","description":"(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,…","site":"https://sharifhsn.dev","slug":"martingales-and-random-walks","source":"FE-610 | Stochastic Calculus","sourceUrl":null,"tags":["Stochastic Calculus","Martingales","Random Walks"],"title":"Martingales and Random Walks","url":"https://sharifhsn.dev/blog/martingales-and-random-walks/","version":"1","wordCount":3819}