Skip to main content

esg.Projection

A company’s multi-year projection along economic scenarios

Usage

esg.Projection()

(docs/design/esg-dfa.md): premium and expenses at the start of each year, the year’s new losses scaled by the path’s index and paid on a pattern, the opening reserves’ run-off, investment income on cash and bond buckets, tax, dividends and injections.

Parameters

losses: numpy.ndarray or list of list of float

The new losses in base money, one row per path, one column per year.

opening_assets: float
premiums: list of float

The premium of each year; none by default.

expense_ratio: float = 0
opening_reserves: list of float

The opening reserves’ payments in base money, at the end of each year from the first.

payout: list of float

The share of a year’s losses paid at the end of that year and each later one; all in the year by default.

bonds: list of (float, float)

Bond buckets as (share, duration); the rest is cash.

index: str = "claims"

The index that scales the losses: "claims" or "price".

cycle: Cycle
cycle_seed: int = 0
tax_rate: float
carry_forward: bool = True

Carry a tax loss forward against later profits.

dividend_above: float

Capital rule ratios of capital_basis.

inject_below: float

Capital rule ratios of capital_basis.

capital_basis: str = "premium"

"premium" or "reserves".

dependence: str

The losses’ rank dependence on the index growth: "gaussian", "t", or an Archimedean family ("clayton", "gumbel", "frank", "joe"); independent by default.

dependence_parameter: float = 0

The copula’s correlation or theta.

dependence_nu: float

The t copula’s degrees of freedom.

dependence_seed: int = 0

Examples

>>> from prospicio.esg import Projection
>>> p = Projection([[60.0, 70.0, 80.0], [50.0, 120.0, 40.0]], 200.0,
...                premiums=[100.0] * 3, expense_ratio=0.3, payout=[0.5, 0.5])
>>> paths = p.run()
>>> paths.values("result")[1].round(6).tolist()

[20.0, -50.0, 30.0]

Methods

Name Description
run() Run the projection along scenarios (path s on scenario path

run()

Run the projection along scenarios (path s on scenario path

Usage

run(scenarios=None)

s), or without an economy when None: no investment return and an index of 1.