Skip to main content

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.

Contributory measures are used by Risk Managers to analyze the impact of a Sub-Portfolio on the Value at Risk of the total Portfolio. These measures can help to track down individual trades that have significant effects on VaR. Furthermore, contributory measures can be a useful tool in hypothetical analyses of portfolio development versus VaR development.

Basic Usage

In the below screenshot you can see a pivot table, displaying VaR and VaR Component BookHierarchy. The total of the Component VaR for the sub portfolios under the “Global Markets” node is equal to the VaR value computed for the “Global Markets”.
Illustrating VaR Component Usage

Component VaR (CoVaR)

Definition

The Component VaR of Sub-Portfolio x measures the rate of change of the VaR of Portfolio X with respect to an incremental change in the size of Sub-Portfolio x. CoVaRx=VaR(X)wxCoVaR_x = \frac{\partial VaR(X)}{\partial w_x} where wxw_x is the weight of Sub- Portfolio x in Portfolio X. Component VaR is a very useful tool to examine the overall impact of local changes in a Sub-Portfolio upon the total Portfolio. It is an additive measure so that the Component VaRs of all Sub-Portfolios add up to the VaR of the total Portfolio. In the Figure below, the CoVaR equals to the slope of the tangent line at point (VaRwxVaR_{wx}, wx+0%wxw_x + 0\% \cdot w_x).
CoVaR of Sub-portfolio x

Calculation Method

For a parent portfolio XX with NN components Y1Y_1, Y2Y_2, …, YNY_N the algorithm1 to compute CoVaRs is: Regress: Y=a+bX+cX2Y=a+b \cdot X + c \cdot X^2 Calculate: A=(Lxx2xx2x3x2x3x4)A1A = \begin{pmatrix} L & \sum x & \sum x^2 \\ \sum x & \sum x^2 & \sum x^3 \\ \sum x^2 & \sum x^3 & \sum x^4 \end{pmatrix} \to A^{-1} A1A^{-1} - getting the inverse matrix. Start Loop: For i = 1 to N:
  1. Calculate:
Bi=(yixyiyix2)B_i = \begin{pmatrix} \sum y_i \\ \sum xy_i \\ \sum y_i x^2 \end{pmatrix}
  1. Multiply:
A1Bi=(abc)A^{-1} \cdot B_i = \begin{pmatrix} a \\ b \\ c \end{pmatrix} to get a, b, c the parameters of the regression.
  1. Compute:
CoVaRi=[a+b(VaR)+cVaR2]CoVaR_i = -\left[a + b \cdot (-VaR) + c \cdot VaR^2\right]
  1. Compute:
CoVaRipercentage=[a+b(VaR)+cVaR2]VaRCoVaR_i^{percentage} = \frac{-\left[a + b \cdot (-VaR) + c \cdot VaR^2\right]}{VaR} End Loop: Next i All sums, within matrices A and B, span for “ranked” vector scenario ids starting from 1 up to L, with 1 the most negative PnL value for the parent portfolio. For example: jx2=x12+x22++xL2\sum_j x^2 = x_1^2 + x_2^2 + \cdots + x_L^2 jxyi=x1yi1+x2yi2++xLyiL\sum_j x y_i = x_1 y_{i1} + x_2 y_{i2} + \cdots + x_L y_{iL} where xjx_j is the jth PnL of the “ranked” parent portfolio scenario ids and yijy_{ij} is its ith component’s PnL value on jth scenario id. LL denotes the number of scenario ids included in the regression.

Delta Component VaR (Delta CoVaR )

The Delta Component VaR of Sub-Portfolio x measures the rate of change of a Portfolio’s daily change in VaR (Delta VaR(X)) with respect to an incremental change in a Sub-Portfolio’s daily change in size (Delta wx). The Delta Component VaR is a very useful tool to examine the overall impact of local changes in a Sub-Portfolio upon the total Portfolio’s daily changes in VaR. Delta Component VaR is an additive measure so that the Delta Component VaRs of all Sub Portfolios add up to the daily change in VaR of the total Portfolio. ΔCoVaRx=(ΔVaR(X))(Δwx)\Delta CoVaR_x = \frac{\partial (\Delta VaR(X))}{\partial (\Delta w_x)} In the Figure below, CoVaR equals to the slope of the tangent line at point (ΔVaR\Delta VaR, Δwx+0%Δwx\Delta w_x + 0\% \cdot \Delta w_x).
Delta Component VaR of Sub-portfolio x

Calculation Method

