Skip to main content

aggregate.Approximation

A distribution fitted to compound moments, from

Usage

aggregate.Approximation()

Attributes

Name Description
kind The family: "normal", "gamma", "lognormal",
parameters The parameters by name: mean and sd; shape and

kind

The family: "normal", "gamma", "lognormal",

kind: str

"shifted_gamma", "shifted_lognormal", "normal_power" or "wilson_hilferty".


parameters

The parameters by name: mean and sd; shape and

parameters: list[tuple[str, float]]

scale; meanlog and sdlog; with shift for the shifted families; mean, sd and skew for the normal power and Wilson-Hilferty.

Methods

Name Description
cdf() P(S <= x).
mean() The mean.
quantile() The p quantile.

cdf()

P(S <= x).

Usage

cdf(x)
Parameters
x: float
Returns
float

mean()

The mean.

Usage

mean()
Returns
float

quantile()

The p quantile.

Usage

quantile(p)
Parameters
p: float
Returns
float