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
\textbf{Optional:} \texttt{\% git push bob bob\_widget}
166
166
\item Once the coding task in complete, developer pushes the branch to the origin repo. Care should be taken not to push to origin/master.\\
167
167
\texttt{\% git push origin bob\_widget}
168
-
\item Then go to codebasehq.com \url{https://qrm.codebasehq.com/projects/openxva/repositories/openxva/tree/master} and click on "Merge Request" and then "New Merge Request" with the following details:
168
+
\item Then go to codebasehq.com \url{https://qrm.codebasehq.com/projects/openxva/repositories/openxva/tree/master} and click on ``Merge Request'' and then ``New Merge Request'' with the following details:
169
169
\begin{itemize}
170
170
\item\textbf{Subject} A short description
171
171
\item\textbf{User} The merge manager (currently Niall O'Sullivan)
The git workflow for the merge manager is as follows
184
184
\begin{enumerate}
185
-
\item Note that everyone who has a codebase account can preform these tasks, currently there is one designated manager who may delegate.
185
+
\item Note that everyone who has a codebase account can perform these tasks, currently there is one designated manager who may delegate.
186
186
\item go to merge requests in codebase
187
-
\item if there are no conflicts, click on "merge request"
187
+
\item if there are no conflicts, click on ``merge request''
188
188
\item if there are conflicts, send it back to the developer
189
189
\item Once the request has been merged, the temporary branch should be deleted. This is not strictly necessary but means origin is kept cleaner and avoids conflicts.\\
@@ -219,7 +219,7 @@ \subsection*{Policy on personal github accounts}
219
219
This policy statement does not supersede your employment contract.
220
220
221
221
\subsection*{Policy on opensourcerisk.org forum accounts}
222
-
Quaternion developers are permitted and encouraged to create a forum account and engage with the community. As we are representing Quaternion on the forum you should indicate this in your profile somehow, one example of this is to use the Quaternion "Q" logo as an avatar. There are no strict posting rules on the forum however if your account is associated with Quaternion it is expected that all posts and messages are formal and polite.
222
+
Quaternion developers are permitted and encouraged to create a forum account and engage with the community. As we are representing Quaternion on the forum you should indicate this in your profile somehow, one example of this is to use the Quaternion ``Q'' logo as an avatar. There are no strict posting rules on the forum however if your account is associated with Quaternion it is expected that all posts and messages are formal and polite.
Copy file name to clipboardExpand all lines: Docs/CommodityModel/CommodityModel.tex
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ \section{One Factor Model}
72
72
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
73
73
\subsection{Time Dependent Multiplier}
74
74
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75
-
Seasonality is observed in the market for both commodity future price curves and option volatilities. To incorporate the seasonality in the modelling a time dependent multiplier is introduced in the literature. Andersen \cite{Andersen} suggests\footnote{See section 7.2 in Andersen \cite{Andersen} for the discussion on dependence of seasonality adjustment to calendar days and expiry of future contracts.} that the time dependent variable depends on the maturity of the futures contract. By following this approach, we define it in the one factor case\footnote{Andersen worked on a two factor set up, where the first factor affects the short-end of the futures curve and has the form the $e^{b(T)}$, and the second factor has an additional term containing $e^{a(T)}h_{\infty}$ for long futures maturities.} as follows
75
+
Seasonality is observed in the market for both commodity future price curves and option volatilities. To incorporate the seasonality in the modelling a time dependent multiplier is introduced in the literature. Andersen \cite{Andersen} suggests\footnote{See section 7.2 in Andersen \cite{Andersen} for the discussion on dependence of seasonality adjustment to calendar days and expiry of future contracts.} that the time dependent variable depends on the maturity of the futures contract. By following this approach, we define it in the one factor case\footnote{Andersen worked on a two factor set up, where the first factor affects the short-end of the futures curve and has the form $e^{b(T)}$, and the second factor has an additional term containing $e^{a(T)}h_{\infty}$ for long futures maturities.} as follows
The following section provides a brief introduction to the AD mechanics, {\em Forward} and {\em Backward} modes. The latter is also referred to as Adjoint Algorithmic Differentiation (AAD) and particularly important for fast sensitivity calulation.
83
+
The following section provides a brief introduction to the AD mechanics, {\em Forward} and {\em Backward} modes. The latter is also referred to as Adjoint Algorithmic Differentiation (AAD) and particularly important for fast sensitivity calculation.
The scenario object refers to a unique reference date and contains an arbitrarily large number of data points that are identified by a RiskFactorKey. The key identifies the risk factor class (25 types so far in ORE, see the definition in
842
-
{\tt OREAnalytics/orea/scenario/scenario.hpp}, e.g. {\ttDiscoutCurve}, {\tt IndexCurve}, {\tt SwaptionVolatility}, etc.), a name (e.g. a currency or index name), and an integer indicating the position of the data item in a vector, matrix or cube. A market
842
+
{\tt OREAnalytics/orea/scenario/scenario.hpp}, e.g. {\ttDiscountCurve}, {\tt IndexCurve}, {\tt SwaptionVolatility}, etc.), a name (e.g. a currency or index name), and an integer indicating the position of the data item in a vector, matrix or cube. A market
843
843
evolution or path is hence represented by a vector of scenarios. So far there is only one derived class from the base Scenario in ORE, {\tt SimpleScenario}, which stores the scenario data in simple vectors and maps, also serializable.
844
844
845
845
\subsubsection{Engine}
@@ -848,19 +848,19 @@ \subsubsection{Engine}
848
848
\item {\bf ValuationEngine} - performs a market simulation, prices a portfolio under scenarios, possibly through time, and fills a resulting NPV cube, with the help of the ValuationCalculator class; the ValuationEngine is used for Monte Carlo simulations of the market evolution but also the hypothetical scenario analytics below
849
849
\item {\bf SensitivityAnalysis}, also performed with the help of ValuationEngine and ValuationCalculator: This class wraps functionality to perform a sensitivity analysis for a given portfolio.
850
850
\begin{itemize}
851
-
\item builds the "simulation" market to which sensitivity scenarios are applied,
851
+
\item builds the ``simulation'' market to which sensitivity scenarios are applied,
852
852
\item builds the portfolio linked to this simulation market
853
853
\item generates sensitivity scenarios
854
-
\item runs the scenario "engine" to apply these and compute the NPV impacts of all required shifts
854
+
\item runs the scenario ``engine'' to apply these and compute the NPV impacts of all required shifts
855
855
\item compiles first and second order sensitivities for all factors and all trades
856
856
\item fills result structures that can be queried
857
857
\end{itemize}
858
858
\item {\bf StressTest}, also performed with the help of ValuationEngine and ValuationCalculator: This class wraps functionality to perform a stress testing analysis for a given portfolio and
859
859
\begin{itemize}
860
-
\item builds the "simulation" market to which stress scenarios are applied,
860
+
\item builds the ``simulation'' market to which stress scenarios are applied,
861
861
\item builds the portfolio linked to this simulation market
862
862
\item generates stress scenarios
863
-
\item runs the scenario "engine" to apply these and compute the NPV impacts of all required shifts
863
+
\item runs the scenario ``engine'' to apply these and compute the NPV impacts of all required shifts
864
864
\item fills result structures that can be queried
865
865
\item writes stress test report to a file
866
866
\end{itemize}
@@ -969,7 +969,7 @@ \subsubsection{Aggregation, Cubes, XVA and Post Process}
969
969
\end{itemize}
970
970
\item {\tt ExposureAllocator}/ {\tt RelativeFairValueNetExposureAllocator}/ {\tt RelativeFairValueGrossExposureAllocator}/ {\tt RelativeXvaExposureAllocator}/ {\tt NoneExposureAllocator}: calculates EPE/ENE based on selected AllocationMethod
971
971
\item {\tt CollateralExposureHelper}: This class contains helper functions to aid in the calculation of collateralised exposures. It can be used to calculate margin requirements in the presence of e.g. thresholds and minimum transfer amounts, update collateral account details with e.g. new margin call info, and return collateralised exposures to the user/invoker.
972
-
\item {\tt CollateralAccount}: This class holds information corresponding to collateral cash accounts. It stores a balance as well as an asof date for the balance. The class also includes "margin" information relating to the most recent margin call (e.g. call amount, status, expected pay date. The idea is that this class can be updated on-the-run with new margin requirements and collateral balances, and the timestamps updated accordingly.
972
+
\item {\tt CollateralAccount}: This class holds information corresponding to collateral cash accounts. It stores a balance as well as an asof date for the balance. The class also includes ``margin'' information relating to the most recent margin call (e.g. call amount, status, expected pay date. The idea is that this class can be updated on-the-run with new margin requirements and collateral balances, and the timestamps updated accordingly.
973
973
\item {\tt CVASpreadSensitivityCalculator}: Compute hazard rate and CDS spread sensitivities for a given exposure profile on an externally provided sensitivity grid.
974
974
\end{itemize}
975
975
@@ -1706,7 +1706,7 @@ \subsection*{Current Scope}
1706
1706
for data management outside (before and after) calling {\tt ORE.run()} and to facilitate
1707
1707
ORE-based application development in Python.
1708
1708
1709
-
We curently extend the SWIG wrapper scope mainly upon client request, rather than embarking
1709
+
We currently extend the SWIG wrapper scope mainly upon client request, rather than embarking
0 commit comments