FRTB Internal Models Approach (IMA): An End-to-End Guide to Market Risk Capital Calculation
A technical walkthrough of FRTB IMA, from trading desk approval and RFET to liquidity-adjusted expected shortfall, stressed calibration, NMRF capital, default risk, PLA, backtesting and final market risk RWA.
The big picture
A bank holds thousands of trades. Regulators want one number: how much capital it must hold against market-price risk. Under FRTB, banks may use their own risk model (the Internal Models Approach, IMA), but only if the model earns that right. So the framework answers three separate questions:
- Which desks may use IMA? (tests and approvals)
- Which risk factors may go into the model? (data evidence)
- How much capital do the resulting portfolios need? (the calculations)
The table shows the three IMA capital components, the standardised approach, and the PLA surcharge.
| Component | Plain-English meaning | Method |
|---|---|---|
| IMCC | Capital for ordinary market moves on factors we have good data for | Stressed, liquidity-adjusted 97.5% Expected Shortfall |
| SES | Capital for factors with too little data | Conservative stress scenarios |
| DRC | Capital for the risk that an issuer defaults | 99.9% default-loss VaR |
| SA | Fallback capital for desks that are not allowed IMA | Fixed regulatory recipe |
| PLA surcharge | Extra capital for desks with only a so-so model | Fraction of the positive SA-IMA gap |
The framework still uses VaR for backtesting and default capital, even though the main market-risk measure is ES.
The examples are illustrative. Supervisory approval and jurisdiction-specific implementation rules apply to actual banks.
1. The architecture of FRTB IMA
The flow, in words: trading book positions and market data come in. Each desk is checked for IMA eligibility. Eligible desks have their risk factors tested (RFET). Factors that pass go into scenarios, revaluation, liquidity-adjusted ES and IMCC. Factors that fail go to the stress-scenario charge (SES). Issuer defaults are handled by a separate model (DRC). Ineligible desks go to the standardised approach (SA). Everything is combined and converted to market risk RWA.
View Mermaid source
flowchart TD
A[Trading book positions and market data] --> B[Trading desk approval and eligibility]
B -->|Eligible green or amber desks| C[Risk factor mapping and RFET]
B -->|Ineligible or out of scope| U[Standardised approach capital]
C -->|Modellable factors| D[10-day scenarios and portfolio revaluation]
C -->|Non-modellable factors| N[Stress scenario capital]
D --> E[Liquidity horizon adjusted ES]
E --> F[Full current, reduced current, reduced stress ES]
F --> G[Cross-class and class-specific IMCC]
C --> H[Separate issuer default model where applicable]
G --> I[60-day aggregation and multiplier]
N --> I
H --> J[12-week DRC aggregation]
I --> K[Eligible desk capital]
J --> K
K --> L[Amber PLA surcharge and total capital aggregation]
U --> L
L --> M[Market risk RWA]2. Step 1: Establish the regulatory perimeter and desk eligibility
First, identify trading book positions under MAR11 and assign each position to a desk under MAR12. A desk needs a clear strategy, management, limits, and an accountable owner. The bank also needs supervisory permission.
The workflow:
- Check bank-wide governance: independent risk control, validation, valuation, stress testing and data systems.
- Gather bank-wide backtesting evidence and nominate desks.
- Test each desk on one-day VaR backtesting and P&L attribution (PLA), with a year of evidence.
- Get separate approval for default-risk modelling if the desk has issuer-default exposure. Failing either approval sends the desk to SA.
- Give each desk a green, amber or red PLA status. Amber desks may stay in IMA with a surcharge. Red or failed-backtesting desks go to SA.
- Update classifications quarterly. At least 10% of aggregate market risk capital must come from qualifying desks.
Apply regulatory transition provisions and any exceptional supervisory treatment when classifying desks.
Key distinction: a risk factor failing the data test usually just moves to the NMRF charge. A desk failing eligibility moves all its positions to SA.
3. Step 2: Build the positions and risk factor inventory
The portfolio's value is the sum over positions of: size x multiplier x FX rate x unit value (priced by a model that depends on the market state). Watch for two classic errors: applying a multiplier twice or FX conversion twice.
Here is the signed quantity, the contract multiplier, the unit price under market state and model or contract parameters , and the reporting-currency conversion. FX conversion can itself change across scenarios.
For every trade capture: trade ID, desk, product type, issuer, currency, maturity, strike, notional, pricing model, curve identifiers, data timestamp and current valuation. Then reconcile with front-office and finance systems.
| Class | Examples | Risk factors |
|---|---|---|
| Interest rate (IR) | Swaps, bonds, swaptions | Curves, inflation, basis, rate volatility |
| Equity (EQ) | Shares, futures, options | Spot, repo, dividends, volatility surface |
| FX | Forwards, options | Exchange rates, FX vol, relevant rate curves |
| Commodity (CO) | Oil futures and options | Forward curves, location basis, vol |
| Credit spread (CS) | Corporate bonds, CDS | Issuer spreads, systematic credit factors |
One trade can touch several classes. A foreign-currency corporate bond has rate, spread and FX risk. When computing class-specific ES, keep the trade but shock only that class's factors. A practical factor key looks like class / underlying / currency / curve / tenor / strike / risk-type. Unlike the standardised approach, IMA is not just adding up pre-weighted sensitivities.
4. Step 3: Collect and validate market data
Two different datasets:
- Calibration data: histories used to build scenarios. The current window is the latest 12 months. Keep a longer archive back to 2007 for stress.
- Real-price evidence: actual transactions or executable quotes used to decide if a factor is modellable. A smooth, interpolated daily series is not real-price evidence.
Clean the data: align calendars and closing times, check units and corporate actions, find stale values, duplicates, outliers and gaps. Document proxy and interpolation policies, and keep original observations separate from model transformations. For stress, keep joint shocks from the same dates. Never sample each factor's history independently, or you destroy the correlations.
Check vendor quality, curve consistency, and volatility surfaces. Document the extrapolation policy alongside proxy and interpolation policies.
5. Step 4: Run the Risk Factor Eligibility Test (RFET)
In plain English: can we trust the price history of this factor? A real price needs qualifying evidence: a bank transaction, a verifiable arm's-length trade or a committed executable quote. Count unique dates per factor.
Two routes to pass (MAR31):
- Criterion A: at least 24 qualifying dates in the year, and every rolling 90-day window has at least 4.
- Criterion B: at least 100 qualifying dates in the year.
Let be the set of qualifying dates for factor , its total, and its count in rolling 90-calendar-day window .
A factor passes if it satisfies A or B. Criterion A is monitored monthly, and modellability is reassessed quarterly.
Check the prescribed alignment between the observation window and ES calibration, including the one-month limit where applicable. For curves, surfaces, or cubes, use the permitted bucketing and representative mapping rules. Vendor observations require supporting transaction or quote evidence.
| Factor | Qualifying dates | Minimum in a 90-day window | Result |
|---|---|---|---|
| USD 5Y swap rate | 210 | 43 | Pass (B) |
| Large-cap stock spot | 120 | 18 | Pass (B) |
| Corporate 5Y credit spread | 34 | 5 | Pass (A) |
| Long-dated exotic volatility | 25 | 2 | Fail |
| Illiquid commodity basis | 18 | 3 | Fail |
Note the exotic vol: 25 dates clears the 24 minimum, but one 90-day window has only 2 observations, so criterion A fails. The credit spread has just 34 dates but is evenly spread, so it passes.
Passing the count test is necessary but not sufficient. Data must also capture market-wide and idiosyncratic risk, volatility, correlation and stress behaviour. If evidence or modelling quality is weak, classify the factor as NMRF. NMRFs are not shocked in IMCC, but they still appear in RTPL if they are part of the desk's risk model.
6. Step 5: Generate 10-day market scenarios
In plain English: we want to know what prices could do over 10 business days, because that is the base horizon. The model may use historical simulation, Monte Carlo or another validated method, but the 10-day ES must reflect actual modelled 10-day moves, not one-day ES multiplied by the square root of 10.
For historical simulation, each scenario is a 10-day change. Two ways to measure change:
- Log return for positive prices: z = log( X today / X ten days ago ). The shock is applied as X x e^z.
- Absolute change for rates, spreads and vol changes: z = X today - X ten days ago. The shock is applied as X + z. A 25 basis point rate change is 0.0025.
Do not take logs of negative prices or rates. Overlapping 10-day windows are allowed. Starting with 250 daily levels gives 240 overlapping changes.
If the calibration window is defined by scenario end dates, obtain sufficient observations before the window to calculate all 10-day changes.
Monte Carlo alternative: draw Z = mean + L x e, where L is the Cholesky factor of a validated 10-day covariance matrix and e is random noise. Gaussian draws are a simple illustration. Real models may need fat tails, jumps and stressed correlations. Scenarios use real-world dynamics, while option pricing inside each scenario may use risk-neutral dynamics.
7. Step 6: Revalue the current portfolio under each scenario
Take today’s portfolio, apply each scenario’s shocks, reprice, and subtract today’s value. Reverse the sign to express the result as a loss. The ES sample uses scenario revaluations of the current portfolio.
How to reprice:
- Full revaluation of each trade under each scenario (best for nonlinear or path-dependent products).
- Approximations, if approved. For a bond: change ~ -duration x value x yield move + 0.5 x convexity x value x (yield move)^2. In general, a Taylor expansion with a gradient (delta, vega, etc.) and second-order terms (gamma, vanna, volga).
The gradient is and the Hessian is . Apply a consistent valuation convention for cash flows and time passage.
Two examples from the article: a European call priced with Black-Scholes, and a lookback option, whose payoff depends on the highest price seen. When repricing an existing lookback, keep its already-observed running maximum and remaining life, and simulate only the remaining path. Use common random numbers so Monte Carlo noise does not swamp the P&L.
For the non-dividend-paying European call and fixed-strike lookback call, respectively:
Here is the running maximum at maturity and the lookback payoff is .
Important: add up scenario P&L across all trades before computing ES. Summing each trade's ES would throw away diversification.
8. Step 7: Calculate VaR and Expected Shortfall
- VaR at level a is the loss threshold that is exceeded only in the worst (1 - a) of cases. It marks where the tail starts.
- ES at level a is the average loss inside that tail. It tells you how bad the tail is.
Using the loss CDF :
For discrete scenarios: sort losses worst to best, let h = (1 - a) x n, and take the worst k = floor(h) losses at full weight plus the fractional remainder of the next one, then divide by h.
Let denote the fractional remainder.
Omit the fractional term when . Use weighted-tail integration for unequal scenario weights.
With 250 scenarios at 97.5%, h = 6.25: six worst losses in full plus a quarter of the seventh.
Worked example (USD millions). Worst seven losses: 20, 18, 16, 15, 13, 12, 10.
As a benchmark for , and .
9. Step 8: Assign regulatory liquidity horizons
In plain English: in a crisis you cannot exit every position at once. A liquidity horizon (LH) is how long it would take to sell or hedge a factor under stress. Basel allows five levels: 10, 20, 40, 60 and 120 days. They apply to risk factors, not whole instruments.
Selected values:
| Factor category | LH (days) |
|---|---|
| Rates, specified currencies (EUR, USD, GBP, AUD, JPY, SEK, CAD and domestic currency) | 10 |
| Rates, other currencies | 20 |
| Rate volatility and other rates risk | 60 |
| Sovereign spread, investment grade | 20 |
| Sovereign spread, high yield | 40 |
| Corporate spread, investment grade | 40 |
| Corporate spread, high yield | 60 |
| Credit spread volatility and other credit spread factors | 120 |
| Large-cap equity spot | 10 |
| Small-cap equity spot | 20 |
| Large-cap equity volatility | 20 |
| Small-cap equity volatility | 60 |
| Other equity factors | 60 |
| FX spot, specified pairs | 10 |
| FX spot, other pairs | 20 |
| FX volatility and other FX factors | 40 |
| Energy/carbon price | 20 |
| Precious and non-ferrous metal price | 20 |
| Other commodity price | 60 |
| Energy/carbon and precious/non-ferrous metal volatility | 60 |
| Other commodity volatility and other commodity factors | 120 |
Other rules: large-cap equity repo and dividends use 20, other equity repo and dividends use 60. Short-dated instruments are capped by maturity, rounded up to the next permitted level (a 30-day instrument with rate vol, normally 60, maps to 40). Multi-sector indices use the weighted underlying horizon rounded up.
Apply the eligibility conditions for specified FX pairs and first-order crosses. Rate basis and inflation follow the relevant currency horizons. A desk may use an approved longer horizon.
10. Step 9: Calculate liquidity-adjusted ES using nested subsets
The intuition: an illiquid position stays on your books longer, so it stays exposed to more 10-day periods. The method simulates this without 120-day simulations.
- Compute ES on the full set of factors (run 1: all factors, LH at least 10).
- Keep only factors with LH at least 20 and hold others fixed (run 2).
- Repeat for at least 40, at least 60 and at least 120.
For trade , the factors eligible for each nested run are:
The subsets are nested, not disjoint. Call the five ES values e1 to e5. The Basel formula is:
Where do the weights come from? Each is (LH(j) - LH(j-1)) / 10: the number of extra 10-day blocks that slice adds.
| Run | Factors shocked | Incremental horizon | Squared weight |
|---|---|---|---|
| 1 | 10, 20, 40, 60, 120 | 10 | 1 |
| 2 | 20, 40, 60, 120 | 10 | 1 |
| 3 | 40, 60, 120 | 20 | 2 |
| 4 | 60, 120 | 20 | 2 |
| 5 | 120 | 60 | 6 |
Two sanity tests every implementation should pass: if all factors have LH 10, the result is just |e1|. If the only exposure has LH 120, all five ES values are equal and the result is sqrt(12) x |e1|, because 1 + 1 + 2 + 2 + 6 = 12.
Worked example (USD millions), e = (10, 8, 5, 3, 1):
The formula applies to every full/reduced and current/stress calculation, and to both diversified and constrained portfolios. Hedges can disappear when lower-LH factors are frozen, so do not require e1 >= e2 >= ... as a validation rule.
11. Step 10: Construct the reduced modellable factor set
Why it exists: many factors that are observable today do not have reliable data back to 2007, but stress calibration needs that long history. So the bank picks a reduced set R (a subset of the full set F) with robust long histories, subject to supervisory approval.
Three ES measures:
- ES(F,C): full set, current data.
- ES(R,C): reduced set, current data.
- ES(R,S): reduced set, stressed data.
The coverage test: averaged over the last 12 weeks, the ratio ES(R,C) / ES(F,C) must be at least 0.75. Both parts use current data. It is not stressed over current, and not a ratio of averages.
Worked example: the twelve weekly ratios 0.80, 0.82, 0.78, 0.77, 0.81, 0.83, 0.79, 0.76, 0.80, 0.82, 0.78, 0.81 average 0.7975, which passes. One observation at 80% proves nothing. Define a policy for zero denominators, and never silently replace a missing ratio with 1.
12. Step 11: Select the stressed period
The idea: find the worst 12-month stretch in history for today's portfolio. Build every contiguous 12-month window since at least 2007, compute stressed, liquidity-adjusted ES for the aggregate and each class using the reduced set, and run the IMCC formula. Pick the window with the highest IMCC.
- The same stress window applies to every class and to the diversified portfolio. No picking separate dates per class.
- It need not be the 2008 crisis. If another year is worse for today's risk profile, use that.
- Review the stress period and reduced set at least quarterly and on material changes.
- NMRFs follow different stress-period rules (Step 14).
13. Step 12: Calculate diversified and constrained ES
Diversified = all five classes move together, so cross-class offsets count. Constrained (class i only) = only class i moves and the others stay fixed, so only within-class diversification counts.
For each scope (All, IR, EQ, FX, CO, CS) compute the three ES measures (full-current, reduced-current, reduced-stress), each with five nested horizon runs. That gives 18 headline ES results with five active classes (12 with three, 15 with four), and up to 90 logical subset ES calculations. The article notes that 90 is a loop upper bound, not a regulatory number. Reusing identical scenarios and skipping empty subsets reduces it (up to 63 distinct daily ES runs in one implementation).
14. Step 13: Calculate the Internally Modelled Capital Charge (IMCC)
For each scope i, scale the stressed reduced ES by how much the full set exceeds the reduced set today:
Use for the diversified scope and for class .
The floor of 1 stops the scaling from ever reducing the stressed ES. Then blend with 50/50 weights:
The first term gives credit for cross-class diversification. The second term gives none. Averaging them stops the bank from relying fully on assumed correlations.
Worked example (USD millions):
| Scope | Full/current | Reduced/current | Reduced/stress | Scaling (floored) | IMCC |
|---|---|---|---|---|---|
| Diversified | 15.43 | 12 | 20 | 1.2858 | 25.72 |
| IR | 10 | 8 | 14 | 1.25 | 17.50 |
| EQ | 8 | 6 | 11 | 1.3333 | 14.67 |
| FX | 3 | 3 | 5 | 1.00 | 5.00 |
| CO | 5 | 4 | 7 | 1.25 | 8.75 |
| CS | 7 | 6 | 10 | 1.1667 | 11.67 |
The class sum is about 57.58, so IMCC = 0.5 x 25.72 + 0.5 x 57.58 = 41.65. (These inputs are chosen to show the arithmetic, not from one simulated portfolio.)
Weekly shortcut (MAR33.15 FAQ1): with controls, the bank may refresh the ratio r = sum of IMCC(class) / IMCC(All) weekly and compute daily IMCC as IMCC(All) x (0.5 + 0.5 x r). This does not remove the need for daily desk ES, and the bank must be able to revert to a full daily calculation.
The implementation must prevent systematic understatement.
15. Step 14: Calculate stressed capital for non-modellable risk factors (NMRFs)
In plain English: a factor that fails RFET is not ignored. It gets a deliberately conservative stress charge, calibrated to be at least as tough as stressed 97.5% ES (MAR33.16-17).
15.1 Identify the stress period and horizon
Use the larger of 20 days and the assigned liquidity horizon, subject to a longer supervisory requirement. If a credible stress scenario cannot be built, use the maximum possible loss.
Stress period: one common 12-month period across NMRFs in the same risk class (different from the portfolio-wide ES stress period), with special treatment for idiosyncratic credit-spread and equity factors.
To illustrate adverse direction for a factor , test both directions and take the largest loss. A linear exposure can be approximated using its sensitivity. Options require nonlinear and potentially asymmetric revaluation. Combine exposures to the same factor before applying the shock.
15.2 Aggregate NMRF charges
Aggregation with three groups: approved zero-correlation idiosyncratic credit-spread charges a(i), idiosyncratic equity charges b(j), and all other charges c(k):
The 0.6 here is a different parameter from IMCC's 0.5. Zero-correlation treatment needs satisfactory evidence.
Worked example (USD millions): credit charges 3 and 4, equity charge 2, other charges 5 and 5.
Keep records of each charge, stress period, shock evidence, grouping, horizon and approvals. Do not net SES against IMCC.
16. Step 15: Calculate the Default Risk Charge (DRC)
Why it exists: ES captures everyday price moves. A sudden default can cause an additional jump loss that continuous shocks miss. The DRC measures the incremental loss from current marks, not what has already been lost.
16.1 Define the default-exposed portfolio
Include default-sensitive positions of approved desks, such as sovereign and corporate debt, credit derivatives, equities and defaulted debt. SA positions are excluded. Group by obligor and capture seniority, recovery, maturity, hedges and concentration. Counterparty credit risk is handled separately.
16.2 Calibrate default probabilities and losses
Use approved IRB PDs and LGDs where required (MAR33.37–39). PDs should reflect at least five years of historical default experience.
Jump-to-default loss: JTD = V(now) - V(after default). Example: a bond with face 100, current value 90 and recovery value 40 loses a further 50 on default, not 60. Shorts and protection positions may gain.
16.3 Simulate correlated defaults
In a downturn, defaults can cluster. MAR33.20 requires at least two types of systematic factors. The illustration uses region and industry factors.
Firm i defaults if Y(i) < inverse-normal( PD(i) ), so its default probability equals PD(i). Shared factors create dependence. Calibrate correlations to equity prices or spreads over ten years including stress, generally on a one-year horizon. Respect hedge maturities and default timing, and do not automatically reinvest matured positions. Designated equity sub-portfolios may use a 60-day minimum horizon under conditions in MAR33.20.
Then: simulate many scenarios, compute L = sum of (default flag x JTD), and take the 99.9% VaR. Use enough simulations that the extreme quantile is stable. The result is measured weekly:
Example: latest 8, 12-week mean 7, so DRC = 8 (USD millions). A one-year 99.9% quantile can barely be backtested directly. Validate with independent benchmarks and sensitivity tests.
17. Step 16: Calculate the P&L series for validation
Validation runs alongside the capital calculation, not just at the end. Each day, keep the portfolio and market snapshot, risk forecasts and P&L measures.
| P&L | Meaning | Positions | Used for |
|---|---|---|---|
| APL (actual) | What the desk actually made, with regulatory exclusions | Actual trading | Backtesting |
| HPL (hypothetical) | Front-office valuation of yesterday's portfolio held static | Static | Backtesting and PLA |
| RTPL (risk-theoretical) | Risk model's valuation of the same static portfolio | Static | PLA |
- RTPL includes modellable and non-modellable factors in the desk's risk model.
- HPL excludes intraday trading and new or modified trades. Fees and commissions are excluded from both APL and HPL (MAR32.22-34).
- HPL and RTPL need not use the same pricer. Their differences reveal missing factors and approximations.
- APL is not just today's mark minus yesterday's, because positions and cash flows change.
For an option desk, RTPL may be a sensitivity approximation: delta x price move + 0.5 x gamma x (price move)^2 + vega x vol move + theta x time + other terms. Derivatives must be computed for the actual instrument (a lookback depends on its running maximum) and validated rather than borrowed from a vanilla option.
18. Step 17: Perform bank-wide and desk-level backtesting
Backtesting uses one-day VaR, not ES. Forecasts come from information available at the previous close. The tested day must never be in its own calibration.
18.1 Define exceptions
An exception occurs when APL or HPL loss exceeds its VaR forecast. Missing required forecasts or P&L observations also count as exceptions. Take the larger of the two separate counts.
Example: positive VaR 2 million, APL -3 million, HPL -1 million. That is one APL exception and no HPL exception. The NMRF-related exception exclusion (MAR32.6) needs evidence, enough SES and notification with no supervisory objection. It is never automatic.
18.2 Bank-wide test and capital multiplier
Use bank-wide 99% one-day VaR over the last 250 days.
| Exceptions | Zone | Multiplier (before qualitative add-on) |
|---|---|---|
| 0-4 | Green | 1.50 |
| 5 | Amber | 1.70 |
| 6 | Amber | 1.76 |
| 7 | Amber | 1.83 |
| 8 | Amber | 1.88 |
| 9 | Amber | 1.92 |
| 10+ | Red | 2.00 |
The total multiplier m(c) includes any supervisory add-on. Serious problems can lead to approval being withdrawn. This bank-wide amber or red is different from a desk's PLA amber or red.
18.3 Desk-level test
A desk may have at most 12 exceptions at 99% and 30 at 97.5% (MAR32.19). Exceeding either threshold sends it to SA. A desk with 10 exceptions at 99% and 25 at 97.5% passes. A desk with 13 at 99% fails regardless of its 97.5% count and PLA result. Local rulebook boundary conditions apply.
Remember: bank-wide tests set the multiplier. Desk-level tests set eligibility.
The Kupiec unconditional coverage test compares the realised exception count with the expected rate across observations. Compare the statistic with a chi-square distribution with one degree of freedom. Christoffersen independence tests can also supplement the regulatory tests.
19. Step 18: Run the Profit and Loss Attribution (PLA) test
Question: does the risk engine explain what the front office says the desk made? Use the latest 250 paired daily HPL and RTPL observations (MAR32.35-42). Two tests catch different failures.
19.1 Spearman rank correlation
Rank each day’s HPL and RTPL, assigning average ranks for ties. Then calculate the correlation of the two rank series. The second formula applies without ties. A high correlation means the two models agree on the ordering of gain and loss days.
19.2 Kolmogorov–Smirnov (KS) distance
The KS distance is the largest vertical gap between the two empirical P&L distributions. Evaluate both CDFs at common observed P&L values and compare the resulting distance with the prescribed threshold.
19.3 Traffic-light outcome
| Zone | Condition | Consequence |
|---|---|---|
| Green | correlation above 0.80 and KS below 0.09 | Eligible if other requirements are met |
| Red | correlation below 0.70 or KS above 0.12 | Desk goes to SA |
| Amber | Neither | Eligible, with a capital surcharge |
Comparisons are strict, so a correlation of exactly 0.80 is not green. A desk returning from red needs green PLA and compliant backtesting, and supervisory approval still applies.
Examples: (0.92, 0.06) is green. (0.78, 0.10) is amber. (0.95, 0.13) is red: ranks agree strongly but the distributions differ materially. This is why both tests exist.
20. Step 19: Apply the capital multiplier and time averaging
In plain English: the final non-default capital is the larger of two numbers: yesterday's risk, and a smoothed 60-day average risk that is scaled up if the model has backtested poorly. This stops capital from dropping just because markets were calm yesterday.
With IMCC(t-1) and SES(t-1) the latest daily values, and 60-day averages of both (MAR33.41):
Add the default charge to get the eligible-desk capital.
Two traps: the multiplier m(c) applies to average IMCC only, not to SES or DRC. And you take the maximum of the two combined quantities, not the maximum of each component separately.
Worked example (USD millions). Latest IMCC 41.65, latest SES 15.25, mean IMCC 40, mean SES 14, five backtesting exceptions (multiplier 1.70), no qualitative add-on.
The average branch wins because the multiplier lifts it. With DRC = 8, IMA(G,A) = 82 + 8 = 90. Keep the 60-day and 12-week histories. MAR33.44 allows these averages to be taken at quarter-end for capital reporting.
21. Step 20: Calculate standardised capital and the PLA amber surcharge
In plain English: desks that cannot use IMA are charged under the standardised approach (SA), a fixed regulatory recipe (MAR20-23). Amber PLA desks may stay in IMA, but the bank pays a surcharge so that a so-so model does not get a full discount.
Three groups of desks: G (eligible green), A (eligible amber) and U (out of scope or model-ineligible). The SA charge for U is called C(U). Full SA is SA = SBM + DRC(SA) + RRAO: the sensitivities-based method (delta, vega, curvature), the SA default charge and the residual risk add-on. The detailed buckets, weights and correlations live in the Basel SA chapters, not in this article. Where the rules require joint aggregation, compute SA on the combined portfolio, not as a sum of desk charges.
Three SA quantities are needed:
- SA(i): standalone SA capital of desk i.
- SA(G,A): SA of all eligible green and amber positions aggregated together.
- SA(all desks): SA of the whole relevant trading book.
The surcharge (MAR33.45) is:
In words: the surcharge is a fraction of how much cheaper IMA is than SA for the eligible desks, and that fraction is half the amber desks' share of standalone SA. With no amber desks, S(PLA) = 0. Handle a zero denominator explicitly under approved policy. Do not mix standalone SA (used in k) with aggregated SA (used in the difference).
Worked example (USD millions). Standalone eligible SA sums to 120, of which amber desks contribute 30. Aggregated eligible SA is 110 and IMA is 90.
22. Step 21: Calculate aggregate capital and market risk RWA
The Basel MAR33.43 final aggregation is:
The min limits how far the surcharge and SA add-ons can push the total above full SA. The second term makes sure an eligible-portfolio IMA excess over SA is not simply erased. So it is not generally correct to say IMA capital is always capped by SA.
The 12.5 is the reciprocal of the 8% Basel minimum total capital ratio (1 / 0.08). It converts a capital requirement to RWA. It is not the bank's overall requirement, which also involves buffers, other risks and the Basel output floor.
22.1 End-to-end numerical result
Assume C(U) = 12 and SA(all desks) = 118 (USD millions), plus the inputs from earlier sections.
| Calculation | USD million |
|---|---|
| Diversified stressed ES after scaling | 25.72 |
| Sum of constrained stressed ES charges | 57.58 |
| Daily IMCC (50/50 blend) | 41.65 |
| Daily SES | 15.25 |
| Latest combined non-default charge | 56.90 |
| 60-day average branch (multiplier 1.70) | 82.00 |
| Regulatory non-default charge | 82.00 |
| DRC | 8.00 |
| Eligible IMA charge | 90.00 |
| PLA surcharge | 2.50 |
| SA for ineligible desks | 12.00 |
| Aggregate market risk capital | 104.50 |
| Market risk RWA | 1,306.25 |
These numbers are built to show the arithmetic, not fitted to a real bank. The lesson is the procedure: capital comes from stress scaling, liquidity aggregation, modellability, default modelling, model performance and the SA fallback, never from one ES figure.
23. Reference Python implementation of the aggregation and validation layer
The downloadable Python file implements the aggregation and validation layer. The example reproduces non-default capital of 82, an eligible IMA charge of 90, a PLA surcharge of 2.5, total capital of 104.5, and RWA of 1,306.25, all in USD millions.
| Function | What it does | Built-in safeguard |
|---|---|---|
| expected_shortfall | Sorts losses, takes the worst slice at 97.5%, includes the fractional scenario | Rejects empty, non-finite or invalid inputs |
| liquidity_adjusted_es | Applies weights (1, 1, 2, 2, 6) to the five nested ES values | Needs exactly five valid inputs |
| stressed_charge | stressed ES x max(1, full / reduced) | Zero reduced ES is an error unless the scope is truly empty |
| imcc | 50/50 blend of diversified and summed class charges | Reuses stressed_charge |
| ses | Aggregates NMRF charges with the 0.6 correlation | Rejects negative charges |
| backtesting_exceptions | Counts APL and HPL exceptions, returns the larger | Needs 250 aligned days. Missing data counts as an exception |
| backtesting_multiplier | Maps exceptions to 1.50-2.00 plus any add-on | Validates the count range |
| pla | Spearman and KS statistics, then green, amber or red | Strict threshold comparisons |
| default_charge | Larger of latest DRC and 12-week mean | Needs 12 valid weekly values |
| final_capital | Branches, surcharge, min/max aggregation, RWA | Rejects multipliers below 1.5 and inconsistent SA inputs |
The file ends with assertions that check the end-to-end result (104.5 and 1,306.25) and two sanity tests: the LH120-only case equals 2 x sqrt(12), and the stressed charge equals 12 for inputs (8, 10, 12).
Python implementation
import numpy as np
from scipy.stats import spearmanr, ks_2samp
LH = np.array([10, 20, 40, 60, 120])
W = np.diff(np.r_[0, LH]) / 10
def expected_shortfall(losses, alpha=0.975):
x = np.asarray(losses, dtype=float)
if x.ndim != 1 or x.size == 0 or not np.isfinite(x).all():
raise ValueError('Invalid scenario losses')
if not 0 < alpha < 1:
raise ValueError('Invalid confidence level')
x = np.sort(x)[::-1]
h = (1 - alpha) * len(x)
k = int(np.floor(h))
fraction = h - k
tail_sum = x[:k].sum()
if fraction > 0 and k < len(x):
tail_sum += fraction * x[k]
return float(tail_sum / h)
def liquidity_adjusted_es(subset_es):
e = np.asarray(subset_es, dtype=float)
if e.shape != (5,) or not np.isfinite(e).all():
raise ValueError('Five valid nested-subset ES inputs required')
return float(np.sqrt(np.dot(W, e**2)))
def stressed_charge(full_current, reduced_current, reduced_stress):
f, r, s = map(float, (full_current, reduced_current, reduced_stress))
if not np.isfinite([f, r, s]).all() or min(f, r, s) < 0:
raise ValueError('Invalid liquidity-adjusted ES inputs')
if r == 0:
if f == 0 and s == 0:
return 0.0 # only for a verified empty scope in this example
raise ValueError('Degenerate reduced ES: approved policy required')
return s * max(1.0, f / r)
def imcc(diversified, constrained):
return 0.5 * stressed_charge(*diversified) + 0.5 * sum(
stressed_charge(*triple) for triple in constrained
)
def ses(credit_idio, equity_idio, other):
a, b, c = (np.asarray(v, dtype=float) for v in
(credit_idio, equity_idio, other))
if any(v.ndim != 1 or not np.isfinite(v).all() or np.any(v < 0)
for v in (a, b, c)):
raise ValueError('Invalid NMRF charges')
rho = 0.6
return float(np.linalg.norm(a) + np.linalg.norm(b) +
np.sqrt((rho * c.sum())**2 + (1-rho**2)*np.dot(c, c)))
def backtesting_exceptions(apl, hpl, var):
a, h, v = (np.asarray(x, dtype=float) for x in (apl, hpl, var))
if a.shape != (250,) or a.shape != h.shape or h.shape != v.shape:
raise ValueError('Aligned 250-day backtesting sample required')
if np.any(v[np.isfinite(v)] < 0):
raise ValueError('Expected nonnegative VaR loss threshold')
bad_a = (~np.isfinite(a)) | (~np.isfinite(v)) | (-a > v)
bad_h = (~np.isfinite(h)) | (~np.isfinite(v)) | (-h > v)
na, nh = int(bad_a.sum()), int(bad_h.sum())
return na, nh, max(na, nh)
def backtesting_multiplier(n, qualitative_addon=0.0):
if not isinstance(n, (int, np.integer)) or not 0 <= n <= 250:
raise ValueError('Invalid number of exceptions')
if not np.isfinite(qualitative_addon) or qualitative_addon < 0:
raise ValueError('Invalid qualitative add-on')
schedule = {5: 1.70, 6: 1.76, 7: 1.83, 8: 1.88, 9: 1.92}
base = 1.5 if n <= 4 else schedule.get(n, 2.0)
return base + qualitative_addon
def pla(hpl, rtpl):
h, r = np.asarray(hpl, float), np.asarray(rtpl, float)
if h.shape != (250,) or r.shape != h.shape:
raise ValueError('Aligned 250-day PLA sample required')
if not np.isfinite(h).all() or not np.isfinite(r).all():
raise ValueError('Invalid PLA observations: escalate')
rho = float(spearmanr(h, r).statistic)
ks = float(ks_2samp(h, r).statistic)
if not np.isfinite(rho):
raise ValueError('Undefined rank correlation: escalate')
if rho > 0.80 and ks < 0.09:
zone = 'green'
elif rho < 0.70 or ks > 0.12:
zone = 'red'
else:
zone = 'amber'
return rho, ks, zone
def default_charge(latest, previous_12):
previous = np.asarray(previous_12, float)
if (previous.shape != (12,) or not np.isfinite(previous).all()
or np.any(previous < 0) or not np.isfinite(latest) or latest < 0):
raise ValueError('Valid latest and 12 weekly DRC values required')
return max(float(latest), float(previous.mean()))
def final_capital(imcc_latest, ses_latest, imcc_history, ses_history,
mc, drc, sa_u, sa_eligible, sa_all,
sa_amber_standalone, sa_eligible_standalone):
ih, sh = np.asarray(imcc_history, float), np.asarray(ses_history, float)
if ih.shape != (60,) or sh.shape != (60,):
raise ValueError('Expected 60-day history')
scalar = np.array([imcc_latest, ses_latest, mc, drc, sa_u,
sa_eligible, sa_all, sa_amber_standalone,
sa_eligible_standalone], float)
if (not np.isfinite(scalar).all() or np.any(scalar < 0)
or not np.isfinite(ih).all() or not np.isfinite(sh).all()
or np.any(ih < 0) or np.any(sh < 0) or mc < 1.5
or sa_amber_standalone > sa_eligible_standalone):
raise ValueError('Invalid capital input')
ca = max(imcc_latest + ses_latest, mc * ih.mean() + sh.mean())
ima = ca + drc
k = 0.0 if sa_amber_standalone == 0 else (
0.5 * sa_amber_standalone / sa_eligible_standalone)
surcharge = k * max(0.0, sa_eligible - ima)
acr = min(ima + surcharge + sa_u, sa_all) + max(0.0, ima-sa_eligible)
return {'CA': ca, 'IMA_GA': ima, 'PLA_surcharge': surcharge,
'capital': acr, 'RWA': 12.5 * acr}
full = liquidity_adjusted_es([10, 8, 5, 3, 1])
headline_imcc = imcc((full, 12, 20), [
(10, 8, 14), (8, 6, 11), (3, 3, 5), (5, 4, 7), (7, 6, 10)
])
headline_ses = ses([3, 4], [2], [5, 5])
result = final_capital(
headline_imcc, headline_ses, np.full(60, 40.0), np.full(60, 14.0),
backtesting_multiplier(5), default_charge(8, np.full(12, 7.0)),
12, 110, 118, 30, 120
)
assert np.isclose(result['capital'], 104.5)
assert np.isclose(result['RWA'], 1306.25)
assert np.isclose(liquidity_adjusted_es([2, 2, 2, 2, 2]), 2*np.sqrt(12))
assert np.isclose(stressed_charge(8, 10, 12), 12)
print(result)Expected output:
for scope in [ALL, IR, EQ, FX, CO, CS]:
for factor_set, period in [(F, current), (R, current), (R, stress)]:
for horizon in [10, 20, 40, 60, 120]:
select factors belonging to scope and factor_set
filter position/factor pairs by LH >= horizon
for scenario in period:
apply synchronized 10-day shocks to selected pairs only
revalue every current position; aggregate P&L
store portfolio loss
calculate 97.5% ES from portfolio losses
calculate liquidity-adjusted ES using squared horizon weights
calculate stress-scaled charge for scope
blend all-scope charge and sum of single-class charges 50/50
calculate NMRF SES, DRC, SA and capital aggregation separately24. Production architecture, controls and operating schedule
In plain English: a real system keeps these jobs separate: position store, pricing, market data and evidence, scenario generation, P&L storage, capital aggregation, validation and reporting. A useful mental model is a P&L "cube" with axes valuation date x scope x factor set x calibration period x liquidity horizon x scenario x trade. Real systems aggregate early where permitted and keep traceable intermediate results, instead of storing the whole dense cube.
| Process | Frequency or trigger |
|---|---|
| Position capture and pricing reconciliation | Daily |
| Bank-wide and desk ES; diversified IMCC inputs | Daily |
| APL, HPL, RTPL and one-day VaR monitoring | Daily |
| NMRF charge history and exposure updates | Daily values kept for averaging |
| Constrained/diversified IMCC ratio | Daily by default; controlled weekly update allowed |
| DRC model | Weekly |
| RFET criterion A monitoring | Monthly |
| RFET, desk PLA and backtesting classifications | Quarterly |
| Stress window and reduced factor set | At least quarterly, and on material change |
| Current calibration data | At least quarterly |
| Final 60-day and 12-week averages and capital | Quarter-end reporting, monitored more often |
| Independent validation and governance review | Ongoing, per approved schedule |
Implementation checks
- Every material factor exposure goes to ES or SES, and DRC covers issuer-default exposures.
- Use real modelled 10-day changes with time-aligned scenarios. Test the 10-day-only and 120-day-only cases.
- Reprice identical trades under identical shocks. Check zero-shock P&L, multipliers, currency conversion and signs.
- Check reduced-set coverage over the full 12 weeks. Save the stress search results.
- Use one stress window for all modellable classes, and apply the floor of 1 on the scaling ratio at every scope.
- Check NMRF grouping approvals, the 20-day minimum horizon, the 0.6 parameter, and no double capitalisation of a factor.
- Benchmark default probabilities, joint defaults, recoveries and Monte Carlo tail error.
- Backtest with lagged forecasts and separate APL/HPL counts. Run PLA on empirical CDFs with exact boundary tests.
- Reconcile SA scope, desk classifications, histories, the qualitative add-on, the PLA surcharge and RWA.
- Keep data lineage: model versions, scenario windows, RFET evidence, mappings, position snapshots, overrides, approvals and Monte Carlo seeds.
An independent validator should replicate the core calculations, test boundary and adverse cases, challenge proxies and mappings, investigate attribution gaps and confirm the controls prevent underestimation. Stress testing beyond the historical sample supplements model capital.
25. Common implementation mistakes
| Mistake | Correct interpretation |
|---|---|
| Using 99% VaR as principal IMA capital measure | Use 97.5% stressed liquidity-adjusted ES for modellable market risk; VaR remains for backtesting and DRC. |
| Scaling daily ES by to obtain base ES | Model 10-day factor changes directly. |
| Using disjoint LH buckets | Use nested sets containing all factors at or above each horizon. |
| Leaving out the square on a weighted ES term | Sum squared scaled ES terms before taking the square root. |
| Testing stressed/current ES against 75% | Average reduced-current/full-current ratios over 12 weeks. |
| Selecting a different modellable stress period for each class | Use the common period maximizing aggregate IMCC. |
| Treating failed RFET as zero risk or automatic desk failure | Calculate a separate SES charge for NMRFs of eligible desks. |
| Treating the 12 ES values as a universal count | The number is three per scope, including the diversified scope. |
| Applying the bank-wide multiplier to SES or DRC | Apply it only to average IMCC in the combined non-default capital formula. |
| Using fitted normal CDFs or comparing different x-values for PLA KS | Use the two empirical CDFs evaluated at common P&L values. |
| Summing APL and HPL exceptions | Use the greater of the two separate counts. |
| Ignoring red desks or amber surcharge | Route ineligible desks to SA and calculate the applicable PLA surcharge. |
| Confusing market risk capital and market risk RWA | Multiply capital by 12.5 for RWA. |
26. Conclusion
IMA is a risk-measurement system and a permission system. A bank first proves which desks may use internal models, then proves its risk factors are observable and suitable. It revalues today's portfolio under synchronised 10-day scenarios, adjusts for liquidity horizons, scales to a stressed period and limits cross-class diversification. Non-modellable factors and issuer defaults are capitalised separately. The model's track record then feeds back into both eligibility and capital. Finally the bank combines IMA and SA charges, adds any PLA surcharge and converts the result to RWA.
The difficulty is not just mathematical. Reliable results also depend on consistent pricing, risk-factor evidence, calibrated scenarios, controls and a defensible audit trail.
IMA capital calculator
Worked example: market risk capital USD 104.50 million and market risk RWA USD 1,306.25 million. Enable JavaScript to change the inputs.