correcting the math in covariance example

This commit is contained in:
tthomto 2018-04-26 16:54:21 +02:00 committed by GitHub
parent 47062b018d
commit b99c4205fa
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",