## reinsurance.solvency2_probability_by_step()


The Solvency II probability of default of a counterparty with an


Usage


``` python
reinsurance.solvency2_probability_by_step(step)
```


external credit assessment, by its credit quality step (Delegated Regulation (EU) 2015/35, Art 199(2)): steps 0 to 6 give 0.002 %, 0.01 %, 0.05 %, 0.24 %, 1.2 %, 4.2 % and 4.2 %.


## Parameters


`step: int`  
The credit quality step, 0 to 6.


## Returns


`float`  


## Raises


`ValueError`  
For a step above 6.

`OverflowError`  
For a negative step.


## Examples

``` python
>>> from prospicio.reinsurance import solvency2_probability_by_step
>>> solvency2_probability_by_step(3)
```

0.0024
