aggregate.CompoundMoments
Compound moments to third order, from compound_moments.
Usage
aggregate.CompoundMoments()Attributes
| Name | Description |
|---|---|
| cv | The coefficient of variation. |
| mean |
E[S].
|
| skew | The skewness. |
| third_cumulant |
The third cumulant, E[(S - E[S])^3].
|
| variance |
Var[S].
|
cv
The coefficient of variation.
cv: float
mean
E[S].
mean: float
skew
The skewness.
skew: float
third_cumulant
The third cumulant, E[(S - E[S])^3].
third_cumulant: float
variance
Var[S].
variance: float
Methods
| Name | Description |
|---|---|
| approximate() |
The moment-matched approximation: "normal", "gamma",
|
approximate()
The moment-matched approximation: "normal", "gamma",
Usage
approximate(kind)"lognormal" (mean and cv), "shifted_gamma", "shifted_lognormal", "normal_power" or "wilson_hilferty" (mean, cv and skewness; the last two defined by their quantiles, Bahnemann’s section 4.4).
Parameters
kind: str
Returns
Approximation
Raises
ValueError- For an unknown kind, a non-positive mean (gamma, lognormal) or a non-positive skewness (the three-moment fits).