Merge pull request #310 from froohoo/froohoo-patch-1

incorrect sign in product of Gaussian derivation
This commit is contained in:
Roger Labbe 2020-04-26 18:30:09 -07:00 committed by GitHub
commit b9c2c88e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1976,7 +1976,7 @@
"$$\\begin{aligned}\n",
"p(x \\mid z) &\\propto \\exp \\Big[-\\frac{(z-x)^2}{2\\sigma_z^2}\\Big]\\exp \\Big[-\\frac{(x-\\bar\\mu)^2}{2\\bar\\sigma^2}\\Big]\\\\\n",
"&\\propto \\exp \\Big[-\\frac{(z-x)^2}{2\\sigma_z^2}-\\frac{(x-\\bar\\mu)^2}{2\\bar\\sigma^2}\\Big] \\\\\n",
"&\\propto \\exp \\Big[-\\frac{1}{2\\sigma_z^2\\bar\\sigma^2}[\\bar\\sigma^2(z-x)^2-\\sigma_z^2(x-\\bar\\mu)^2]\\Big]\n",
"&\\propto \\exp \\Big[-\\frac{1}{2\\sigma_z^2\\bar\\sigma^2}[\\bar\\sigma^2(z-x)^2+\\sigma_z^2(x-\\bar\\mu)^2]\\Big]\n",
"\\end{aligned}$$\n",
"\n",
"Now we multiply out the squared terms and group in terms of the posterior $x$.\n",