From b99c4205fab8846467a9dac596f361be2f6a0976 Mon Sep 17 00:00:00 2001 From: tthomto <38660044+tthomto@users.noreply.github.com> Date: Thu, 26 Apr 2018 16:54:21 +0200 Subject: [PATCH] correcting the math in covariance example --- 05-Multivariate-Gaussians.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/05-Multivariate-Gaussians.ipynb b/05-Multivariate-Gaussians.ipynb index a0c11d3..d070d5a 100644 --- a/05-Multivariate-Gaussians.ipynb +++ b/05-Multivariate-Gaussians.ipynb @@ -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",