Merge pull request #222 from tthomto/master

correcting the math in covariance example - missing fraction.
This commit is contained in:
Roger Labbe 2018-04-26 07:57:43 -07:00 committed by GitHub
commit de5f6eda77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -448,8 +448,8 @@
"$$\\begin{aligned}\n",
"\\sigma_{H,W} &= \\mathbb E\\big[(H-\\mu_H)(W-\\mu_W)\\big] \\\\\n",
"&= \\frac{1}{N}\\sum_{i=1}^n (H_i-\\mu_H)(W_i-\\mu_W) \\\\\n",
"&= (1.8-1.8)(70.1-73.5) + (2-1.8)(91.2-73.5) + (1.7-1.8)(59.5-73.5)\\, +\\\\\n",
"&\\, \\, \\, \\, \\, (1.9-1.8)(93.2-73.5) + (1.6-1.8)(53.5-73.5) \\\\\n",
"&= \\frac{1}{5}[(1.8-1.8)(70.1-73.5) + (2-1.8)(91.2-73.5) + (1.7-1.8)(59.5-73.5)\\, +\\\\\n",
"&\\, \\, \\, \\, \\, (1.9-1.8)(93.2-73.5) + (1.6-1.8)(53.5-73.5)] \\\\\n",
"&= 2.18\n",
"\\end{aligned}$$\n",
"\n",