## aggregate.CompoundMoments


Compound moments to third order, from [compound_moments](aggregate.compound_moments.md#prospicio.aggregate.compound_moments).


Usage


``` python
aggregate.CompoundMoments()
```


## Attributes

| Name | Description |
|----|----|
| [cv](#cv) | The coefficient of variation. |
| [mean](#mean) | `E[S]`. |
| [skew](#skew) | The skewness. |
| [third_cumulant](#third_cumulant) | The third cumulant, `E[(S - E[S])^3]`. |
| [variance](#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()](#approximate) | The moment-matched approximation: `"normal"`, `"gamma"`, |

------------------------------------------------------------------------


#### approximate()


The moment-matched approximation: `"normal"`, `"gamma"`,


Usage


``` python
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).
