> ## 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.

# FRTB P&L attribution tests and backtesting

> PL Attribution and Backtesting cube descriptions for Atoti FRTB

These pages describe the implementation (that is, the cube specification and file formats) of P\&L Attribution Tests and Backtesting in Atoti FRTB.

## Supported use cases

The P\&L Attribution Tests and Backtesting have been designed to enable the following use cases.

1. Monitoring historical VaR and P\&L values at the desk and firm-wide<sup>[1](#fn:1)</sup> levels, as required by regulation.
2. Calculating desk and firm-wide VaR values from trade level VaR P\&L vectors.
3. Customizing<sup>[2](#fn:2)</sup> trade level inputs and analytics to support analyzing recent exceptions/outliers.

## Definitions

The definitions below follow regulatory guidance<sup>[3](#fn:3)</sup>.

| Term | Definition |
| - | - |
| **T-1** | the most recent close of business. This is the **AsOfDate** in the cube. **T-n**: close of business for the nth preceding business day. |
| **Actual P\&L \[APL]** | As-of T-1, the daily P\&L (from T-2 to T-1) of the desk (or firm-wide) based on actual prices<sup>[4](#fn:4)</sup> and including trading activity<sup>[5](#fn:5)</sup>. |
| **Hypothetical P\&L \[HPL]** | As-of T-1, the daily P\&L value (from T-2 to T-1) of the desk (or firm-wide) based on actual prices for the T-2 portfolio<sup>[6](#fn:6)</sup>. |
| **Risk-Theoretical P\&L \[RTPL]** | As-of T-1, the daily P\&L (from T-2 to T-1) of the desk (or firm-wide) based on model-generated prices for the T-2 portfolio. |
| **VaR measures** | As-of T-1, the model-generated one-day value-at-risk measures for the T-1 portfolio. Note: The as-of T-1 VaR measures are interpreted as a prediction of P\&L for COB T. So, when comparing with the P\&L values, the VaR measures need to be shifted by one day. |
| **p-values**<sup>[7](#fn:7)</sup> | As-of T-1, the empirical probability of observing a profit that is less than (or loss greater than) the actual (or hypothetical) P\&L<sup>[8](#fn:8)</sup>. |

***

<ol>
  <li>All IMA desks (that is, excluding SA desks), as per the FAQ: BCBS 395 section 2.7 Q1. [↩︎](#fnref:1)</li>
  <li>This use case relies heavily on custom inputs (for example, asset class) beyond what can be included in the Solution. [↩︎](#fnref:2)</li>
  <li>Based on BCBS 352 paragraph 183 and Appendix B; BCBS 395/437 FAQs; and clarifications in BCBS 436. [↩︎](#fnref:3)</li>
  <li>From BCBS 352 Appendix B: “the mark-to-market value of the trading desk’s instruments derived from the bank’s pricing models including all risk factors”. [↩︎](#fnref:4)</li>
  <li>Excluding fees and commissions. [↩︎](#fnref:5)</li>
  <li>Assuming no trading activity (from T-2 to T-1). [↩︎](#fnref:6)</li>
  <li>Not required by regulations, but mentioned in BCBS 352 paragraph 182 (b) as something the supervisor may request. [↩︎](#fnref:7)</li>
  <li>According to the model [↩︎](#fnref:8)</li>
</ol>
