## esg.Cycle


An underwriting cycle: an AR(2) on the log rate adequacy that scales each


Usage


``` python
esg.Cycle()
```


year's premium, `x_t - mean = phi1 (x_(t-1) - mean) + phi2 (x_(t-2) - mean) + sigma e_t`, from `x_0 = x_(-1) = x0`.


## Examples

``` python
>>> from prospicio.esg import Cycle
>>> round(Cycle(0.0, 1.2, -0.6, 0.05, 0.0).period(), 3)
```

9.176


## Methods

| Name | Description |
|----|----|
| [mean_at()](#mean_at) | The mean of `x_t`. |
| [period()](#period) | The cycle's period in years, `None` when it does not oscillate. |
| [stationary_variance()](#stationary_variance) | The variance in the long run. |
| [variance_at()](#variance_at) | The variance of `x_t`. |

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


#### mean_at()


The mean of `x_t`.


Usage


``` python
mean_at(t)
```


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


#### period()


The cycle's period in years, `None` when it does not oscillate.


Usage


``` python
period()
```


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


#### stationary_variance()


The variance in the long run.


Usage


``` python
stationary_variance()
```


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


#### variance_at()


The variance of `x_t`.


Usage


``` python
variance_at(t)
```
