{"id":20137,"date":"2024-04-28T18:20:13","date_gmt":"2024-04-28T16:20:13","guid":{"rendered":"https:\/\/djalil.chafai.net\/blog\/?p=20137"},"modified":"2024-05-01T08:04:43","modified_gmt":"2024-05-01T06:04:43","slug":"two-details-about-gaussians","status":"publish","type":"post","link":"https:\/\/djalil.chafai.net\/blog\/2024\/04\/28\/two-details-about-gaussians\/","title":{"rendered":"Two details about Gaussians"},"content":{"rendered":"<figure id=\"attachment_20169\" aria-describedby=\"caption-attachment-20169\" style=\"width: 237px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/en.wikipedia.org\/wiki\/Greek_ligatures\"><img loading=\"lazy\" class=\"wp-image-20169 size-medium\" src=\"http:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2024\/04\/Greek_ligature_gamma-epsilon-rho-237x300.png\" alt=\"Greek ligature -ger- (\u03b3\u03b5\u03c1) in medieval minuscule handwriting\" width=\"237\" height=\"300\" srcset=\"https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2024\/04\/Greek_ligature_gamma-epsilon-rho-237x300.png 237w, https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2024\/04\/Greek_ligature_gamma-epsilon-rho-813x1030.png 813w, https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2024\/04\/Greek_ligature_gamma-epsilon-rho-768x974.png 768w, https:\/\/djalil.chafai.net\/blog\/wp-content\/uploads\/2024\/04\/Greek_ligature_gamma-epsilon-rho.png 1024w\" sizes=\"(max-width: 237px) 100vw, 237px\" \/><\/a><figcaption id=\"caption-attachment-20169\" class=\"wp-caption-text\">Greek ligature -ger- (\u03b3\u03b5\u03c1) in medieval minuscule handwriting<\/figcaption><\/figure>\n<p style=\"text-align: justify;\"><strong>Fourier transform.<\/strong> Recall the formula<br \/>\n\\[<br \/>\n\\int_{\\mathbb{R}}\\mathrm{e}^{\\mathrm{i}tx}\\tfrac{1}{\\sqrt{2\\pi\\sigma^2}}\\mathrm{e}^{-\\frac{x^2}{2\\sigma^2}}\\mathrm{d}x<br \/>\n=\\mathrm{e}^{-\\frac{\\sigma^2 t^2}{2}}.<br \/>\n\\] A good way to remember that the dispersion parameter $\\sigma^2$ is in the numerator in the right hand side is to have in mind the uncertainty principle : if the signal is localized then its Fourier transform is not, and vice versa. In case of doubt regarding the sign inside the right hand side, remember that the standard Gaussian is an eigenfunction of the Fourier transform.<\/p>\n<p style=\"text-align: justify;\"><strong>Moments.<\/strong> The simplest way to compute the even moments of the standard Gaussian is neither integration by parts nor Fourier transform : just take the $n$-th derivative with respect to $\\beta$ of<br \/>\n\\[<br \/>\n\\int_{\\mathbb{R}}\\mathrm{e}^{-\\beta x^2}\\mathrm{d}x=\\sqrt{\\frac{\\pi}{\\beta}}<br \/>\n\\] which gives<br \/>\n\\[<br \/>\n(-1)^n\\int_{\\mathbb{R}}x^{2n}\\mathrm{e}^{-\\beta x^2}\\mathrm{d}x<br \/>\n=(-1)^n\\sqrt{\\frac{\\pi}{\\beta^{2n+1}}}\\prod_{k=1}^{n}\\Bigr(\\frac{1}{2}+k-1\\Bigr),<br \/>\n\\] in other words, with $\\beta=\\frac{1}{2\\sigma^2}$,<br \/>\n\\[<br \/>\n\\int_{\\mathbb{R}} x^{2n}\\tfrac{1}{\\sqrt{2\\pi\\sigma^2}}\\mathrm{e}^{-\\frac{x^2}{2\\sigma^2}}\\mathrm{d}x<br \/>\n=\\sigma^{2n}\\prod_{k=1}^n(2k-1)=\\sigma^{2n}(2n-1)!!.<br \/>\n\\] This trick also works for the Gamma distribution and is an instance of the energy trick in statistical physics : in the same spirit, if $\\lambda$ is some reference measure on some space and<br \/>\n\\[<br \/>\nZ:=\\int\\mathrm{e}^{-\\beta V(x)}\\mathrm{d}\\lambda(x),<br \/>\n\\]then, denoting $X$ a random variable with density $\\tfrac{1}{Z} \\mathrm{e}^{-\\beta V}$ with respect to $\\lambda$,<br \/>\n\\[<br \/>\n\\partial_\\beta\\log Z=-\\mathbb{E}(V(X))<br \/>\n\\quad\\text{while}\\quad<br \/>\n\\partial^2_\\beta\\log Z=\\mathbb{Var}(V(X)).<br \/>\n\\]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fourier transform. Recall the formula \\[ \\int_{\\mathbb{R}}\\mathrm{e}^{\\mathrm{i}tx}\\tfrac{1}{\\sqrt{2\\pi\\sigma^2}}\\mathrm{e}^{-\\frac{x^2}{2\\sigma^2}}\\mathrm{d}x =\\mathrm{e}^{-\\frac{\\sigma^2 t^2}{2}}. \\] A good way to remember that the dispersion parameter $\\sigma^2$ is in the numerator in&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/djalil.chafai.net\/blog\/2024\/04\/28\/two-details-about-gaussians\/\">Continue reading<span class=\"screen-reader-text\">Two details about Gaussians<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":581},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/20137"}],"collection":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/comments?post=20137"}],"version-history":[{"count":46,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/20137\/revisions"}],"predecessor-version":[{"id":20186,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/posts\/20137\/revisions\/20186"}],"wp:attachment":[{"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/media?parent=20137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/categories?post=20137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/djalil.chafai.net\/blog\/wp-json\/wp\/v2\/tags?post=20137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}