> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# InternalModelApproach

> Internal Model Approach ES, IMCC, and SES measures with their MAR33 formulas, required hierarchies, and variations, plus supporting technical PnL vector and LH measures used across the IMA calculation chain.

All measures in this section disregard the actual capital treatment of individual positions and compute charges as if all positions were under IMA approach.

> [!NOTE]
>
> Applying a filter on [\[Booking\].\[FRTB Model\]](../dimensions/booking#frtb-model) equal to "IMA" limits the scope to positions officially under the "IMA" approach.

### CA

| | |
| - | - |
| **Description** | The aggregate (non-DRC) capital requirement which disregards individual desks capital treatment, as if all positions were under IMA approach |
| **Variations** | [Euler](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#euler), [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental), [Spot](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#spot) |
| **Reference** | {baselLink("MAR", 33, 41)} |
| **Notation** | $C_A$ |

**Formula**

$C_A=max\left \{ IMCC_{t-1} + SES_{t-1}; m_c \cdot IMCC_{avg}+SES_{avg} \right \}$

### ES (Basic Non-Modellable Idiosyncratic)

| | |
| - | - |
| **Description** | Technical measure |

A technical measure used in the expected shortfall calculation for non-modellable idiosyncratic risk factors.

### ES (Basic Non-Modellable Idiosyncratic) Differential

| | |
| - | - |
| **Description** | Technical measure |

A technical measure computed on the reference-shifted (Differential) idiosyncratic NMRF P\&L vector. It feeds the [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) variation of [ES (ISES)](#es-ises).

### ES (Basic Non-Modellable Non-Idiosyncratic)

| | |
| - | - |
| **Description** | Technical measure |

A technical measure used in the expected shortfall calculation for non-modellable non-idiosyncratic risk factors.

### ES (Basic Non-Modellable Non-Idiosyncratic) Differential

| | |
| - | - |
| **Description** | Technical measure |

A technical measure computed on the reference-shifted (Differential) non-idiosyncratic NMRF P\&L vector. It feeds the [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) variation of [ES (SES)](#es-ses).

### ES (Basic)

| | |
| - | - |
| **Description** | Calculates the expected shortfall from the P\&L vectors. |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes), [Data Sets](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#data-sets), [Liquidity Horizons](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#liquidity-horizons) |
| **Reference** | {baselLink("MAR", 33, 3)} |

### ES (Basic).D2D

| | |
| - | - |
| **Description** | Day-to-day (DtD) change for the measure ES (Basic) |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes), [Data Sets](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#data-sets), [Liquidity Horizons](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#liquidity-horizons) |

### ES (Capital Constrained)

| | |
| - | - |
| **Description** | The non-diversifiable risk class ES charges (also known as constrained expected shortfall charge) |
| **Reference** | {baselLink("MAR", 33, 15)} |
| **Notation** | $ \sum_{i=1}^{R}{IMCC(C_i)} \text{ where } IMCC(C_i)=ES_{R,S,i} \cdot \frac{ES_{R,C,i} }{ES_{R,C,i} }$ |

The measure takes the results of [ES (Capital)](#es-capital) calculation for the individual Risk Classes (not 'allin') and then sums them up.

### ES (Capital Unconstrained)

| | |
| - | - |
| **Description** | The unconstrained expected shortfall charge |
| **Reference** | {baselLink("MAR", 33, 15)} |
| **Notation** | $IMCC(C)$ |

**Formula**

$IMCC(C)=ES_{R,S} \cdot \frac{ES_{F,C} }{ES_{R,C} }$

This measure represents expected shortfall across risk classes, liquidity-adjusted and scaled to stress period.

Also referred to as "unconstrained".

### ES (Capital)

| | |
| - | - |
| **Description** | For each risk class and allin risk class, this is expected shortfall charge |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes) |
| **Reference** | {baselLink("MAR", 33, 4)} |

**Formula**

$ES = ES_{R,S} \cdot \frac{ES_{F,C}}{ES_{R,C}}$

The measure takes the result of the [ES (Liquidity Adj.)](#es-liquidity-adj) measure filtered by the \[Risk].\[Data Sets] equal to 'Reduced Set Stressed'. It then scales that result by a ratio. The ratio is the [ES (Liquidity Adj.)](#es-liquidity-adj) for \[Risk].\[Data Sets] equal to 'Full Set Current' divided by the [ES (Liquidity Adj.)](#es-liquidity-adj) for the 'Reduced Set Current'.

Note that the ratio of the [ES (Liquidity Adj.)](#es-liquidity-adj) for the \[Risk].\[Data Sets] equal to 'Full Set Current' and [ES (Liquidity Adj.)](#es-liquidity-adj) for the 'Reduced Set Current' can be displayed using [ES (Current Ratio)](#es-current-ratio).

### ES (Current Ratio)

| | |
| - | - |
| **Description** | For each risk class and allin risk class, this is the ratio of the liquidity adjusted ES for full current set and ES for reduced current set. It is floored at 1. |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes) |
| **Reference** | {baselLink("MAR", 33, 6)} |

**Formula**

$\max\left(\frac{ES_{F,C}}{ES_{R,C}},1\right)$

### ES (ISES)

| | |
| - | - |
| **Description** | The measure shows the capital requirement for each non-modellable idiosyncratic risk factor (I-type risk factors and J-type risk factors) |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes), [Risk Factors](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-factors) |
| **Reference** | {baselLink("MAR", 33, 17)} |

### ES (ISES) Differential

| | |
| - | - |
| **Description** | Technical measure |

Equal to $-1 \times$ [ES (Basic Non-Modellable Idiosyncratic) Differential](#es-basic-non-modellable-idiosyncratic-differential). It feeds the [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) variation of [ES (ISES)](#es-ises).

### ES (Liquidity Adj.)

| | |
| - | - |
| **Description** | Generic regulatory liquidity-adjusted ES measure |
| **Variations** | [Euler](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#euler) |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes), [Data Sets](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#data-sets) |
| **Reference** | {baselLink("MAR", 33, 4)} |

**Formula**

$ES = \sqrt{\left(ES_T(P)\right)^2 + \sum_{j\geq 2}\left(ES_T(P,j)\sqrt{\frac{(LH_j - LH_{j-1})}{T}}\right)^2}$

This measure applies liquidity horizons adjustment to the [ES (Basic)](#es-basic) measure.
This measure needs to be combined with `[Risk].[Risk Classes]` and `[Risk].[Data Sets]` to produce a business interpretable result.

### ES (Liquidity Horizon Adjusted Euler)

| | |
| - | - |
| **Description** | The Euler capital-allocation counterpart of [ES (Liquidity Adj.)](#es-liquidity-adj), used to allocate the liquidity-adjusted ES result down to individual components (for example, desks) |

**Formula**

$ES_{\text{Euler}} = \frac{ES_{\text{Liq Hor Adj Sq Euler}}}{ES_{\text{Liquidity Adj. Reference}}}$

### ES (Model Variation)

| | |
| - | - |
| **Description** | For each risk class and allin risk class, this is the ratio of the liquidity adjusted ES for reduced current set and ES for full current set |
| **Required hierarchies** | [Risk Classes](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-classes) |
| **Reference** | {baselLink("MAR", 33, 5)} |

**Formula**

$\frac{ES_{R,C}}{ES_{F,C}}$

To evaluate how much variation of the full ES model is explained by the reduced set of risk-factors (MAR 33.5 (2) (b)), the ES (Model Variation) avg measure should be evaluated for the allin risk-class.

The ES (Model Variation) measure is the ratio of the ES (Liquidity Adj.) measures for the reduced and full sets of risk factors (over the current data set), that is $ES_{R,C} / ES_{F,C}$. As per MAR33.5 (2) (b), this ratio should average over 75% for the last 12 weeks.

### ES (SES)

| | |
| - | - |
| **Description** | The measure shows the capital requirement for non-modellable, non-idiosyncratic risk factors (K-type risk factors) |
| **Required hierarchies** | [Risk Factors](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#risk-factors) |

### ES (SES) Differential

| | |
| - | - |
| **Description** | Technical measure |

Equal to $-1 \times$ [ES (Basic Non-Modellable Non-Idiosyncratic) Differential](#es-basic-non-modellable-non-idiosyncratic-differential). It feeds the [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) variation of [ES (SES)](#es-ses).

### ES (Scenario FX Rates)

| | |
| - | - |
| **Description** | The FX rate applied under the scenario, used to convert the base-currency PV vector into the ES calculation currency, expanded by scenario |
| **Required hierarchies** | [DRC Scenarios](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#drc-scenarios) |

Combine with `[Booking].[Trades]` to display trade-level input data by scenario.

### ES (Scenario PV)

| | |
| - | - |
| **Description** | The scenario portfolio valuation vector in display currency, expanded by scenario |
| **Required hierarchies** | [DRC Scenarios](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#drc-scenarios) |

Combine with `[Booking].[Trades]` to display trade-level input data by scenario.

### ES (Scenario PV Orig Ccy)

| | |
| - | - |
| **Description** | The scenario portfolio valuation vector in original (booking) currency, expanded by scenario |
| **Required hierarchies** | [DRC Scenarios](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#drc-scenarios) |

Combine with `[Booking].[Trades]` to display trade-level input data by scenario.

### ES Scenario Rank

| | |
| - | - |
| **Description** | Computes simulated PL rank for each ES Scenario |
| **Required hierarchies** | [DRC Scenarios](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#drc-scenarios) |

### IMCC

| | |
| - | - |
| **Description** | The internally modeled capital charge, also known as aggregate capital charge for modellable risk factors |
| **Variations** | [Euler](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#euler), [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) |
| **Reference** | {baselLink("MAR", 33, 15)} |
| **Notation** | $IMCC$ |

**Formula**

$IMCC = \omega \cdot IMCC( C ) $

The measure is based on the unconstrained expected shortfall charges - [ES (Capital Constrained)](#es-capital-constrained) and [Omega](#omega).

> [!NOTE]
>
> The decomposition of IMCC (involving the Risk Class hierarchy) will use the compact formula without Omega:
>
> $$
> IMCC=\rho \left( IMCC(C) \right)+(1-\rho) \left( \sum_{i=1}^R IMCC(C_i) \right)
> $$

### IMCC.D2D

| | |
| - | - |
| **Description** | Day-to-day change for a measure |

**Formula**

$IMCC_{t}-IMCC_{t-1}$

### Omega

| | |
| - | - |
| **Description** | The IMCC multiplier reflecting weighted average of 1 and the ratio of undiversified IMCC(C) to diversified IMCC(C) (BCBS 395: 2.1 Q1). May be computed on a different date |
| **Notation** | $\omega$ |

**Formula**

$\omega=\rho +(1-\rho) \frac{ \sum_{i=1}^R IMCC(C_i) }{ IMCC(C)}$

The reference date is set with the hierarchy \[Dates].\[OmegaDate].\[OmegaDate].

The measure is based on the weighted average of the constrained and unconstrained expected shortfall charges - [ES (Capital Constrained)](#es-capital-constrained) and [ES (Capital Unconstrained)](#es-capital-unconstrained).

With $\omega$ [IMCC](#imcc) formula can be rewritten as:

$$
IMCC = \omega \cdot IMCC( C )
$$

### PnL Expand

| | |
| - | - |
| **Description** | The simulated PL vectors - input data for ES calculation |
| **Required hierarchies** | [Scenarios](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#scenarios) |

Using this measure, you can display trade level input data of the ES calculation.
We recommend combining this measure with the \[Booking].\[Trades] hierarchy. The \[Risk].\[Liquidity Horizons], \[Risk].\[Risk Classes] and \[Risk].\[Data Sets] hierarchies are also recommended.

### SES

| | |
| - | - |
| **Description** | The stressed expected shortfall, as if all positions were under IMA |
| **Variations** | [Euler](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#euler), [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) |
| **Reference** | {baselLink("MAR", 33, 17)} |
| **Notation** | $SES$ |

**Formula**

$SES = \sqrt{\sum_{i=1}^{I}ISES_{NM,i}^2}+\sqrt{\sum_{j=1}^{J}ISES_{NM,j}^2}+\sqrt{\left ( \rho \cdot \sum_{k=1}^{K}SES_{NM,k} \right )^2 + (1-\rho^2) \cdot \sum_{k=1}^{K}SES_{NM,k}^2}$

The measure is implemented as follows:

* for I\_type non-modellable risk factors and J\_type (non-modellable idiosyncratic credit risk factors) - it aggregates the squared stress scenario capital charges by risk factor (see [ES (ISES)](#es-ises)), then takes a square root,
* for K\_type non-modellable risk factors, it computes the ES measure for each risk factor (see [ES (SES)](#es-ses)) and aggregates them with the prescribed correlation factor.

Use the **Idiosyncratic** hierarchy to break down the charge into idiosyncratic and non-idiosyncratic components and the **Risk Classes** hierarchy to display the risk factor's risk class.

Note that the SES measure disregards the actual capital treatment of individual positions. It computes charges as if all positions are under IMA. To limit the scope to positions officially under the "IMA" approach, apply a filter on **FRTB Model** equal to "IMA".

### SES Differential

| | |
| - | - |
| **Description** | Technical measure |

Computed using the same aggregation formula as [SES](#ses), applied to [ES (ISES) Differential](#es-ises-differential) and [ES (SES) Differential](#es-ses-differential) instead of their base counterparts. It feeds the [Incremental](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#incremental) variation of [SES](#ses).

### Squared ES (Liquidity Adj.)

| | |
| - | - |
| **Description** | The expression under the root of the liquidity-adjusted expected shortfall formula |
| **Reference** | {baselLink("MAR", 33, 4)} |

**Formula**

$ES^2 = \left(ES_T(P)\right)^2 + \sum_{j\geq 2}\left(ES_T(P,j)\sqrt{\frac{(LH_j - LH_{j-1})}{T}}\right)^2$

### Squared LHScaleFactor

| | |
| - | - |
| **Description** | The current liquidity horizon minus the previous and divided by the base liquidity horizon |
| **Required hierarchies** | [Liquidity Horizons](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#liquidity-horizons) |
| **Reference** | {baselLink("MAR", 33, 4)} |

**Formula**

$\frac{(LH_j-LH_{j-1})}{T}$

### Squared LHScaleFactor Reference

| | |
| - | - |
| **Description** | The [Squared LHScaleFactor](#squared-lhscalefactor) value at the ReferenceLevel, used as the baseline for [Euler (numerical)](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/measure-variations.md#euler) capital allocation |
| **Required hierarchies** | [Liquidity Horizons](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#liquidity-horizons) |
| **Reference** | {baselLink("MAR", 33, 4)} |

## Technical

Technical measures supporting the Internal Model Approach (IMA) calculations.

### ES (base PV)

| | |
| - | - |
| **Description** | The base (day-0) portfolio valuation in display currency, converted from [ES (base PV orig ccy)](#es-base-pv-orig-ccy) via FX |

This measure is subtracted from the per-scenario PV vector to build the ES PnL vector.

### ES (base PV orig ccy)

| | |
| - | - |
| **Description** | The base (day-0) portfolio valuation in original (booking) currency |

This measure feeds [ES (base PV)](#es-base-pv).

### ES (PnL Vector) Modellable CCY

| | |
| - | - |
| **Description** | The FX-converted, per-scenario PnL vector filtered to modellable risk factors only |

This measure feeds [ES (Basic)](#es-basic), [PnL Expand](#pnl-expand), and [ES Scenario Rank](#es-scenario-rank).

### ES (PnL Vector) Non-Modellable Idiosyncratic CCY

| | |
| - | - |
| **Description** | The FX-converted, per-scenario PnL vector filtered to non-modellable, idiosyncratic risk factors |

This measure feeds [ES (PnL Vector) Non-Modellable Idiosyncratic](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/stresscalibration.md#es-pnl-vector-non-modellable-idiosyncratic) and the idiosyncratic NMRF capital requirement, [ES (ISES)](#es-ises).

### ES (PnL Vector) Non-Modellable Non-Idiosyncratic CCY

| | |
| - | - |
| **Description** | The FX-converted, per-scenario PnL vector filtered to non-modellable, non-idiosyncratic (systematic) risk factors |

This measure feeds [ES (PnL Vector) Non-Modellable Non-Idiosyncratic](https://docs.activeviam.com/solutions/frtb/6.0/cube/measures/stresscalibration.md#es-pnl-vector-non-modellable-non-idiosyncratic) and the non-idiosyncratic NMRF capital requirement, [ES (SES)](#es-ses).

### LH

| | |
| - | - |
| **Description** | The liquidity horizon assigned to the current risk factor bucket, read from the [Liquidity Horizons](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#liquidity-horizons) hierarchy level for the current location |

LH only applies where the risk factor is modellable; it is used internally by the IMA calculations.

### Previous LH

| | |
| - | - |
| **Description** | The value of [LH](#lh) at the previous position along the [Liquidity Horizons](https://docs.activeviam.com/solutions/frtb/6.0/cube/dimensions/risk.md#liquidity-horizons) hierarchy |

This measure is used to compute [Squared LHScaleFactor](#squared-lhscalefactor), which scales the ES calculation between consecutive liquidity-horizon buckets.
