{"categories":["Probability Theory"],"contentHtml":"<h3>Week 10</h3><h4>Lecture Notes</h4><h5>Random Vectors</h5><p>Beginning chapter 7, vectors of random variables. We are concerned with a <strong>random vector</strong></p><p><math><mi>𝑋</mi><mo>=</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑋</mi><mi>𝑁</mi></msub><mo stretchy=\"false\">)</mo></math></p><p>The cdf of this vector is</p><p><math><msub><mi>𝐹</mi><mi>𝑋</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑁</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mn>1</mn></msub><mo>≤</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><msub><mi>𝑋</mi><mi>𝑁</mi></msub><mo>≤</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo stretchy=\"false\">)</mo></math></p><p>We can also say that if we have a random vector (X, Y) then</p><p>If you compute joint cdf, we can get marginal distribution (distribution for a subset, maybe one element) very easily</p><p><math><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><mi>𝑦</mi><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mi>∞</mi></mrow></msub><msub><mi>𝐹</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑋</mi><mo rspace=\"0em\">,</mo><mi>𝑌</mi><mo stretchy=\"false\">)</mo></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑥</mi><mo>,</mo><mi>𝑦</mi><mo stretchy=\"false\">)</mo></math></p><p>and equivalently</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><msub><mo form=\"prefix\" lspace=\"0em\" rspace=\"0.16666666666666666em\">lim</mo><mrow><mi>𝑦</mi><mo lspace=\"0em\" rspace=\"0em\" stretchy=\"false\">→</mo><mi>∞</mi></mrow></msub><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>≤</mo><mi>𝑥</mi><mo>,</mo><mi>𝑌</mi><mo>≤</mo><mi>𝑦</mi><mo stretchy=\"false\">)</mo></math></p><p>Remark 7.7 says components of vectors are independent</p><p>These results hold for every random vector.</p><h5>Discrete Random Vectors</h5><p>Now we will talk about <strong>discrete random vectors</strong>.</p><p>The formal definition 7.8 says that the rv is discrete when the image set <math><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi mathvariant=\"normal\">Ω</mi><mo stretchy=\"false\">)</mo></math> is a finite or countable subset of <math><msup><mi>ℝ</mi><mi>𝑛</mi></msup></math>, the product space between n different real number lines.</p><p>The pmf for a discrete random vector is given by the basic formula</p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mn>1</mn></msub><mo>=</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><msub><mi>𝑋</mi><mi>𝑁</mi></msub><mo>=</mo><msub><mi>𝑥</mi><mi>𝑁</mi></msub><mo stretchy=\"false\">)</mo></math></p><p>The density dictates that the sum must be 1.</p><p><math><msub><mo lspace=\"0em\">∑</mo><mrow><mi>𝑥</mi><mo lspace=\"0em\" rspace=\"0em\">∈</mo><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi mathvariant=\"normal\">Ω</mi><mo stretchy=\"false\">)</mo></mrow></msub><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mi>𝑥</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mn>1</mn></math></p><p>Then the cdf is</p><p><math><msub><mi>𝐹</mi><mi>𝑋</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\">∑</mo><mrow><msub><mi>𝑢</mi><mn>1</mn></msub><mo lspace=\"0em\" rspace=\"0em\">≤</mo><msub><mi>𝑥</mi><mn>1</mn></msub></mrow></msub><mi>…</mi><msub><mo form=\"prefix\">∑</mo><mrow><msub><mi>𝑢</mi><mi>𝑁</mi></msub><mo lspace=\"0em\" rspace=\"0em\">≤</mo><msub><mi>𝑥</mi><mi>𝑁</mi></msub></mrow></msub><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mn>1</mn></msub><mo>=</mo><msub><mi>𝑢</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑋</mi><mi>𝑁</mi></msub><mo>=</mo><msub><mi>𝑢</mi><mi>𝑁</mi></msub><mo stretchy=\"false\">)</mo></math></p><p>In order to intuitively understand why the marginal distribution calculation works for joint distribution, imagine a table of values, which has the probability for each event in the sample space. The rows are of the first random variable’s sample space, and the columns are for the second. Then, in order to calculate the probability of an event happening for the second random variable, you need to total all the probabilities from each row in the table.</p><h5>Independence</h5><p>Example 7.4</p><p>We have (X, Y) random vector. where</p><p><math><mi>𝑋</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi mathvariant=\"normal\">Ω</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑌</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi mathvariant=\"normal\">Ω</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mrow><mo>{</mo><mrow><mn>0</mn><mo>,</mo><mn>1</mn></mrow><mo>}</mo></mrow></math></p><p>and</p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>𝑌</mi><mo>=</mo><mn>0</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi><msup><mo stretchy=\"false\">)</mo><mn>2</mn></msup></math></p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>1</mn><mo>,</mo><mi>𝑌</mi><mo>=</mo><mn>1</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msup><mi>𝑝</mi><mn>2</mn></msup></math></p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>𝑌</mi><mo>=</mo><mn>1</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>1</mn><mo>,</mo><mi>𝑌</mi><mo>=</mo><mn>0</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑝</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi><mo stretchy=\"false\">)</mo></math></p><p>How do we prove independence?</p><p>We need to prove</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><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝐵</mi><mo stretchy=\"false\">)</mo></math></p><p>or for joint distributions,</p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mi>𝑥</mi><mo>,</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>=</mo><mi>𝑥</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo>=</mo><mi>𝑦</mi><mo stretchy=\"false\">)</mo></math></p><p>We can use the marginal distribution calculation for this.</p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>0</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>𝑌</mi><mo>=</mo><mn>0</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>+</mo><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>0</mn><mo>,</mo><mi>𝑌</mi><mo>=</mo><mn>1</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi><msup><mo form=\"postfix\" stretchy=\"false\">)</mo><mn>2</mn></msup><mo>+</mo><mi>𝑝</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi></math></p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo>=</mo><mn>1</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msup><mi>𝑝</mi><mn>2</mn></msup><mo>+</mo><mi>𝑝</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑝</mi></math></p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo>=</mo><mn>0</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mn>1</mn><mo>−</mo><mi>𝑝</mi></math></p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑌</mi><mo>=</mo><mn>1</mn><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mi>𝑝</mi></math></p><p>And then now you can verify for each combination of different X and Y that the independence equality holds. Left as exercise for reader 😅</p><h5>Continuous Random Vectors</h5><p>We can consider any function <math><mi>𝑓</mi><mo lspace=\"0.2777777777777778em\" rspace=\"0.2777777777777778em\">:</mo><msup><mi>ℝ</mi><mi>𝑛</mi></msup><mo stretchy=\"false\">→</mo><mi>ℝ</mi></math> a density if it’s positive and</p><p><math><msub><mo lspace=\"0em\">∫</mo><msup><mi>ℝ</mi><mi>𝑛</mi></msup></msub><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑥</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝑑</mi><mi>𝑥</mi><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\">∫</mo><msub><mi>ℝ</mi><mn>1</mn></msub></msub><mi>…</mi><msub><mo form=\"prefix\">∫</mo><msub><mi>ℝ</mi><mi>𝑁</mi></msub></msub><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝑑</mi><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mi>𝑑</mi><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo>=</mo><mn>1</mn></math></p><p>We can say that the random vector has this density given by f if</p><p><math><mi>ℙ</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑋</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><msub><mi>𝑋</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>∈</mo><mi>𝐷</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\">∫</mo><mi>𝐷</mi></msub><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝑑</mi><msub><mi>𝑥</mi><mn>1</mn></msub><mi>…</mi><mi>𝑑</mi><msub><mi>𝑥</mi><mi>𝑛</mi></msub></math></p><p>Where D is the product space. And in fact, for the cdf, this D is the Borel set</p><p>For the marginal density, instead of a summation of all the others, you actually do the integral of all the others</p><p><math><msub><mi>𝑓</mi><msub><mi>𝑥</mi><mi>𝑖</mi></msub></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mi>𝑖</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\">∫</mo><msup><mi>ℝ</mi><mrow><mi>𝑛</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msup></msub><mi>𝑓</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝑑</mi><msub><mi>𝑥</mi><mn>1</mn></msub><mi>…</mi><mi>𝑑</mi><msub><mi>𝑥</mi><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mn>1</mn></mrow></msub><mi>𝑑</mi><msub><mi>𝑥</mi><mrow><mi>𝑖</mi><mo lspace=\"0em\" rspace=\"0em\">+</mo><mn>1</mn></mrow></msub><mi>…</mi><mi>𝑑</mi><msub><mi>𝑥</mi><mi>𝑛</mi></msub></math></p><h5>Uniformly Distributed Vector</h5><p>The joint density function is given by</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><mn>1</mn><mrow><mo stretchy=\"false\">(</mo><mi>𝑏</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mi>𝑎</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑑</mi><mo lspace=\"0em\" rspace=\"0em\">−</mo><mi>𝑐</mi><mo stretchy=\"false\">)</mo></mrow></mfrac><msub><mi>𝕀</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑎</mi><mo rspace=\"0em\">,</mo><mi>𝑏</mi><mo stretchy=\"false\">]</mo></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑥</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><msub><mi>𝕀</mi><mrow><mo stretchy=\"false\">(</mo><mi>𝑐</mi><mo rspace=\"0em\">,</mo><mi>𝑑</mi><mo stretchy=\"false\">]</mo></mrow></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑦</mi><mo stretchy=\"false\">)</mo></math></p><h5>Two Dimensional Normal</h5><p>The mapping which is given by</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><mn>1</mn><mrow><mn>2</mn><mi>𝜋</mi></mrow></mfrac><msup><mi>𝑒</mi><mrow><mo>−</mo><mfrac><mrow><msup><mi>𝑥</mi><mn>2</mn></msup><mo lspace=\"0em\" rspace=\"0em\">+</mo><msup><mi>𝑦</mi><mn>2</mn></msup></mrow><mn>2</mn></mfrac></mrow></msup></math></p><p>This is for both variables being (N(0, 1)).</p><p>If we want to prove that a function is a density, we need to prove only positivity and equivalence to one on the integral over the interval.</p><h5>Change of Variable</h5><p>Let’s take a random vector X with density <math><msub><mi>𝑓</mi><mi>𝑋</mi></msub></math>, and <math><mi>𝑌</mi><mo>=</mo><mi>𝜑</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑋</mi><mo stretchy=\"false\">)</mo></math> where this function is a multivariate function that transforms X. The density of Y is, in the most general case,</p><p><math><msub><mi>𝑓</mi><mi>𝑌</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑦</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><msub><mi>𝑓</mi><mi>𝑋</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msup><mi>𝜑</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑦</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"postfix\" stretchy=\"false\">)</mo><mrow><mo>|</mo><mrow><mo lspace=\"0em\" rspace=\"0em\">det</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝐽</mi><mo form=\"prefix\" stretchy=\"false\">(</mo><msup><mi>𝜑</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑦</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></mrow><mo>|</mo></mrow></math></p><p>J the Jacobian is a matrix of partials, from</p><p><math><mfrac><mrow><mi>𝜕</mi><msub><mi>𝜑</mi><mn>1</mn></msub></mrow><mrow><mi>𝜕</mi><msub><mi>𝑥</mi><mn>1</mn></msub></mrow></mfrac><mi>…</mi><mfrac><mrow><mi>𝜕</mi><msub><mi>𝜑</mi><mn>1</mn></msub></mrow><mrow><mi>𝜕</mi><msub><mi>𝑥</mi><mi>𝑛</mi></msub></mrow></mfrac></math></p><p>going left to right</p><p>You’re kind of stacking these multivariate functions on top of each other:</p><p><math><mi>𝜑</mi><mo>=</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝜑</mi><mn>1</mn></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝜑</mi><mi>𝑛</mi></msub><mo form=\"prefix\" stretchy=\"false\">(</mo><msub><mi>𝑥</mi><mn>1</mn></msub><mo>,</mo><mi>…</mi><mo>,</mo><msub><mi>𝑥</mi><mi>𝑛</mi></msub><mo form=\"postfix\" stretchy=\"false\">)</mo><mo stretchy=\"false\">)</mo></math></p><p>To get the inverse of <math><mi>𝜑</mi></math>, you treat it as a system</p><p><math><mo stretchy=\"false\">{</mo><mi>𝑢</mi><mo>=</mo><mi>𝑥</mi><mi>𝑦</mi><mspace width=\"0.2222em\"></mspace><mi>𝑣</mi><mo>=</mo><mfrac><mi>𝑥</mi><mi>𝑦</mi></mfrac><mo stretchy=\"false\">→</mo><mi>𝑢</mi><mi>𝑣</mi><mo>=</mo><msup><mi>𝑥</mi><mn>2</mn></msup><mo stretchy=\"false\">→</mo><mi>𝑥</mi><mo>=</mo><msqrt><mi>𝑢</mi><mi>𝑣</mi></msqrt><mo>,</mo><mi>𝑦</mi><mo>=</mo><msqrt><mfrac><mi>𝑢</mi><mi>𝑣</mi></mfrac></msqrt></math></p><p><math><msup><mi>𝜑</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo form=\"prefix\" stretchy=\"false\">(</mo><mi>𝑢</mi><mo>,</mo><mi>𝑣</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mo>=</mo><mo form=\"prefix\" stretchy=\"false\">(</mo><msqrt><mi>𝑢</mi><mi>𝑣</mi></msqrt><mo>,</mo><msqrt><mfrac><mi>𝑢</mi><mi>𝑣</mi></mfrac></msqrt><mo stretchy=\"false\">)</mo></math></p><p>Then you can get the Jacobian from the vector</p><p><math><mfrac><mi>𝜕</mi><mrow><mi>𝜕</mi><mi>𝑢</mi></mrow></mfrac><msqrt><mi>𝑢</mi><mi>𝑣</mi></msqrt><mfrac><mi>𝜕</mi><mrow><mi>𝜕</mi><mi>𝑣</mi></mrow></mfrac><msqrt><mi>𝑢</mi><mi>𝑣</mi></msqrt><mspace width=\"0.2222em\"></mspace><mfrac><mi>𝜕</mi><mrow><mi>𝜕</mi><mi>𝑥</mi></mrow></mfrac><msqrt><mfrac><mi>𝑢</mi><mi>𝑣</mi></mfrac></msqrt><mfrac><mi>𝜕</mi><mrow><mi>𝜕</mi><mi>𝑣</mi></mrow></mfrac><msqrt><mfrac><mi>𝑢</mi><mi>𝑣</mi></mfrac></msqrt></math></p><p>Then calculate each partial, then take the determinant with a calculator.</p><h5>Convolution</h5><p>The convolution will allow you to find the density of the sum of random variables.</p><p><math><mo stretchy=\"false\">(</mo><mi>𝑓</mi><mo lspace=\"0.2222222222222222em\" rspace=\"0.2222222222222222em\">∗</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\">∫</mo><mi>ℝ</mi></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>−</mo><mi>𝑦</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝑑</mi><mi>𝑦</mi><mo>=</mo><msub><mo form=\"prefix\" lspace=\"0em\">∫</mo><mi>ℝ</mi></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>−</mo><mi>𝑧</mi><mo form=\"postfix\" stretchy=\"false\">)</mo><mi>𝑑</mi><mi>𝑧</mi></math></p><p>Take the convolution of the two density functions to get the result.</p><h5>Examples</h5><p>If you’re determining pairwise independence, you can use the procedure described earlier.</p><p>But for mutual independence, you will need to add all them together</p>","contentSourceFormat":"typst","contentTypst":"== Week 10\n<week-10>\n=== Lecture Notes\n<lecture-notes>\n==== Random Vectors\n<random-vectors>\nBeginning chapter 7, vectors of random variables. We are concerned with a #strong[random vector]\n\n$X =\\(X_1\\,dots.h\\,X_N\\)$\n\nThe cdf of this vector is\n\n$F_X\\(x_1\\,dots.h\\,x_N\\)= bb(P)\\(X_1 lt.eq x_1\\,dots.h X_N lt.eq x_n\\)$\n\nWe can also say that if we have a random vector (X, Y) then\n\nIf you compute joint cdf, we can get marginal distribution (distribution for a subset, maybe one element) very easily\n\n$F_X\\(x\\)= lim_(y arrow.r oo) F_(\\(X\\,Y\\))\\(x\\,y\\)$\n\nand equivalently\n\n$bb(P)\\(X lt.eq x\\)= lim_(y arrow.r oo) bb(P)\\(X lt.eq x\\,Y lt.eq y\\)$\n\nRemark 7.7 says components of vectors are independent\n\nThese results hold for every random vector.\n\n==== Discrete Random Vectors\n<discrete-random-vectors>\nNow we will talk about #strong[discrete random vectors].\n\nThe formal definition 7.8 says that the rv is discrete when the image set $X\\(Omega\\)$ is a finite or countable subset of $bb(R)^n$, the product space between n different real number lines.\n\nThe pmf for a discrete random vector is given by the basic formula\n\n$bb(P)\\(X_1 = x_1\\,dots.h X_N = x_N\\)$\n\nThe density dictates that the sum must be 1.\n\n$sum_(x in X\\(Omega\\)) bb(P)\\(X = x\\)= 1$\n\nThen the cdf is\n\n$F_X\\(x_1\\,dots.h\\,x_n\\)= sum_(u_1 lt.eq x_1) dots.h sum_(u_N lt.eq x_N) bb(P)\\(X_1 = u_1\\,dots.h\\,X_N = u_N\\)$\n\nIn order to intuitively understand why the marginal distribution calculation works for joint distribution, imagine a table of values, which has the probability for each event in the sample space. The rows are of the first random variable's sample space, and the columns are for the second. Then, in order to calculate the probability of an event happening for the second random variable, you need to total all the probabilities from each row in the table.\n\n==== Independence\n<independence>\nExample 7.4\n\nWe have (X, Y) random vector. where\n\n$X\\(Omega\\)= Y\\(Omega\\)= { 0\\,1 }$\n\nand\n\n$bb(P)\\(X = 0\\,Y = 0\\)=\\(1 - p\\)^2$\n\n$bb(P)\\(X = 1\\,Y = 1\\)= p^2$\n\n$bb(P)\\(X = 0\\,Y = 1\\)= bb(P)\\(X = 1\\,Y = 0\\)= p\\(1 - p\\)$\n\nHow do we prove independence?\n\nWe need to prove\n\n$bb(P)\\(A inter B\\)= bb(P)\\(A\\)bb(P)\\(B\\)$\n\nor for joint distributions,\n\n$bb(P)\\(X = x\\,Y = y\\)= bb(P)\\(X = x\\)bb(P)\\(Y = y\\)$\n\nWe can use the marginal distribution calculation for this.\n\n$bb(P)\\(X = 0\\)= bb(P)\\(X = 0\\,Y = 0\\)+ bb(P)\\(X = 0\\,Y = 1\\)=\\(1 - p\\)^2+ p\\(1 - p\\)= 1 - p$\n\n$bb(P)\\(X = 1\\)= p^2 + p\\(1 - p\\)= p$\n\n$bb(P)\\(Y = 0\\)= 1 - p$\n\n$bb(P)\\(Y = 1\\)= p$\n\nAnd then now you can verify for each combination of different X and Y that the independence equality holds. Left as exercise for reader 😅\n\n==== Continuous Random Vectors\n<continuous-random-vectors>\nWe can consider any function $f : bb(R)^n arrow.r bb(R)$ a density if it's positive and\n\n$integral_(bb(R)^n) f\\(x\\)d x = integral_(bb(R)_1) dots.h integral_(bb(R)_N) f\\(x_1\\,dots.h\\,x_n\\)d x_1\\,dots.h d x_n = 1$\n\nWe can say that the random vector has this density given by f if\n\n$bb(P)\\(\\(X_1\\,dots.h X_n\\)in D\\)= integral_D f\\(x_1\\,dots.h\\,x_n\\)d x_1 dots.h d x_n$\n\nWhere D is the product space. And in fact, for the cdf, this D is the Borel set\n\nFor the marginal density, instead of a summation of all the others, you actually do the integral of all the others\n\n$f_(x_i)\\(x_i\\)= integral_(bb(R)^(n - 1)) f\\(x_1\\,dots.h\\,x_n\\)d x_1 dots.h d x_(i - 1) d x_(i + 1) dots.h d x_n$\n\n==== Uniformly Distributed Vector\n<uniformly-distributed-vector>\nThe joint density function is given by\n\n$f\\(x\\,y\\)= frac(1, \\(b - a\\)\\(d - c\\)) bb(I)_(\\(a\\,b\\])\\(x\\)bb(I)_(\\(c\\,d\\])\\(y\\)$\n\n==== Two Dimensional Normal\n<two-dimensional-normal>\nThe mapping which is given by\n\n$f\\(x\\,y\\)= frac(1, 2 pi) e^(- frac(x^2 + y^2, 2))$\n\nThis is for both variables being (N(0, 1)).\n\nIf we want to prove that a function is a density, we need to prove only positivity and equivalence to one on the integral over the interval.\n\n==== Change of Variable\n<change-of-variable>\nLet's take a random vector X with density $f_X$, and $Y = phi\\(X\\)$ where this function is a multivariate function that transforms X. The density of Y is, in the most general case,\n\n$f_Y\\(y\\)= f_X\\(phi^(- 1)\\(y\\)\\)lr(|det \\( J \\( phi^(- 1) \\( y \\) \\) \\)|)$\n\nJ the Jacobian is a matrix of partials, from\n\n$frac(partial phi_1, partial x_1) dots.h frac(partial phi_1, partial x_n)$\n\ngoing left to right\n\nYou're kind of stacking these multivariate functions on top of each other:\n\n$phi =\\(phi_1\\(x_1\\,dots.h\\,x_n\\)\\,dots.h\\,phi_n\\(x_1\\,dots.h\\,x_n\\)\\)$\n\nTo get the inverse of $phi$, you treat it as a system\n\n${u = x y med v = x / y arrow.r u v = x^2 arrow.r x = sqrt(u v)\\,y = sqrt(u / v)$\n\n$phi^(- 1)\\(u\\,v\\)=\\(sqrt(u v)\\,sqrt(u / v)\\)$\n\nThen you can get the Jacobian from the vector\n\n$frac(partial, partial u) sqrt(u v) & frac(partial, partial v) sqrt(u v) med frac(partial, partial x) sqrt(u / v) & frac(partial, partial v) sqrt(u / v)$\n\nThen calculate each partial, then take the determinant with a calculator.\n\n==== Convolution\n<convolution>\nThe convolution will allow you to find the density of the sum of random variables.\n\n$\\(f * g\\)\\(x\\)= integral_(bb(R)) f\\(y\\)g\\(x - y\\)d y = integral_(bb(R)) g\\(z\\)f\\(x - z\\)d z$\n\nTake the convolution of the two density functions to get the result.\n\n==== Examples\n<examples>\nIf you're determining pairwise independence, you can use the procedure described earlier.\n\nBut for mutual independence, you will need to add all them together","dataUrl":"https://sharifhsn.dev/api/posts/random-vectors-and-independence.json","date":"2024-11-04","datePublished":"2024-11-04","description":"Beginning chapter 7, vectors of random variables. We are concerned with a random vector The cdf of this vector is We can also say that if we have a random vector (X, Y) then","site":"https://sharifhsn.dev","slug":"random-vectors-and-independence","source":"FE-540 | Probability Theory","sourceUrl":null,"tags":["Probability Theory","Random Vectors","Independence"],"title":"Random Vectors and Independence","url":"https://sharifhsn.dev/blog/random-vectors-and-independence/","version":"1","wordCount":1244}