PyMC3 Distributions¶
Asymmetric Laplace Distribution¶
asymmetric_laplace.py
Asymmetric Laplace Distribution, with location parameter 0. This is used as our NPI Effectiveness prior.
See also: https://en.wikipedia.org/wiki/Asymmetric_Laplace_distribution
-
class
epimodel.pymc3_distributions.asymmetric_laplace.
AsymmetricLaplace
(name, *args, **kwargs)¶ Bases:
pymc3.distributions.distribution.Continuous
Assymetric Laplace Distribution
See also: https://en.wikipedia.org/wiki/Asymmetric_Laplace_distribution
-
logp
(value)¶ Compute logp.
- Parameters
value – evaluation point
- Returns
log probability at evaluation point
-
random
(point=None, size=None)¶ Draw random samples from this distribution, using the inverse CDF method.
- Parameters
point – not used
size – size of sample to draw
- Returns
Samples
-