Skip to content

Commit 0eb779f

Browse files
Merge pull request #162 from williamscott/master
Correct typos
2 parents dbff64b + 4b12e6c commit 0eb779f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Chapter2_MorePyMC/MorePyMC.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"\n",
153153
"where 0, 4 are the `DiscreteUniform`-specific lower and upper bound on the random variable. The [PyMC docs](http://pymc-devs.github.com/pymc/distributions.html) contain the specific parameters for stochastic variables. (Or use `??` if you are using IPython!)\n",
154154
"\n",
155-
"The `name` attribute is used to retrieve the posterior distribution later in the analysis, so it is best to use a descriptive name. Typically, I use the Python variable's name as the name.\n",
155+
"The `name` attribute is used to retrieve the posterior distribution later in the analysis, so it is best to use a descriptive name. Typically, I use the Python variable's name as the `name`.\n",
156156
"\n",
157157
"For multivariable problems, rather than creating a Python array of stochastic variables, addressing the `size` keyword in the call to a `Stochastic` variable creates multivariate array of (independent) stochastic variables. The array behaves like a Numpy array when used like one, and references to its `value` attribute return Numpy arrays. \n",
158158
"\n",
@@ -1787,7 +1787,7 @@
17871787
"cell_type": "markdown",
17881788
"metadata": {},
17891789
"source": [
1790-
"Adding a constant term $\\alpha$ amounts to shifting the curve left or right (hence why it is called a *bias*. )\n",
1790+
"Adding a constant term $\\alpha$ amounts to shifting the curve left or right (hence why it is called a *bias*).\n",
17911791
"\n",
17921792
"Let's start modeling this in PyMC. The $\\beta, \\alpha$ parameters have no reason to be positive, bounded or relatively large, so they are best modeled by a *Normal random variable*, introduced next."
17931793
]
@@ -1798,7 +1798,7 @@
17981798
"source": [
17991799
"### Normal distributions\n",
18001800
"\n",
1801-
"A Normal random variable, denoted $X \\sim N(\\mu, 1/\\tau)$, has a distribution with two parameters: the mean, $\\mu$, and the *precision*, $\\tau$. Those familiar with the Normal distribution already have probably seen $\\sigma^2$ instead of $\\tau^{-1}$. They are in fact reciprocals of each other. The change was motivated by simpler mathematical analysis and is an artifact of older Bayesian methods. Just remember: The smaller $\\tau$, the larger the spread of the distribution (i.e. we are more uncertain); the larger $\\tau$, the tighter the distribution (i.e. we are more certain). Regardless, $\\tau$ is always positive. \n",
1801+
"A Normal random variable, denoted $X \\sim N(\\mu, 1/\\tau)$, has a distribution with two parameters: the mean, $\\mu$, and the *precision*, $\\tau$. Those familiar with the Normal distribution already have probably seen $\\sigma^2$ instead of $\\tau^{-1}$. They are in fact reciprocals of each other. The change was motivated by simpler mathematical analysis and is an artifact of older Bayesian methods. Just remember: the smaller $\\tau$, the larger the spread of the distribution (i.e. we are more uncertain); the larger $\\tau$, the tighter the distribution (i.e. we are more certain). Regardless, $\\tau$ is always positive. \n",
18021802
"\n",
18031803
"The probability density function of a $N( \\mu, 1/\\tau)$ random variable is:\n",
18041804
"\n",
@@ -2757,4 +2757,4 @@
27572757
"metadata": {}
27582758
}
27592759
]
2760-
}
2760+
}

0 commit comments

Comments
 (0)