esg.Cycle
An underwriting cycle: an AR(2) on the log rate adequacy that scales each
Usage
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
>>> 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() |
The mean of x_t.
|
| period() |
The cycle’s period in years, None when it does not oscillate.
|
| stationary_variance() | The variance in the long run. |
| variance_at() |
The variance of x_t.
|
mean_at()
The mean of x_t.
Usage
mean_at(t)period()
The cycle’s period in years, None when it does not oscillate.
Usage
period()stationary_variance()
The variance in the long run.
Usage
stationary_variance()variance_at()
The variance of x_t.
Usage
variance_at(t)