# Risk Calculation Infrastructure: Full Revaluation, Approximation, and Distributed Computing

> Risk calculation infrastructure is the system a financial institution uses to compute, in bulk, the market value, profit and loss, and risk of its trades under each market scenario. Whether every trade is repriced under each scenario or profit and loss is approximated from sensitivities changes both the amount of computation and its accuracy. Splitting the trades and running them in parallel shortens the calculation time.

- URL: https://www.derivatives-compass.org/en/data-systems/risk-calculation-infrastructure/
- Area: Data and Systems › Data and Risk Calculation Foundations
- Last reviewed: 2026-11-23
- 日本語版: https://www.derivatives-compass.org/ja/data-systems/risk-calculation-infrastructure/index.md

Producing risk figures within the overnight processing window, and updating some of them during the day, means deciding which calculations to run and how precisely, and how to split the work. Systems staff and risk managers face these decisions when they rebuild the calculation infrastructure or when the number of trades and scenarios grows.

## Key points

- Supervisors expect large banks to aggregate risk data accurately and quickly in normal and stress periods, and mostly automatically.
- Full revaluation stays accurate under large moves, while sensitivity-based approximation loses accuracy depending on the size of the move and how sharply the product's profit and loss curves.
- The number of valuations grows as the number of trades times the number of scenarios times the number of valuation dates.
- Splitting trades and running them in parallel is faster, but each split adds setup work, so speed does not rise in proportion to the number of processes.
- Credit limit monitoring includes daily exposure updates and intraday monitoring, and a trade's impact can be checked before execution.

## What risk data aggregation requires

In Japan, the Financial Services Agency's Comprehensive Guidelines for Supervision of Major Banks, etc. require major banks with large and complex operations to build a framework for aggregating risk data and reporting it to the board of directors[^fsa-purpose]. Aggregation and reporting are to be accurate and prompt[^fsa-purpose]. This item builds on the [Basel Committee on Banking Supervision](https://www.derivatives-compass.org/en/glossary/bcbs/)'s "Principles for effective risk data aggregation and risk reporting" (January 2013)[^fsa-purpose].

For banks selected as global systemically important banks (G-SIBs) and banks designated as domestic systemically important banks (D-SIBs), the guidelines list the following supervisory focus points on the aggregation infrastructure[^fsa-points].

- The data architecture and IT infrastructure are designed and maintained with stress and crisis periods in mind, not only normal times
- Risk data are accurate and complete, and most data are aggregated automatically to reduce errors
- Key risk data are collected on a consolidated group basis and can be aggregated by business line, group entity, asset type, industry, region, and other groupings

> **For systems professionals: Holding results so they can be regrouped**
>
> To be able to re-aggregate by any grouping, a design holds valuation results at the trade level and tags each trade with its business line, legal entity, asset type, and the counterparty's industry and region. In a design that holds only totals, a request to aggregate by a new grouping means recalculating from the valuations.

## Calculation flow and system roles

The risk calculation infrastructure receives inputs from the trading system and from market data management, and passes valuation and aggregation results to the risk management department. Figure 1 shows the order of these handoffs.

**Figure 1: Inputs and outputs of the risk calculation infrastructure**

The figure shows the order in which the risk calculation infrastructure (Risk system in the figure) receives its inputs and passes on its results. The trading system passes trade data, and market data management passes finalized market data, to the risk calculation infrastructure. Once both have arrived, the infrastructure loads the trades and prepares for valuation, values them under each scenario, and aggregates the results by netting set and by grouping. The aggregated results go to the risk management department (Risk managers in the figure), which reviews and reports them. Valuation does not start until all inputs are in, and valuation and aggregation are separate stages.