Delta Component VaR or Delta CoVaR will be computed in the same fashion as the CoVaR by using the quadratic regression technique. For a parent portfolio XX with NN components Y1Y_1, Y2Y_2, …, YNY_N the algorithm1 to compute DeltaCoVaRs is: Calculate: A=(LΔxΔx2ΔxΔx2Δx3Δx2Δx3Δx4)A1A = \begin{pmatrix} L & \sum \Delta x & \sum \Delta x^2 \\ \sum \Delta x & \sum \Delta x^2 & \sum \Delta x^3 \\ \sum \Delta x^2 & \sum \Delta x^3 & \sum \Delta x^4 \end{pmatrix} \to A^{-1} A1A^{-1} - getting the inverse matrix. Start Loop: For i = 1 to N;
  1. Calculate:
Bi=(ΔyiΔxΔyiΔyiΔx2)B_i = \begin{pmatrix} \sum \Delta y_i \\ \sum \Delta x \Delta y_i \\ \sum \Delta y_i \Delta x^2 \end{pmatrix}
  1. Multiply:
A1Bi=(abc)A^{-1} \cdot B_i = \begin{pmatrix} a \\ b \\ c \end{pmatrix} to get a, b, c the parameters of the regression.
  1. Compute:
ΔCoVaRi=[a+b(ΔVaR)+cΔVaR2]\Delta CoVaR_i = -\left[a + b \cdot (-\Delta VaR) + c \cdot \Delta VaR^2\right]
  1. Compute:
ΔCoVaRipercentage=[a+b(ΔVaR)+cΔVaR2]ΔVaR\Delta CoVaR_i^{percentage} = \frac{-\left[a + b \cdot (-\Delta VaR) + c \cdot \Delta VaR^2\right]}{\Delta VaR} End Loop: Next i The PnL vector inputs for the parent portfolio XX with NN components Y1Y_1, Y2Y_2, …, YNY_N are now equal to the daily PnL changes from one business date to the next business date. The changes of the parent portfolio are related to the changes to its N components with the following equations: xicobxicob1=(y1icoby1icob1)+(y2icoby2icob1)++(yNicobyNicob1), for i=1 to 500x_i^{cob} - x_i^{cob-1} = \left(y_{1i}^{cob} - y_{1i}^{cob-1}\right) + \left(y_{2i}^{cob} - y_{2i}^{cob-1}\right) + \cdots + \left(y_{Ni}^{cob} - y_{Ni}^{cob-1}\right), \text{ for } i = 1 \text{ to } 500 where xix_i is the most backdated PnL date at cob for parent portfolio X. All sums, within matrices A and B, span for “ranked” vector scenario ids starting from 1 up to L, with 1 the most negative PnL value for the parent portfolio. For example, jΔx2=Δx12+Δx22++ΔxL2\sum_j \Delta x^2 = \Delta x_1^2 + \Delta x_2^2 + \cdots + \Delta x_L^2 and jΔxΔyi=Δx1Δyi1+Δx2Δyi2++ΔxLΔyiL\sum_j \Delta x \Delta y_i = \Delta x_1 \Delta y_{i1} + \Delta x_2 \Delta y_{i2} + \cdots + \Delta x_L \Delta y_{iL}, where Δxj\Delta x_j is the daily change of the jth PnL of the “ranked” parent portfolio scenario ids and Δyij\Delta y_{ij} its ith component’s PnL value on jth scenario id. ΔVaR\Delta VaR is the change in VaR of the parent node from cob to cob-1. LL denotes the number of scenario ids included in the regression.

Algebraic solution

Here is the algebraic solution for the a, b, c. a=yx2xyx+cx3xc(x2)2nx2(x)2a = \frac{\sum y \sum x^2 - \sum xy \sum x + c \sum x^3 \sum x - c \left(\sum x^2\right)^2}{n \sum x^2 - \left(\sum x\right)^2} b=nxyncx3+cx2xyxnx2(x)2b = \frac{n \sum xy - nc \sum x^3 + c \sum x^2 \sum x - \sum y \sum x}{n \sum x^2 - \left(\sum x\right)^2} c=(x2y)(nx2(x)2)(x2)2y+xyxx22x3xx2(x2)3n(x3)2+x4(nx2(x)2)c = \frac{\left(\sum x^2 y\right)\left(n \sum x^2 - \left(\sum x\right)^2\right) - \left(\sum x^2\right)^2 \sum y + \sum xy \sum x \sum x^2}{2 \sum x^3 \sum x \sum x^2 - \left(\sum x^2\right)^3 - n\left(\sum x^3\right)^2 + \sum x^4 \left(n \sum x^2 - \left(\sum x\right)^2\right)} +nx3xy+yxx32x3xx2(x2)3n(x3)2+x4(nx2(x)2)+ \frac{-n \sum x^3 \sum xy + \sum y \sum x \sum x^3}{2 \sum x^3 \sum x \sum x^2 - \left(\sum x^2\right)^3 - n\left(\sum x^3\right)^2 + \sum x^4 \left(n \sum x^2 - \left(\sum x\right)^2\right)}
  1. The regression parameters a, b, c can also be computed algebraically. See Algebraic solution↩︎

See also