# Questions tagged [simulations]

The tag has no usage guidance.

147 questions
1answer
95 views

### Monte Carlo simulations in Python using quasi random standard normal numbers using sobol sequences gives erroneous values

I am trying to perform Monte Carlo Simulations using quasi random standard normal numbers. I understand that we can use sobol sequences to generate uniform numbers, and then use probability integral ...
0answers
29 views

0answers
89 views

0answers
36 views

### Bootstrapping to Judge the Fit of a Sampled Return Distribution

Consider the following: I have sampled yearly stock returns from a specified distribution. What I want to do is compare how well my sampled distribution fits the empirical distribution of yearly ...
2answers
668 views

### CDS spread scenarios from historical market data

I'm searching for information on the best way to generate scenarios to be used in VaR or ES calculations, for CDS spreads. Given that we need significant historical data in order to achieve a decent ...
0answers
165 views

### Open Source library for calculating exposures?

I would like to know an open source quantitative library/ies that can calculate exposures out of the box (I have investigated a bit on OpenGamma/Strata libraries with no luck and the website of ...
0answers
80 views

### Implementing Pykthin Multi-factor adjustment

I've made a mistake in the implementation of Pykthin Multi-factor adjustment which I'm fairly certain comes from me not understanding the model completely. The model was developed to drastically ...
2answers
984 views

### Simulating a path of bond yields by Monte Carlo (Python)

I have a number of given time series for bond yields (given in a dataframe in pandas package in Python). I need to do the following task in Python: "1. Simulate 1000 path 30 steps ahead for any yield ...
1answer
262 views

### How to sample from a copula in matlab

I have two random variables (say, X and Y). Each of these rv's are defined by their CDFs (CDF_X and CDF_Y). These CDFs were obtained empirically, so they are a "stair" graph. I also have a copula C ...
1answer
351 views

### Books about Monte Carlo Simulation on derivatives with Python

I am looking for a good reference for Monte Carlo simulation applied to derivatives with Python. Most books I found until now deal with C++... I have found "Derivatives Analytics with Python" by Yves ...
1answer
270 views

### Terminal Variance in the Heston Model

I am trying to understand the basics of financial models. Random Walk as a model for asset prices. We use gaussian random numbers to generate a Gaussian Random walk. The variance of the terminal ...
0answers
60 views

### Equity Options - “How do I build a forward simulation model with regards to shocks in spot pricing and IV?”

I am trying to build a "What-If" Portfolio, consisting of a total of 20 options, across different tenors, strikes (delta), but on the same security. Simply put, the objective is for me to test the ...
2answers
284 views

### Simulation curves; PRIIPS category 3

Once the yield matrix has been computed, the eigenvectors must be calculated to project the yield matrix on the 3 main dimensions. Tehen is wasted to calculate the yield matrix to be used for the ...
2answers
344 views

### Deduce expected exposure profile from option/structure delta?

I am thinking about whether there exists a relationship between the delta of an option (or any structured derivative) and it's expected positive/negative exposure? An intuitive question would be the ...
1answer
654 views

### How are Brownian Bridges used in derivatives pricing in practice?

A similar question has already been asked in the past, unfortunately the 2nd question of the OP was never really addressed. Most references found on internet on Brownian Bridge and Monte-Carlo ...
1answer
660 views

### SDE simulation: P or Q?

Let's take a GBM under $P$: $dS=\mu dt+\sigma dW_{t}^{P}$ and then under $Q$ $dS=r dt+\sigma dW_{t}^{Q}$, where $dW_{t}^{Q} = dW_{t}^{P} + (\mu - r)/\sigma dt$ Now, let's say that I have ...
2answers
562 views

### Monte Carlo, convexity and Risk-Neutral ZCB Pricing

I've built a simplistic Excel monte carlo model to price a zero-coupon bond, but it came up with a slightly unepxected result so I wanted to confirm whether my maths is just a little rusty or my model ...