distributions

distributions

Distributions, useful for vaccine waning parameterization

Classes

Name Description
beta A beta continuous random variable.
gausshyper A Gauss hypergeometric continuous random variable,
gompertz A Gompertz (or truncated Gumbel) continuous random variable.
truncnorm Truncated normal distribution (specifically, scipy.stats.truncnorm)

beta

distributions.beta(a=1.0, b=1.0, loc=0.0, scale=1.0, **kwargs)

A beta continuous random variable. Args: c (float): loc (float): scale (float):

Methods

Name Description
make_rvs Use SciPy rather than NumPy to include the scale parameter
make_rvs
distributions.beta.make_rvs()

Use SciPy rather than NumPy to include the scale parameter

gausshyper

distributions.gausshyper(
    a=13.8,
    b=3.12,
    c=2.51,
    z=5.18,
    loc=0.0,
    scale=1.0,
    **kwargs,
)

A Gauss hypergeometric continuous random variable, also known was 2F1 function (scipy.special.hyp2f1)

Parameters

Name Type Description Default
a float a > 0, shape parameter 13.8
b float b > 0, shape parameter 3.12
c float c is a real number, shape parameter 2.51
z float z > -1, shaper parameter 5.18
loc float location parameter 0.0
scale float scale parameter 1.0

See

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.gausshyper.html

Methods

Name Description
make_rvs Use SciPy rather than NumPy to include the scale parameter
make_rvs
distributions.gausshyper.make_rvs()

Use SciPy rather than NumPy to include the scale parameter

gompertz

distributions.gompertz(c=1.0, loc=0.0, scale=1.0, **kwargs)

A Gompertz (or truncated Gumbel) continuous random variable. Args: c (float): loc (float): scale (float):

Methods

Name Description
make_rvs Use SciPy rather than NumPy to include the scale parameter
make_rvs
distributions.gompertz.make_rvs()

Use SciPy rather than NumPy to include the scale parameter

truncnorm

distributions.truncnorm(a_trunc=0.0, b_trunc=1.0, loc=0.0, scale=1.0, **kwargs)

Truncated normal distribution (specifically, scipy.stats.truncnorm)

Parameters

Name Type Description Default
a float the abscissa at which we wish to truncate the distribution to the left required
b float the abscissa at which we wish to truncate the distribution to the right required
loc float the center of the normal distribution (default 0.0) 0.0
scale float the standard deviation of the distribution (default 1.0) 1.0

Methods

Name Description
make_rvs Use SciPy rather than NumPy to include the scale parameter
make_rvs
distributions.truncnorm.make_rvs()

Use SciPy rather than NumPy to include the scale parameter