{"id":87,"date":"2008-01-14T03:45:02","date_gmt":"2008-01-14T08:45:02","guid":{"rendered":"http:\/\/scripts.mit.edu\/~zong\/wpress\/?p=87"},"modified":"2008-01-14T05:20:59","modified_gmt":"2008-01-14T10:20:59","slug":"a-little-gaussian-problem","status":"publish","type":"post","link":"https:\/\/blog.yhuang.org\/?p=87","title":{"rendered":"a little Gaussian problem"},"content":{"rendered":"<p>Here&#8217;s a problem I heard last month that I&#8217;ve been meaning to write up.<\/p>\n<p>We know that if two random variables X and Y are <strong>jointly Gaussian<\/strong>, then X and Y are each Gaussian. The converse is not true, even if X and Y are uncorrelated &#8212; we have examples of this. What if one more condition is added?<\/p>\n<p>Assume the following:<\/p>\n<ol>\n<li>X and Y each distributed as \\(\\mathcal{N}(0, 1)\\)<\/li>\n<li>X and Y are uncorrelated<\/li>\n<li>X+Y is distributed as \\(\\mathcal{N}(0, 2)\\)<\/li>\n<\/ol>\n<p>Is X and Y jointly Gaussian or, equivalently, are X and Y independent (because uncorrelation implies independence for a pair of jointly Gaussian random variables)?<\/p>\n<p>The necessary and sufficient condition for X and Y to be jointly Gaussian is for <em>every<\/em> non-trivial linear combination of X and Y to be Gaussian, so unless (3) somehow makes that true, X and Y would not be jointly Gaussian.<br \/>\n<!--more--><br \/>\nNot surprisingly, the answer is no. The difficult part is constructing a counter-example, where X and Y are uncorrelated but not independent, individually Gaussian, and X+Y is also Gaussian.<\/p>\n<p>Suppose we have a prototype density function \\(g(t)\\). Now define random variables U and V by the joint density<\/p>\n<p><p><b><a href=\"http:\/\/www.chris-lamb.co.uk\/code\/figurerender\/\">FigureRender<\/a> Error:<\/b> <i>The external rendering application did not complete successfully.<br \/><textarea cols=80 rows=10 READONLY>sh: 1: \/usr\/bin\/latex: not found<\/textarea><\/i><\/p><\/p>\n<p>where we use the Dirac delta to represent discrete probabilities.<\/p>\n<p>Define X and Y by a unitary transformation of U and V (actually a rotation by 22.5 degrees):<\/p>\n\\(<br \/>\n\\left[\\begin{array}{c}<br \/>\nX \\\\ Y<br \/>\n\\end{array}\\right] = \\overset{A}{\\overbrace{<br \/>\n\\left[\\begin{array}{cc}<br \/>\n\\cos \\frac{\\pi}{8} &#038; -\\sin \\frac{\\pi}{8} \\\\<br \/>\n\\sin \\frac{\\pi}{8} &#038; \\cos \\frac{\\pi}{8}<br \/>\n\\end{array}\\right]}}<br \/>\n\\left[\\begin{array}{c}<br \/>\nU \\\\ V<br \/>\n\\end{array}\\right]<br \/>\n\\)\n<p>Let us note that, obviously, X and Y are not independent (and not jointly Gaussian), but they are uncorrelated, because of quadrantal symmetry &#8212; wherever there is a positive density at (x, y), the same is at (-y, x), (-x, -y), and (y, -x).<\/p>\n<p>The rotation by 22.5 degrees is also important to ensure a kind of marginalization symmetry since in addition to marginalizing along the 0-degree and 90-degree axes, assumption (3) requires a marginalization along the 45-degree axis.<\/p>\n<p>By change of variables, we have<\/p>\n<p><p><b><a href=\"http:\/\/www.chris-lamb.co.uk\/code\/figurerender\/\">FigureRender<\/a> Error:<\/b> <i>The external rendering application did not complete successfully.<br \/><textarea cols=80 rows=10 READONLY>sh: 1: \/usr\/bin\/latex: not found<\/textarea><\/i><\/p><\/p>\n<p>Next we find \\(p_X\\), \\(p_Y\\), and \\(p_{X+Y}\\). We can do this formally (or even by inspection):<\/p>\n<p><p><b><a href=\"http:\/\/www.chris-lamb.co.uk\/code\/figurerender\/\">FigureRender<\/a> Error:<\/b> <i>The external rendering application did not complete successfully.<br \/><textarea cols=80 rows=10 READONLY>sh: 1: \/usr\/bin\/latex: not found<\/textarea><\/i><\/p><\/p>\n<p>Similarly,<\/p>\n<p><p><b><a href=\"http:\/\/www.chris-lamb.co.uk\/code\/figurerender\/\">FigureRender<\/a> Error:<\/b> <i>The external rendering application did not complete successfully.<br \/><textarea cols=80 rows=10 READONLY>sh: 1: \/usr\/bin\/latex: not found<\/textarea><\/i><\/p><\/p>\n<p>and since<\/p>\n\\(\\left[\\begin{array}{c}<br \/>\nX+Y \\\\ -X+Y<br \/>\n\\end{array}\\right] =<br \/>\n\\left[\\begin{array}{cc}<br \/>\n1 &#038; 1 \\\\<br \/>\n-1 &#038; 1<br \/>\n\\end{array}\\right] A<br \/>\n\\left[\\begin{array}{c}<br \/>\nU \\\\ V<br \/>\n\\end{array}\\right] = \\sqrt{2}<br \/>\n\\left[\\begin{array}{cc}<br \/>\n\\cos \\left(\\frac{\\pi}{8} &#8211; \\frac{\\pi}{4}\\right) &#038; -\\sin \\left(\\frac{\\pi}{8} &#8211; \\frac{\\pi}{4}\\right) \\\\<br \/>\n\\sin \\left(\\frac{\\pi}{8} &#8211; \\frac{\\pi}{4}\\right) &#038; \\cos \\left(\\frac{\\pi}{8} &#8211; \\frac{\\pi}{4}\\right)<br \/>\n\\end{array}\\right]<br \/>\n\\left[\\begin{array}{c}<br \/>\nU \\\\ V<br \/>\n\\end{array}\\right]<br \/>\n\\)\n<p>which is a (scaled) rotation by -22.5 degrees, we immediately have<\/p>\n<p><p><b><a href=\"http:\/\/www.chris-lamb.co.uk\/code\/figurerender\/\">FigureRender<\/a> Error:<\/b> <i>The external rendering application did not complete successfully.<br \/><textarea cols=80 rows=10 READONLY>sh: 1: \/usr\/bin\/latex: not found<\/textarea><\/i><\/p><\/p>\n<p>If we look at the marginal densities, we see that they all have the same form or shape, namely \\(\\alpha g(\\alpha t) + \\beta g(\\pm \\beta t)\\). Suppose we impose symmetry on \\(g(t)\\), then the problem becomes one of finding a \\(g(t)\\) such that \\(\\alpha g(\\alpha t) + \\beta g(\\beta t)\\) is the <em>right<\/em> shape (a Gaussian), i.e. proportional to \\(h(t) = \\exp(-t^2)\\).<\/p>\n<p>This is not too hard. Let \\(k = |\\beta \/ \\alpha|\\) (which we assume to be >1, w.l.o.g.). Then define \\(g(t)\\) arbitrarily on any interval \\((\\gamma, k\\gamma]\\). That defines \\(g(t)\\) for all \\(t>0\\) recursively as follows:<\/p>\n<p>\\(\\because g(t) + kg(kt) = h(t\/\\alpha) \/ \\alpha\\)<br \/>\n\\(\\therefore g(kt) = h(t\/\\alpha) \/ (k\\alpha) &#8211; g(t)\/k\\) and<br \/>\n\\(g(t\/k) = h(t\/(k\\alpha)) \/ \\alpha &#8211; kg(t)\\)<\/p>\n<p>Finally, define \\(g(0) = h(0)\/2\\), \\(g(-t) = g(t)\\), and then scale it appropriately. QED.<\/p>\n<p>Note that \\(g(t)\\) is by no means a &#8220;nice&#8221; function, but that is no issue for this problem.<\/p>\n<p>What generalizations are possible is unclear. What if we ask for more linear combinations of X and Y to be Gaussian? My guess is X and Y should still not be necessarily Gaussian, but counter-examples may be harder to come by. It would be interesting to know whether a finite number of linear combination constraints would ever result in joint Gaussianity, or whether the sums of a small number of prototype functions is enough to generate a counter-example.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a problem I heard last month that I&#8217;ve been meaning to write up. We know that if two random variables X and Y are jointly Gaussian, then X and Y are each Gaussian. The converse is not true, even if X and Y are uncorrelated &#8212; we have examples of this. What if one [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1447,1449,1448,1451,1450],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-array-c","tag-density-function","tag-dirac-delta","tag-linear-combination","tag-random-variables"],"_links":{"self":[{"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":0,"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yhuang.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}