1. Supplementary file 2.
2. S0 stack gas gives (NH)S0
3. illustrates how to simulate the CVA-VaR of a portfolio using MC-GP. The implementation assumes a Black-Scholes model with a dynamic default intensity model given by Equation (31). The BS parameters and portfolio configuration are the same as the previous listing. Note, for conciseness, that this excerpt should only be run after running the previous excerpt. See Example-4-MC-GPA-BSprocess regression and Monte Carlo simulation (MC-GP) approach for fast evaluation of derivative portfolios, their sensitivities, and related counterparty credit risk metrics such as the EPE and the CVA. The approach is demonstrated by References Abbas;L A Turki;International Journal of Theoretical and Applied Finance,2018