Skip to content

Commit 4e815dd

Browse files
Merge pull request CamDavidsonPilon#138 from Youki/pull_request
I found some typo in Chapter2_MorePyMC/MorePyMC.ipynb.
2 parents 8cfe7ab + 0f0c1bb commit 4e815dd

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
@@ -150,7 +150,7 @@
150150
"\n",
151151
"`some_variable = mc.DiscreteUniform(\"discrete_uni_var\", 0, 4)`\n",
152152
"\n",
153-
"where 0, 4 are the `DiscreteUniform`-specific upper and lower 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",
153+
"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",
155155
"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",
@@ -1030,7 +1030,7 @@
10301030
"source": [
10311031
"Notice that as a result of `N_B < N_A`, i.e. we have less data from site B, our posterior distribution of $p_B$ is fatter, implying we are less certain about the true value of $p_B$ than we are of $p_A$. \n",
10321032
"\n",
1033-
"With respect to the posterior distribution of $\\text{delta}$, we can see that the majority of the distribution is above $\\text{delta}=0$ =0$, implying there site A's response is likely better than site B's response. The probability this inference is incorrect is easily computable:"
1033+
"With respect to the posterior distribution of $\\text{delta}$, we can see that the majority of the distribution is above $\\text{delta}=0$, implying there site A's response is likely better than site B's response. The probability this inference is incorrect is easily computable:"
10341034
]
10351035
},
10361036
{
@@ -1762,7 +1762,7 @@
17621762
"source": [
17631763
"### Normal distributions\n",
17641764
"\n",
1765-
"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$. 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",
1765+
"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",
17661766
"\n",
17671767
"The probability density function of a $N( \\mu, 1/\\tau)$ random variable is:\n",
17681768
"\n",
@@ -2593,4 +2593,4 @@
25932593
"metadata": {}
25942594
}
25952595
]
2596-
}
2596+
}

0 commit comments

Comments
 (0)