## reserving.UnderwritingBasis


How an underwriting period's policies are written and earned, to convert


Usage

``` python
reserving.UnderwritingBasis()
```


an accident-period development pattern to the underwriting period's.


## Parameters


`writing: sequence of float`  
The share of the period's policies written in each month from its start, each written at an even rate through its month: finite, not negative, with a positive sum, and scaled to sum to 1. Not given, even writing over 12 months, an underwriting year's. The writing, its trailing zeros dropped, must be no longer than the triangle's origin period, within which its policies are written: on underwriting quarters give three months (`[1, 1, 1]` for even writing); longer writing is an error at fit time.

`policy_months: int = ``12`  
Each policy's term in months; it earns evenly over the term.

`reading: (weibull, loglogistic, ln - linear) = ``"weibull"`  
How a pattern of accident periods longer than a month (an accident-year pattern) is read between its ages when they are not every month from 1: `"weibull"` or `"loglogistic"` fit that growth curve through the period averages (an accident year at age [a](distributions.Beta.md#prospicio.distributions.Beta.a) reports the average of its twelve months) and correct it to the nearest monotone accident-month pattern whose averages are the given values exactly, so the given values are reproduced; increments may fall only within a span where the given pattern itself develops downward. `"ln-linear"` is the rule before this reading (linear from 0 below the first age, `ln CDF` linear between ages), kept to reproduce earlier results: on a simulated parallelogram book it puts an underwriting year 31% too far developed at 12 months, where the Weibull is within 0.2% at every age. An accident-month pattern, and one given at every month, convert the same under every reading. A curve needs two or more given values.

`The`  

`writing`  

`the`  

`writing`  

`exposure`  


## Examples

``` python
>>> from prospicio.reserving import UnderwritingBasis
>>> e = UnderwritingBasis().exposure()
>>> len(e), round(e[0] * 288, 12), round(e[12] * 288, 12)
```

(24, 1.0, 23.0)


## Attributes

| Name | Description |
|----|----|
| [policy_months](#policy_months) | The policy term in months. |
| [reading](#reading) | How a pattern of longer accident periods is read between its ages: |
| [writing](#writing) | The writing shares by month, as given. |

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


#### policy_months


The policy term in months.


`policy_months: int`


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


#### reading


How a pattern of longer accident periods is read between its ages:


`reading: str`


`"weibull"`, `"loglogistic"` or `"ln-linear"`.


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


#### writing


The writing shares by month, as given.


`writing: list[float]`


## Methods

| Name | Description |
|----|----|
| [exposure()](#exposure) | The share of the period's exposure in each accident month from its |

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


#### exposure()


The share of the period's exposure in each accident month from its


Usage

``` python
exposure()
```


start, summing to 1.
