Skip to main content
Exposure metrics are scalar measures derived from the scenario distribution of an exposure vector at each time point. The framework provides PFE, EE, ENE, and ES as numeric metrics, plus PFE Scenario Index and PFE Scenario Name as diagnostic metrics. Understanding exposure concepts is a prerequisite for this page.

What metrics does the framework provide?

The ExposureMetric.isNumeric() method returns true for PFE, EE, ES, and ENE. PFE_INDEX and PFE_SCENARIO_NAME are not numeric metrics. The IExposureMetrics interface provides typed access to each metric. The convenience methods (getPotentialFutureExposure(), getExpectedExposure(), and so on) delegate to getExposureMetric(...):

How are the metrics computed?

Each metric is computed per time point from the exposure vector of the selected family, which holds one value per scenario. The sections below name each metric by its plugin key.

ExpectedExposure (plugin key: ExpectedExposure)

EE is the mean, across the scenarios, of the positive part of the bank-side exposure vector multiplied element by element by the scenario discount factor vector, then multiplied by the discount factor. It is computed per time point. When no scenario discount factor vector is available, the exposure vector is used as is.

ExpectedNegativeExposure (plugin key: ExpectedNegativeExposure)

ENE is computed like EE, from the counterparty-side exposure vector.

PotentialFutureExposure (plugin key: PotentialFutureExposure)

PFE is the KK-th largest value of the exposure vector at a time point. The rule is:
  1. Read the confidence level α\alpha from the Confidence Levels dimension member.
  2. Compute KK from the number of scenarios NN and α\alpha, rounded with the configured rounding method: K=round(N×(100−α)/100)K = \text{round}\bigl(N \times (100 - \alpha) / 100\bigr). If KK is 0, KK is 1.
  3. PFE at the time point is the KK-th largest exposure value.
  4. Where the measure aggregates time points, the result is the maximum PFE across the time points.
The rounding method is set per cube. See Configuration. For the formula and a worked explanation, see How is PFE calculated?.

ExpectedShortfall (plugin key: ExpectedShortfall)

ES is the mean of the KK largest values of the bank-side exposure vector at a time point, the tail scenarios. KK follows the same rule as for PFE, including the configured rounding method. Where the measure aggregates time points, the result is the maximum across the time points.

PFEIndex (plugin key: PFEIndex)

PFE Scenario Index is the position, in the exposure vector, of the scenario that gives the PFE value. It uses the same KK as PFE. The cube adds the index-offset setting of the scenarios properties to the index, so that, with the default offset of 1, scenarios are numbered from 1. See the scenarios properties. The measure is not aggregated above the time point level.

PFEScenarioName (plugin key: PFEScenarioName)

PFE Scenario Name maps the PFE Scenario Index to the name that the cube assigns to that scenario. The names come from the scenarios properties. See the scenarios properties.

How are metrics applied to each exposure family?

Each metric applies to whichever exposure vector family it is computed from. The same definitions produce EE, PFE, and ES for gross, netted, and collateralized exposure. The measure name in the cube reflects the family (for example, gross PFE vs. netted PFE). The IExposureAndMetricsMeasures interface combines an exposure vector family with its metrics:
The IInframarginalExposureAndMetricsMeasures interface adds inframarginal metrics and the incremental contribution metric: