OasisLMF / ReinsuranceTestTool

Test tool for new reinsurance functionality.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Mixed scope filtering for QS and CAT XL #46

Closed johcarter closed 5 years ago

johcarter commented 5 years ago

We can't apply different calcrules to different risk level groupings within a treaty. But we could do a straight filter across mixed scope fields if there are no risk level terms (QS, CAT XL)

I wonder if we could implement mixed risk level filtering for these types as follows;

  1. Write a routine to work out from the filters what the subset of locations are that are covered by the treaty.
  2. Set RiskLevel to LOC (the scope file might have different values, but ignore it)
  3. fm Level1 : Group to location level and apply passthrough calcrule 12 to the locations in scope and calcrule 14 to the rest
  4. fm Level2: Group to treaty level and apply quota or cat xl calcrule.

To prioritise

johcarter commented 5 years ago

I have checked the example OED in the spec and the RiskLevel would be SEL for Quota share and Cat XL.

sambles commented 5 years ago

Notes on Scope filter from @aiste-kalinauskaite

I can see below combinations being used in practice:

PortNumber, AccNumber & LocNumber <- note, you don’t need to have PolNumber, if you are using LocNumber and it applies for the entire account, and not just for one layer (for example) PortNumber & AccNumber Portnumber, AccNumber & PolNumber Portnumber, AccNumber, PolNumber & LocNumber

So the above are for filtering scope. The example below explains how this works with RiskLevel and that filtering scope option is not tied to RiskLevel.

You can specify PortNumber & AccNumber, but RiskLevel = LOC. For example, you have 5 accounts, but between them they have 1 million locations, so filtering by account is rather efficient, as you only have to enter 5 records in Reins_scope field. However, you may still want to apply risk terms (RiskLimit & RiskAttachment) per location (i.e. RiskLevel = LOC) within the scope specified.

In terms of filtering entire portfolio on AccNumber field, it is possible, but the users would not be happy (think of cases where portfolio consists of thousands of accounts, as this would mean providing thousands of records in reins_scope file).

mpinkerton-oasis commented 5 years ago

Fixed in 397