Main Content

rc

Calculate complete replacement cost (RC) for each portfolio

Since R2024a

Description

outRCResults = rc(saccrObject) computes the complete replacement cost (RC) for each portfolio using the saccr object. In addition, you can use the rcChart function to create a chart of portfolio RC values. For more information, see Replacement Cost.

example

Examples

collapse all

Use a saccr object and the rc function to calculate complete replacement cost for each portfolio.

Define the foreign exchange (FX) spot currency exchange rate table.

format("default");
Base = ["EUR";"GBP";"GBP"];
Quote = ["USD";"USD";"EUR"];
SpotRate = [1.0543;1.2195;1.1567];
FXSpotTable = table(Base,Quote,SpotRate)
FXSpotTable=3×3 table
    Base     Quote    SpotRate
    _____    _____    ________

    "EUR"    "USD"     1.0543 
    "GBP"    "USD"     1.2195 
    "GBP"    "EUR"     1.1567 

Define the SA-CCR CRIF file.

SACCRCRIF = "SACCR_CRIF_Ports_7_8_9.csv";

Create a saccr object using the data in the SA-CCR CRIF file.

mySACCR = saccr(SACCRCRIF, DomesticCurrency="USD", FXSpot=FXSpotTable)
mySACCR = 
  saccr with properties:

                         CRIF: [42x19 table]
                NumPortfolios: 3
                 PortfolioIDs: [3x1 string]
              CounterpartyIDs: [3x1 string]
                   Portfolios: [3x1 saccr.Portfolio]
                   Regulation: "Basel_CRE52"
             DomesticCurrency: "USD"
                        Alpha: [3x1 double]
                  FXSpotRates: [3x3 table]
          TradeDecompositions: [5x2 table]
           CollateralHaircuts: [200x6 table]
        SupervisoryParameters: [19x7 table]
    MaturityBusinessDaysFloor: 10
          NumBusinessDaysYear: 250

You can then use the rc function with the saccr object. For more information, see Replacement Cost.

outRCResults = rc(mySACCR)
outRCResults = 
  RCResults with properties:

         NumPortfolios: 3
          PortfolioIDs: [3x1 string]
       CounterpartyIDs: [3x1 string]
            Regulation: "Basel_CRE52"
      DomesticCurrency: "USD"
    RCUncollateralized: [3x1 double]
      RCCollateralized: [3x1 double]

Input Arguments

collapse all

SA-CCR object, specified as a saccr object. You create a saccr object using saccr.

Data Types: object

Output Arguments

collapse all

Replacement cost results, returned as a RCResults object. The RCResults object has the following properties:

  • NumPortfolios

  • PortfolioIDs

  • CounterpartyIDs

  • Regulation

  • DomesticCurrency

  • RCUncollateralized

  • RCCollateralized

More About

collapse all

Replacement Cost

Under the SA-CCR framework, the replacement cost (RC) is the market value of a derivative contract at default, accounting for netting agreements, collateral, and the cost to replace the contract.

RC is calculated by marking the contract to market and applying haircuts for potential market fluctuations. This cost is crucial in counterparty credit risk capital requirements, representing potential loss if a counterparty defaults. Higher replacement costs lead to higher capital requirements. The SA-CCR framework aims for a more accurate, risk-sensitive measure of counterparty exposure by considering the market value of derivative contracts and potential default losses.

RC is calculated at the netting set level, offsetting positive and negative mark-to-markets (MTMs) within the same set. The calculation differs for uncollateralized, unmargined, and margined netting sets:

  • No Collateral — RC = max(V,0) where V is the sum of all MTMs of all transactions in the netting set.

  • Not Margined — RC = max(VC,0) where C is the haircut value of net collateral held.

  • Margined — RC = max(VC,TH + MTANICA, 0) where:

    • TH — The threshold amount.

    • MTA — The minimum transfer amount.

    • NICA — The net independent collateral amount usable on counterparty default when both parties post an independent collateral amount (ICA).

References

[1] Bank for International Settlements. "CRE52 — Standardised Approach to Counterparty Credit Risk." June 2020. https://www.bis.org/basel_framework/chapter/CRE/52.htm.

[2] Bank for International Settlements. "CRE22 — Standardised Approach: Credit Risk Migration." November 2020. https://www.bis.org/basel_framework/chapter/CRE/22.htm.

[3] Bank for International Settlements. "Basel Committee on Banking Supervision: The Standardised Approach for Measuring Counterparty Credit Risk Exposures." April 2014. https://www.bis.org/publ/bcbs279.pdf.

Version History

Introduced in R2024a