Some infrastructures that compute [exposure](https://www.derivatives-compass.org/en/glossary/exposure/) and [CVA](https://www.derivatives-compass.org/en/glossary/cva/) are designed to collect valuation results in a value table with three axes: trade, scenario, and future valuation date[^cube]. In this design, the aggregation stage reads the table, sums the trades by [netting set](https://www.derivatives-compass.org/en/glossary/netting-set/), and applies the collateral agreements to compute valuation adjustments such as CVA[^cube].

How to call a [pricing library](https://www.derivatives-compass.org/en/glossary/pricing-library/) and how results are passed back are covered on the [Integrating Pricing Libraries with Trading Systems](https://www.derivatives-compass.org/en/data-systems/pricing-library-integration/) page.

## Full revaluation and sensitivity-based approximation

There are two ways to compute profit and loss under each scenario. [Full revaluation](https://www.derivatives-compass.org/en/glossary/full-revaluation/) reprices every trade with its valuation model under each market scenario. Sensitivity-based approximation first computes each trade's [sensitivities](https://www.derivatives-compass.org/en/glossary/sensitivity/), then multiplies them by the scenario's moves in [risk factors](https://www.derivatives-compass.org/en/glossary/risk-factor/) to get the profit and loss.

The simplest way to compute the sensitivities used for the approximation is to shift the risk factors one at a time and reprice. This needs no changes to the valuation model, but the computing time grows in proportion to the number of risk factors shifted[^gg-fd].

### Assumptions behind the approximation and where it is used

Sensitivity-based approximation is a local approximation that assumes small moves in the risk factors. When the period is short, such as one day, and markets are not too volatile, a first-order approximation is used. For derivatives portfolios, however, first order alone is often not enough, and second-order sensitivities such as [gamma](https://www.derivatives-compass.org/en/glossary/gamma/) are added. When moves are very large, the approximation works poorly no matter how many orders are added[^haugh-local].

Calculations of [historical simulation](https://www.derivatives-compass.org/en/glossary/historical-simulation/) [VaR](https://www.derivatives-compass.org/en/glossary/value-at-risk/) also sometimes use an approximation based on [delta](https://www.derivatives-compass.org/en/glossary/delta/) and gamma instead of repricing every trade under each historical scenario[^haugh-dg].

### The approximation formula

When a single risk factor $$S$$ moves by $$\Delta S$$, the profit and loss $$\Delta V$$ is approximated with delta $$\delta$$ and gamma $$\Gamma$$ as follows[^haugh-dg].

$$
\Delta V \approx \delta \, \Delta S + \frac{1}{2} \Gamma \, (\Delta S)^2
$$

Here $$\delta$$ is the first-order sensitivity to $$S$$, and $$\Gamma$$ is the second-order sensitivity. A delta-only approximation uses just the first term. With several risk factors, the terms for each factor are added, and second-order sensitivities such as volga and vanna may also be included[^haugh-local].

### How far the approximation is off: a call option example

Consider a hypothetical example in which Bank P holds one unit of a [call option](https://www.derivatives-compass.org/en/glossary/call-option/) on a stock priced at 100 yen (strike 100 yen, maturity 1 year, [volatility](https://www.derivatives-compass.org/en/glossary/volatility/) 20%, interest rate 0%). Under the [Black-Scholes model](https://www.derivatives-compass.org/en/glossary/black-scholes-model/), the option is worth 7.97 yen, with a delta of 0.5398 and a gamma of 0.01985. The table shows the profit and loss when the stock price moves. The revaluation column corresponds to repricing this one trade under full revaluation.

| Stock price change (yen) | Revaluation (yen) | Delta-only approximation (yen) | Delta-gamma approximation (yen) |
| -----------------------: | ----------------: | -----------------------------: | ------------------------------: |
|                      −20 |             −6.78 |                         −10.80 |                           −6.83 |
|                       −2 |             −1.04 |                          −1.08 |                           −1.04 |
|                       +2 |              1.12 |                           1.08 |                            1.12 |
|                      +20 |             14.18 |                          10.80 |                           14.77 |

When the stock moves by about 2 yen, both approximations come out almost the same as revaluation. When it rises 20 yen, the delta-only approximation understates the gain by about 3.4 yen, and even with gamma added, the approximation overstates it by about 0.6 yen.

With the same terms but a maturity of 0.1 years, the value is 2.52 yen, the delta is 0.5126, and the gamma is 0.06305. The table shows the profit and loss for a 20-yen move.

| Stock price change (yen) | Revaluation (yen) | Delta-only approximation (yen) | Delta-gamma approximation (yen) |
| -----------------------: | ----------------: | -----------------------------: | ------------------------------: |
|                      −20 |             −2.52 |                         −10.25 |                            2.36 |
|                      +20 |             17.48 |                          10.25 |                           22.86 |

When the stock falls 20 yen, revaluation shows a loss, but the delta-gamma approximation shows a gain, so even the sign of the profit and loss is reversed. When it rises 20 yen, the approximation overstates the result by about 5.4 yen. In this example, the closer the option is to maturity and the more sharply its profit and loss curves, the larger the part that a second-order formula cannot capture.

### Treatment in market risk regulation

Bank market risk regulation also asks for sensitivities, and for a check on how far the profit and loss from risk management models departs from that of the models used for daily valuation. In the Basel Committee's market risk framework ([FRTB](https://www.derivatives-compass.org/en/glossary/frtb/); final rules text of January 2019), one pillar of the standardized approach is the sensitivities-based method. It multiplies each risk factor's sensitivity by a risk weight and aggregates the results, taking correlations into account. Alongside delta and [vega](https://www.derivatives-compass.org/en/glossary/vega/), this method measures nonlinear risk, such as that of options, as curvature risk[^frtb-sa].

Under the internal models approach, a test called the profit and loss attribution test compares, for each trading desk, the profit and loss from the risk management model with the hypothetical profit and loss from the model used to calculate daily profit and loss. Desks with large differences stop using the internal model and move to the standardized approach[^frtb-pla].

## Estimating the number of valuations

You can roughly estimate the amount of computation by counting calls to the valuation model. For full revaluation, the count is the number of trades times the number of scenarios. A simulation of exposure valued at each future date multiplies this again by the number of valuation dates. The three axes of the value table mentioned above correspond to this multiplication.

Consider a hypothetical example in which Bank P holds 10,000 trades. There are 500 scenarios and 100 risk factors for sensitivities, and each sensitivity is computed by shifting one factor at a time up and down.

| Method                                       | Formula                | Number of valuations |
| -------------------------------------------- | ---------------------- | -------------------: |
| Full revaluation                             | 10,000 × 500           |            5 million |
| Sensitivity-based approximation              | 10,000 × (1 + 2 × 100) |         2.01 million |
| Exposure simulation (1,000 paths, 100 dates) | 10,000 × 1,000 × 100   |            1 billion |

Even with sensitivity-based approximation, the number of repricings needed for the sensitivities grows in proportion to the number of risk factors. Profit and loss under each scenario then comes from multiplying and adding sensitivities and moves, so the valuation model is not called. Under the same conditions, raising the number of scenarios to 1,000 doubles full revaluation to 10 million valuations, while the approximation stays at 2.01 million. Conversely, with 300 risk factors the approximation needs 6.01 million, more than full revaluation with 500 scenarios.

Which method is lighter depends on which is larger: the number of scenarios, or twice the number of risk factors plus one. Which is more accurate depends, as the option example above shows, on the size of the move and how sharply the product's profit and loss curves.

> **For systems professionals: How large the value table gets**
>
> In a design that stores each value as an 8-byte floating-point number, the 1 billion values from the exposure simulation in the example above take 8 billion bytes (about 8 GB). If the trade-level table is aggregated into a netting-set-level table before it is stored, the number of rows falls to the number of netting sets. If you later need each trade's contribution, you have to keep the trade-level table.

## How calculations are split

### Splitting trades and running them in parallel

For calculations with many valuations, splitting the trades and running the parts at the same time shortens the run time. Parallel computing, however, adds work that exists only because of the split, such as starting tasks, passing data between them, and terminating them. Replicating data for each task also uses more memory[^llnl-overhead].

If part of the processing cannot be split, adding more parallel processes raises the speedup only up to a limit. This idea is known as Amdahl's law[^llnl-amdahl].

In implementations where market objects cannot be shared between processes, each process has to rebuild curves from the market data. This preparation takes the same work however many trades the process handles[^ored-mt]. For example, the pricing library QuantLib does not run safely when threads share objects, so some implementations that use it copy and rebuild the market for each thread[^ored-mt].

In the Bank P example above, suppose full revaluation takes 4 hours on one thread and preparing the market takes 10 minutes per thread. With 8 threads, 30 minutes of valuation plus 10 minutes of preparation comes to 40 minutes. With 32 threads, 7.5 minutes of valuation plus 10 minutes of preparation comes to 17.5 minutes, and preparation now takes longer than valuation. Even with 32 threads, the run time falls only to about one-fourteenth of the single-thread time.

### Making sensitivity calculations lighter

As shown above, the cost of sensitivity-based approximation lies in the repricings needed to shift the risk factors one at a time. One way to reduce it is [adjoint algorithmic differentiation](https://www.derivatives-compass.org/en/glossary/adjoint-algorithmic-differentiation/) (AAD), the reverse mode of [automatic differentiation](https://www.derivatives-compass.org/en/glossary/algorithmic-differentiation/).

AAD first runs the original calculation forward and stores the intermediate partial derivatives. It then works backward from them to compute, all at once, the sensitivities of a single output, such as the value of a trade or a portfolio, to all inputs. The cost is proportional to the number of outputs and does not depend on the number of inputs. If the original calculation is broken into steps that each compute one value from two values, each step of the reverse calculation costs at most four times the matching step of the original[^gg-ad].

In the Bank P example above, computing only first-order sensitivities with a one-sided shift costs 101 valuations for 100 risk factors. The table of valuation counts assumed shifts in both directions, so the assumption here is different. With 300 risk factors, the cost rises to 301 valuations. With AAD, the cost depends on the number of outputs, so even with 300 risk factors it does not grow in proportion to that number[^gg-ad].

Go deeper: [Adjoint Algorithmic Differentiation (AAD)](https://www.derivatives-compass.org/en/valuation/aad/)

## Calculation frequency and intraday credit limit monitoring

The 2011 US supervisory guidance on [counterparty credit risk](https://www.derivatives-compass.org/en/glossary/counterparty-credit-risk/) (CCR) lists elements of a sound [credit limit](https://www.derivatives-compass.org/en/glossary/credit-limit/) system. They include automated monitoring that updates exposures at least daily and monitoring of intraday trading for conformance with credit limits[^ccr-limit]. The means of intraday monitoring include systems that check a trade's impact on credit limit usage before execution, and warnings when usage reaches set levels[^ccr-limit].

The Major Banks Guidelines do not set a uniform timing for aggregation. Instead, they require banks to decide it based on three factors: the risk's importance within the bank's overall risk, the nature and volatility of the risk, and the reporting frequency in normal and stress periods[^fsa-timing]. The ability to respond to ad hoc aggregation requests, such as in stress periods or at the request of supervisors, is also a focus point. Producing and distributing risk reports more often in stress periods than in normal times is another[^fsa-timing].

The kinds of processing that run every day, and the dependencies among their values, are covered on the [End-of-Day Batch Processing](https://www.derivatives-compass.org/en/data-systems/end-of-day-batch/) page.

> **For systems professionals: Calculating credit limit usage during the day**
>
> In a design that updates credit limit usage during the day, you keep the per-counterparty values calculated overnight and recalculate with the new trade added. Trades offset each other's gains and losses within a netting set, so adding the new trade's value alone does not give the usage. The netting set that the trade joins is recalculated instead.

Go deeper: [Pre-Trade Limit Check Systems](https://www.derivatives-compass.org/en/data-systems/pre-trade-limit-checks/)

## Multiple systems and calculation controls

The US CCR Guidance sets two goals: systems infrastructure that keeps up with changes in the size and complexity of counterparty credit risk, and measurement of this risk on a single comprehensive platform[^ccr-platform].

Where a single platform is not possible, banks minimize the number of systems and methodologies and the manual adjustments to exposure calculations, and aggregate trades measured in different systems conservatively[^ccr-platform]. A single platform that contains several systems and models is still regarded as a cohesive framework if it is operationally stable and estimates risk accurately, particularly in reflecting collateral and netting[^ccr-platform].

The same guidance calls for managing the quality of trade information passed from the systems that capture trades to the systems that measure exposure. It also calls for promptly fixing system weaknesses that cast doubt on the soundness of the credit limit framework[^ccr-data]. Frequent credit limit breaches can be a sign of system weaknesses[^ccr-data].

Controls over the calculations themselves also appear among the focus points of [internal audit](https://www.derivatives-compass.org/en/glossary/internal-audit/). A 2019 Bank of Japan training document lists whether the [front office](https://www.derivatives-compass.org/en/glossary/front-office/) is involved in identifying and measuring risk as a focus point. Examples of what to check are how data are entered, access rights to risk measurement systems, and logs[^boj-audit].

[^fsa-purpose]: [Financial Services Agency, "主要行等向けの総合的な監督指針"](https://www.fsa.go.jp/common/law/city.pdf) (Comprehensive Guidelines for Supervision of Major Banks, etc.) (November 2026; the "Major Banks Guidelines"), III-2-3-6-1 (pages 142–143) (in Japanese).

[^fsa-points]: [The Major Banks Guidelines](https://www.fsa.go.jp/common/law/city.pdf), III-2-3-6-2, the opening text, (1)②, and (2)①② (page 143).

[^cube]: [LSEG, "ORE Design"](https://github.com/OpenSourceRisk/Engine/blob/master/Docs/ore_design.pdf) (April 30, 2026; the "ORE design document"), section 1.2.3.4, "Aggregation, Cubes, XVA and Post Process" (page 27).

[^gg-fd]: [Michael Giles and Paul Glasserman, "Smoking Adjoints: fast evaluation of Greeks in Monte Carlo calculations"](https://ora.ox.ac.uk/objects/uuid:f536b1a8-c988-4bda-9c5f-a322652139fd/files/m9d733d3b5051c1c548d84a53f70787d7) (August 2005; the "Giles and Glasserman paper"), section 1 (page 2).

[^haugh-local]: [Martin Haugh, "Basic Concepts and Techniques of Risk Management"](https://www.columbia.edu/~mh2078/QRM/BasicConceptsTechniques.pdf) (Columbia University, Spring 2016), section 1.1 (page 1) and pages 3 and 5.

[^haugh-dg]: [The same document](https://www.columbia.edu/~mh2078/QRM/BasicConceptsTechniques.pdf), equation (7) and the paragraph that follows (pages 4–5). The formula is the case where the change in volatility is zero.

[^frtb-sa]: [Financial Services Agency and Bank of Japan, "「マーケット・リスクの最低所要自己資本」の概要"](https://www.fsa.go.jp/inter/bis/20190115/20190206.pdf) (Overview of "Minimum capital requirements for market risk") (January 2019), "１．経緯" (1. Background) (page 2), "２．標準的手法（SA）：概要" (2. Standardized approach (SA): overview) (page 3), and item ③ of the changes to curvature risk (page 11) (in Japanese).

[^frtb-pla]: [The same document](https://www.fsa.go.jp/inter/bis/20190115/20190206.pdf), the changes to the IMA, "（１）PLA テスト" ((1) PLA test), items ①–③ (pages 14–15) (in Japanese).

[^llnl-overhead]: [Lawrence Livermore National Laboratory, "Introduction to Parallel Computing Tutorial"](https://hpc.llnl.gov/training/tutorials/introduction-parallel-computing-tutorial) (June 16, 2026 version), "Parallel Overhead" and "Resource Requirements."

[^llnl-amdahl]: [The same document](https://hpc.llnl.gov/training/tutorials/introduction-parallel-computing-tutorial), "Amdahl's Law."

[^ored-mt]: [The ORE design document](https://github.com/OpenSourceRisk/Engine/blob/master/Docs/ore_design.pdf), section 1.2.3.3, "Engine," the MultithreadedValuationEngine item (page 26).

[^gg-ad]: [The Giles and Glasserman paper](https://ora.ox.ac.uk/objects/uuid:f536b1a8-c988-4bda-9c5f-a322652139fd/files/m9d733d3b5051c1c548d84a53f70787d7), Appendix A (pages 14–15).

[^ccr-limit]: [Office of the Comptroller of the Currency et al., "Interagency Supervisory Guidance on Counterparty Credit Risk Management"](https://www.federalreserve.gov/newsevents/pressreleases/files/bcreg20110705a1.pdf) (June 29, 2011; the "US CCR Guidance"), section V.1, "Counterparty Limits" (pages 13–14).

[^fsa-timing]: [The Major Banks Guidelines](https://www.fsa.go.jp/common/law/city.pdf), III-2-3-6-2(2)③④ and (3)④ (page 144).

[^ccr-platform]: [The US CCR Guidance](https://www.federalreserve.gov/newsevents/pressreleases/files/bcreg20110705a1.pdf), section IV, "Systems Infrastructure Considerations," the opening text and footnote 19 (page 11).

[^ccr-data]: [The US CCR Guidance](https://www.federalreserve.gov/newsevents/pressreleases/files/bcreg20110705a1.pdf), section IV, "Data Integrity and Reconciliation" (pages 11–12).

[^boj-audit]: [Bank of Japan Financial System and Bank Examination Department, Center for Advanced Financial Technology, "市場リスク管理態勢の整備"](https://www.boj.or.jp/finsys/c_aft/data/aft190917d3.pdf) (Building a market risk management framework) (September 2019), "内部監査のポイント（続き）" (Internal audit points, continued) (page 42) (in Japanese).

## Sources

- [主要行等向けの総合的な監督指針](https://www.fsa.go.jp/common/law/city.pdf) — 金融庁
- [ORE Design](https://github.com/OpenSourceRisk/Engine/blob/master/Docs/ore_design.pdf) — LSEG
- [Smoking Adjoints: fast evaluation of Greeks in Monte Carlo calculations](https://ora.ox.ac.uk/objects/uuid:f536b1a8-c988-4bda-9c5f-a322652139fd/files/m9d733d3b5051c1c548d84a53f70787d7) — Oxford University Computing Laboratory（Michael Giles、Paul Glasserman）
- [Basic Concepts and Techniques of Risk Management](https://www.columbia.edu/~mh2078/QRM/BasicConceptsTechniques.pdf) — Columbia University（Martin Haugh）
- [「マーケット・リスクの最低所要自己資本」の概要（2019 年 1 月）](https://www.fsa.go.jp/inter/bis/20190115/20190206.pdf) — 金融庁、日本銀行
- [Introduction to Parallel Computing Tutorial](https://hpc.llnl.gov/training/tutorials/introduction-parallel-computing-tutorial) — Lawrence Livermore National Laboratory（Blaise Barney、Donald Frederick）
- [Interagency Supervisory Guidance on Counterparty Credit Risk Management](https://www.federalreserve.gov/newsevents/pressreleases/files/bcreg20110705a1.pdf) — Office of the Comptroller of the Currency、Federal Deposit Insurance Corporation、Board of Governors of the Federal Reserve System、Office of Thrift Supervision
- [市場リスク管理態勢の整備](https://www.boj.or.jp/finsys/c_aft/data/aft190917d3.pdf) — 日本銀行金融機構局 金融高度化センター
