From 2ac42e70d3f0083c4e825c65fa4af527d64fad7a Mon Sep 17 00:00:00 2001 From: Youcef Rahal Date: Sat, 11 May 2024 15:20:11 -0400 Subject: [PATCH] Fix more Chap09 tiny typos --- Notebooks/Chap09/9_4_Bayesian_Approach.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Notebooks/Chap09/9_4_Bayesian_Approach.ipynb b/Notebooks/Chap09/9_4_Bayesian_Approach.ipynb index b5d77f9..ef7c3b8 100644 --- a/Notebooks/Chap09/9_4_Bayesian_Approach.ipynb +++ b/Notebooks/Chap09/9_4_Bayesian_Approach.ipynb @@ -36,7 +36,7 @@ "# import libraries\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", - "# Define seed so get same results each time\n", + "# Define seed to get same results each time\n", "np.random.seed(1)" ] }, @@ -85,7 +85,7 @@ }, "outputs": [], "source": [ - "# Draw the fitted function, together win uncertainty used to generate points\n", + "# Draw the fitted function, together with uncertainty used to generate points\n", "def plot_function(x_func, y_func, x_data=None,y_data=None, x_model = None, y_model =None, sigma_func = None, sigma_model=None):\n", "\n", " fig,ax = plt.subplots()\n", @@ -220,7 +220,7 @@ " &\\propto&\\text{Norm}_{\\boldsymbol\\phi}\\biggl[\\frac{1}{\\sigma^2}\\left(\\frac{1}{\\sigma^2}\\mathbf{H}\\mathbf{H}^T+\\frac{1}{\\sigma_p^2}\\mathbf{I}\\right)^{-1}\\mathbf{H}\\mathbf{y},\\left(\\frac{1}{\\sigma^2}\\mathbf{H}\\mathbf{H}^T+\\frac{1}{\\sigma_p^2}\\mathbf{I}\\right)^{-1}\\biggr].\n", "\\end{align}\n", "\n", - "In fact, since this already a normal distribution, the constant of proportionality must be one and we can write\n", + "In fact, since this is already a normal distribution, the constant of proportionality must be one and we can write\n", "\n", "\\begin{align}\n", " Pr(\\boldsymbol\\phi|\\{\\mathbf{x}_{i},\\mathbf{y}_{i}\\}) &=& \\text{Norm}_{\\boldsymbol\\phi}\\biggl[\\frac{1}{\\sigma^2}\\left(\\frac{1}{\\sigma^2}\\mathbf{H}\\mathbf{H}^T+\\frac{1}{\\sigma_p^2}\\mathbf{I}\\right)^{-1}\\mathbf{H}\\mathbf{y},\\left(\\frac{1}{\\sigma^2}\\mathbf{H}\\mathbf{H}^T+\\frac{1}{\\sigma_p^2}\\mathbf{I}\\right)^{-1}\\biggr].\n", @@ -423,4 +423,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}