Recently I wrote an experience report on running Monte Carlo simulation on a GPU for the newsletter of TopQuants. My piece is here. Advertisements
Recently I had to familiarise myself with commodity futures. One thing that surprised me was the common unit of measurement for natural gas. It is used in MMBtu, which is a short for a million of British thermal units. It … Continue reading
Recently I needed to build a Monte Carlo simulator of a continuous-time Markov chain. This is a pretty straightforward exercise; the only catch was that I wanted it to perform well, so I had to use a fast algorithm for … Continue reading
Let’s calculate CVA (credit value adjustment) analytically. We will see that analytical CVA calculation is quite complex even for a fairly simple transaction (a vanilla swap). A few shortcuts will help us simplify the calculation.
When we have to calculate exposure at default (EAD) on a particular trade, we seldom have to compute it analytically (e.g. as shown here). More often we just take the current MtM of the trade and add the so-called add-on. … Continue reading
To calculate counterparty exposure, we need to calibrate our scenario generator to historical data. However, for CVA calculations, we need scenarios based on implied volatilities of the underlying risk factors. Continue reading