1812In order to calculate the Kolmogorov-Smirnov test metric for a trading desk referred to in paragraph 4, an institution shall perform the following steps in sequence:
1814(a) determine the time series of the most recent 250 business days of observations of the hypothetical and theoretical changes in the trading desk portfolio’s value;
1816(b) compute the empirical cumulative distribution function of the hypothetical changes in the trading desk portfolio’s value from the time series of the hypothetical changes referred to in point (a);
1818(c) compute the empirical cumulative distribution function of the theoretical changes in the trading desk portfolio’s value from the time series of theoretical changes referred to in point (a); and
1820(d) obtain the Kolmogorov-Smirnov test metric by calculating the maximum difference observed between the two empirical cumulative distributions calculated in accordance with points (b) and (c) at any possible value of profit and loss.
1822For the purpose of this paragraph, the empirical distribution function obtained from a time series shall be understood as the function that, given any number as input, results in the ratio of the number of observations within the time series with lower or equal value than the input number, to the number of observations within the full time series.
1828For the purpose of determining the consequences for trading desks for which theoretical changes in their portfolio’s value are not sufficiently close to the hypothetical changes in the trading desk portfolio’s value, an institution shall classify each of the trading desks as green zone, orange zone, yellow zone or red zone trading desk as set out in paragraphs 2 to 5. An institution shall classify trading desks as follows:
1840(c) a trading desk which is not classified as either a green zone or a red zone desk, and where the own funds requirements for the positions assigned to the trading desk was computed in the previous quarter in accordance with the Market Risk: Advanced Standardised Approach (CRR) Part, shall be classified as an orange zone desk; and
1848An institution shall perform the tests relating to the P&L attribution requirement on a quarterly basis for all trading desks for which the institution has an IMA permission to calculate the own funds requirements using internal models.
1856(a) calculate the theoretical changes in a trading desk’s portfolio value based on a comparison between the portfolio’s end-of-day value and, assuming unchanged positions, the value of that portfolio at the end of the subsequent day;
1858(b) base theoretical changes in a trading desk’s portfolio on the pricing methods, model parametrisations, market data and any other technique used in the risk measurement model; and
1860(c) only include in the theoretical changes in a trading desk’s portfolio value the changes in the value of all risk factors included in the risk measurement model to which an institution applies the scenarios of future shocks for the purpose of calculating the expected shortfall risk measure referred to in Article 325bb or the stress scenario risk measure referred to in Article 325bk.
1872An institution may replace the input data of a risk factor used for calculation of theoretical changes with data for hypothetical changes in accordance with the following:
1882(ii) use the input data used for hypothetical changes as the basis for calculating data to replace the input data for theoretical changes, provided that for the approach in this point (ii), an institution shall document, validate and justify all instances where data calculated from the input data for hypothetical changes is calculated using techniques or transformation methods other than those in the institution’s risk measurement model;
1884(c) for the purpose of this replacement, an institution shall not apply further adjustments to theoretical or hypothetical changes to address residual operational noise that may remain after the replacement; and
1892An institution shall have policies and procedures in place defining how they calculate the theoretical changes in accordance with paragraphs 9 and 11 in accordance with the following:
1894(a) the policies and procedures shall include at least an explanation of how the theoretical changes in the trading desk portfolio’s value are calculated for modellable and non-modellable risk factors;
1896(b) where designing the procedures for aligning the data in accordance with paragraph 11, an institution shall:
1897(i) compare the theoretical changes in the trading desk portfolio’s value without the alignments referred to in paragraph 11, and the theoretical changes in the trading desk portfolio’s value with the alignments referred to in paragraph 11 and they shall document that comparison; and
1899(ii) assess the effect of the alignments on the metrics of the test relating to the P&L attribution requirements referred to in paragraphs 5 and 6 and document that assessment; and