Univariate normal distribution.
The pdf of this distribution is
\[f(x \mid \mu, \tau) = \sqrt{\frac{\tau}{2\pi}} \exp\left\{ -\frac{\tau}{2} (x-\mu)^2 \right\}\]
Normal distribution can be parameterized either in terms of precision or standard deviation. The link between the two parametrizations is given by
\[\tau = \dfrac{1}{\sigma^2}\]
(Source code
, png
, hires.png
, pdf
)
float
, default 0
Mean.
float
, optional
Standard deviation (sigma > 0) (only required if tau is not specified). Defaults to 1 if neither sigma nor tau is specified.
float
, optional
Precision (tau > 0) (only required if sigma is not specified).
Examples
with pm.Model(): x = pm.Normal("x", mu=0, sigma=10) with pm.Model(): x = pm.Normal("x", mu=0, tau=1 / 23)
Methods
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4