You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The \lstinline|ReturnConfiguration| allows the user to specify, for each risk factor type, how historical returns are computed in historical scenario generation and backtesting. This configuration controls the return type (e.g., log, absolute, relative) and an optional displacement for each risk factor. Additionally, it is possible to override the default return configuration for specific names (e.g., for a particular equity or commodity).
6
+
7
+
The root element is \lstinline|ReturnConfiguration|, which contains one or more
8
+
\lstinline|<Return>| blocks. Each \lstinline|Return| must have a
9
+
\lstinline|key| attribute, either the risk factor key type for the default configuration (e.g., \texttt{DiscountCurve}, \texttt{FXSpot}, \texttt{EquitySpot}, etc.). or the risk factor key type plus the underlying name for a specific override (e.g \texttt{EquitySpot/EQUITY1}.
10
+
11
+
\begin{listing}
12
+
\begin{minted}[fontsize=\footnotesize]{xml}
13
+
<ReturnConfiguration>
14
+
<Return key="DiscountCurve">
15
+
<Type>Log</Type>
16
+
<Displacement>0.0</Displacement>
17
+
</Return>
18
+
<Return key="EquitySpot">
19
+
<Type>Relative</Type>
20
+
<Displacement>0.0</Displacement>
21
+
</Return>
22
+
<Return key="EquitySpot/EQUITY_1">
23
+
<Type>Absolute</Type>
24
+
<Displacement>0.0</Displacement>
25
+
</Return>
26
+
<!-- ... more configurations ... -->
27
+
</ReturnConfiguration>
28
+
\end{minted}
29
+
\caption{Historical return configuration}
30
+
\label{lst:historical_return_configuration}
31
+
\end{listing}
32
+
33
+
\subsubsection*{Elements and Attributes}
34
+
35
+
\begin{itemize}
36
+
\item\lstinline|Return key="..."|: Specifies the configuration for a risk factor type. The \lstinline|key| attribute must match a valid risk factor key type or the specific key type and name.
37
+
\begin{itemize}
38
+
\item\lstinline|Type|: The return type. Allowed values are \texttt{Log}, \texttt{Absolute}, and \texttt{Relative}.
39
+
\item\lstinline|Displacement|: The displacement value (floating point). Used to avoid division by zero or negative values in relative/log returns.
40
+
\end{itemize}
41
+
\end{itemize}
42
+
43
+
\subsubsection*{Notes}
44
+
45
+
\begin{itemize}
46
+
\item If no override is specified for a particular name, the default return configuration for the risk factor type is used.
47
+
\item The displacement should be set to a small positive value if the risk factor can approach zero, to avoid numerical issues.
0 commit comments