Skip to content
HALOWERK

Finopswerk

finite correlated default tranche loss distribution

Derives the complete two-date joint tranche-loss probability law and exact default/premium cash-flow expectations for a supplied finite correlated-default portfolio of 1..4 names with constant EAD and LGD. Each state gives every name's default stage (0 never, 1 first date, 2 second date) and an integer probability weight. Tranche loss Tt = min(max(Lt-A,0),H), H = B-A, is taken per scenario before expectations. No copula, PD or correlation estimate is invented.

POST https://finops.halowerk.com/v1/finite-correlated-default-tranche-loss-distribution

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
exposures_narrayYes
LGD_bparrayYes
amount_denominatorintegerYes
attachment_nintegerYes
detachment_nintegerYes
discount_bparrayYes
accrual_bparrayYes
scenariosSee schemaYes
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "exposures_n",
    "LGD_bp",
    "amount_denominator",
    "attachment_n",
    "detachment_n",
    "discount_bp",
    "accrual_bp",
    "scenarios"
  ],
  "properties": {
    "exposures_n": {
      "type": "array",
      "minItems": 1,
      "maxItems": 4,
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 1000000
      }
    },
    "LGD_bp": {
      "type": "array",
      "minItems": 1,
      "maxItems": 4,
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 10000
      }
    },
    "amount_denominator": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000
    },
    "attachment_n": {
      "type": "integer",
      "minimum": 0,
      "maximum": 4000000
    },
    "detachment_n": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4000000
    },
    "discount_bp": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 10000
      }
    },
    "accrual_bp": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "type": "integer",
        "minimum": 1,
        "maximum": 10000
      }
    },
    "scenarios": {
      "anyOf": [
        {
          "type": "array",
          "minItems": 1,
          "maxItems": 8,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "default_stage",
              "weight"
            ],
            "properties": {
              "default_stage": {
                "type": "array",
                "minItems": 1,
                "maxItems": 4,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 2
                }
              },
              "weight": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Open original schema

Published input example

{
  "exposures_n": [
    100,
    100
  ],
  "LGD_bp": [
    10000,
    10000
  ],
  "amount_denominator": 1,
  "attachment_n": 50,
  "detachment_n": 150,
  "discount_bp": [
    10000,
    10000
  ],
  "accrual_bp": [
    5000,
    5000
  ],
  "scenarios": [
    {
      "default_stage": [
        0,
        0
      ],
      "weight": 2
    },
    {
      "default_stage": [
        1,
        0
      ],
      "weight": 1
    },
    {
      "default_stage": [
        2,
        1
      ],
      "weight": 1
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’