Skip to content

Commit e2ce815

Browse files
Update legibility of formula to proper Latex Format (#4390)
* ✏️ Normal Dist. Function updated to latex, proper * Update function to latex * Add hyperlink * ✏️ Normal Dist PDF slight update on where conditional * ✏️ Change evaluated at to 3rd operand and minor update
1 parent d871b80 commit e2ce815

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/source/developer_guide.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,18 @@ below), and x.dist() as the associated density/mass function
134134
(distribution in the mathematical sense). It is not perfect, and now
135135
after a few years learning Bayesian statistics I also realized these
136136
subtleties (i.e., the distinction between *random variable* and
137-
*distribution*). But when I was learning probabilistic modelling as a
137+
*distribution*).
138+
139+
But when I was learning probabilistic modelling as a
138140
beginner, I did find this approach to be the easiest and most
139141
straightforward. In a perfect world, we should have
140142
:math:`x \sim \text{Normal}(0, 1)` which defines a random variable that
141143
follows a Gaussian distribution, and
142-
:math:`\chi = \text{Normal}(0, 1), x \sim \chi` which define a scalar
143-
density function that takes input :math:`x`
144+
:math:`\chi = \text{Normal}(0, 1), x \sim \chi` which define a `probability
145+
density function <https://en.wikipedia.org/wiki/Probability_density_function>`__ that takes input :math:`x`
144146
145147
.. math::
146-
(``X:=f(x) = 1/sqrt(2*pi) * exp(-.5*x**2)``)
148+
X:=f(x) = \frac{1}{\sigma \sqrt{2 \pi}} \exp^{- 0.5 (\frac{x - \mu}{\sigma})^2}\vert_{\mu = 0, \sigma=1} = \frac{1}{\sqrt{2 \pi}} \exp^{- 0.5 x^2}
147149
148150
Within a model context, RVs are essentially Theano tensors (more on that
149151
below). This is different than TFP and pyro, where you need to be more

0 commit comments

Comments
 (0)