Questions tagged [monte-carlo]

Monte Carlo simulation methods are a broad class of computational algorithms that rely on repeated random sampling to obtain numerical results.

Filter by
Sorted by
Tagged with
14
votes
3answers
15k views

Is there a step-by-step guide for calculating portfolio VaR using monte carlo simulations

I am trying to determine a step-by-step algorithm for calculating a portfolio's VaR using monte carlo simulations. It seems to me that the literature for this is extraordinarily opaque for something ...
11
votes
3answers
5k views

Black-Scholes under stochastic interest rates

I'm trying to implement the Black-Scholes formula to price a call option under stochastic interest rates. Following the book of McLeish (2005), the formula is given by (assuming interest rates are ...
4
votes
2answers
701 views

Importance Sampling for pricing options with longstaff and schwartz

I have been asking this similar question before. However, I really want to be concrete and get and concrete explanation. I have been reading the paper by Moreni and try to implement the same ...
4
votes
2answers
1k views

How many monte carlo runs do I need for pricing a Call?

I have to price several calls using Monte Carlo. Obviously, there is a huge tradeoff between the number of runs and the fair price of the call option. I know I can check how the approximation changes ...
14
votes
5answers
7k views

How to get greeks using Monte-Carlo for arbitrary option?

Let's assume I have an arbitrary option that I can price using Monte-Carlo simulation. What is the general approach (i.e. without relying on specific option type) to calculating the greeks in this ...
8
votes
2answers
4k views

Simulation of GBM

I have a question regarding the simulation of a GBM. I have found similar questions here but nothing which takes reference to my specific problem: Given a GBM of the form $dS(t) = \mu S(t) dt + \...
4
votes
2answers
2k views

Stopping Monte Carlo simulation once certain convergence level is reached

I'm creating a Monte Carlo simulation model which I use to price an European option with various pay-off conditions, hence I can't use Black Scholes. I want to stop the simulation once I am 95% sure ...
4
votes
2answers
359 views

Foresight bias in least square monte carlo

Foresight bias means we tend to over estimate the American option value. This we observe in other areas of statistics - e.g. in sample test almost always gives better prediction than out of sample ...
2
votes
1answer
662 views

Get distribution for aggregate loss using Monte Carlo

I am given two data sets containing dates and losses (in some currency). Given a distribution for the amount of losses and an (a,b,0) distribution for frequency of losses, how can I use Monte Carlo ...
19
votes
1answer
2k views

Portfolio optimization with monte carlo sampling from predictive distribution

Let's say we have a predictive distribution of expected returns for N assets. The distribution is not normal. We can interpret the dispersion in the distribution as reflection of our uncertainty (or ...
12
votes
4answers
2k views

Are these steps correct to calculate Value-at-Risk with a Monte Carlo simulation?

I have a problem calculating VaR with the Monte Carlo Simulation. I followed the next steps and would like know if it is a right way to calculate VaR or if I need something more? The steps Generate ...
11
votes
3answers
1k views

Reference on Markov chain Monte Carlo method for option pricing?

I have to implement option pricing in c++ using Markov chain Monte Carlo. Is there some paper which describes this in detail so that I can learn from there and implement?
7
votes
2answers
676 views

Practical implementation of Least Squares Monte Carlo (tweaks and pittfalls)

The Longstaff-Schwartz LSM approach is nowadays ubiquitous(at least in the academic literature) in pricing path dependant derivatives. Up to now I have mostly worked with lattice methods. My ...
8
votes
3answers
4k views

Usage of Brownian Bridge?

I was recommended to read something about Brownian Bridge. Could someone familiar with BB give some recommendation? It was mentioned that BB benefits in 2 places BB could reduce the simulation paths,...
14
votes
5answers
2k views

Monte carlo methods for vanilla european options and Ito's lemma.

I understand that by applying Ito's lemma to the following SDE $$dX=\mu\,X\,dt+\sigma\,X\,dW$$ one obtains a solution to the above SDE which is as follows: $${X}\left( t\right) =\mathrm{X}\left( 0\...
7
votes
2answers
525 views

How to reduce variance in a Cox-Ingersoll-Ross Monte Carlo simulation?

I am working out a numerical integral for option pricing in which I'm simulating an interest rate process using a Cox-Ingersoll-Ross process. Each step in my Monte Carlo generated path is a ...
3
votes
1answer
724 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 ...
5
votes
1answer
118 views

Application of Vibrato Montecarlo methods

Ciao, I was studying Vibrato Montecarlo methods and I came up with a very simple question: what is an real application of this method? Let me explain. In short the main idea of the method is the ...
5
votes
0answers
424 views

(C++) Monte Carlo pricer for SABR model to test Hagan / Paulot formulas

I'm trying to test the so-called Hagan formula (p.6 of this paper) and the Paulot formula, order 1 only (eq. (43) p.19 of this paper. For this, i'm trying to use both Euler and Milstein scheme ...
5
votes
1answer
1k views

How to apply quasi-Monte Carlo to path-dependent options?

Following up on my recent question on variance reduction in a Cox-Ingersoll-Ross Monte Carlo simulation, I would like to learn more about using a quasi-random sequence, such as Sobol or Niederreiter, ...
7
votes
2answers
812 views

Vanilla European options: Monte carlo vs BS formula

I have implemented a monte carlo simulation for a plain vanilla European Option and I am trying to compare it to the analytical result obtained from the BS formula. Assuming my monte carlo pricer is ...
7
votes
1answer
5k views

How to simulate a jump-diffusion process?

I would like to price Asian and Digital options under Merton's jump-diffusion model. To that end, I will have to simulate from a jump diffusion process. In general, the stock price process is given ...
4
votes
2answers
635 views

How to compute greeks using the adjoint Monte Carlo approach?

Assume I have a stochastic ODE $$dS = a(S)dt + b(S)dW,$$ with Euler approximation $$\hat{S}_{n+1}=F_n(\hat{S}_n)=\hat{S}_n+a(\hat{S}_n)h+b(\hat{S}_n)Z_n\sqrt{h}.$$ This allows me to create sample ...
2
votes
1answer
3k views

How to use Halton sequence in monte carlo simulation

Does anybody know how to use the Halton pseudo random technique in monte carlo simulation. I'm able to generate the sequences and I know they are correct. I checked a couple of numbers from different ...
2
votes
1answer
1k views

American Swaption Pricing with Monte-Carlo method

I want to price an American swaption but I am not sure about what I am doing. Tree methods and PDE discretization seem difficult to adapt to a swaption. I am trying a Monte-Carlo approach. (in ...
2
votes
1answer
147 views

How to interpret and define statistics of GBM output

I am trying to model the future prices of a number of commodities. For this, I am applying geometric Brownian motion, writing a Monte Carlo code in Python. Given that I want to estimate tommorows ...
4
votes
1answer
478 views

Divergence issue with my monte carlo pricer…

I am trying to implement a vanilla European option pricer with Monte Carlo and compare its result to the BS analytical formula's result. I noticed that as I increase (from 1 million to 10 millions) ...
3
votes
1answer
277 views

Time Step Size for Heston Model for Different Option Maturity

Suppose we are to price with Monte Carlo method two options differing only in the maturity time, with the same, say, call option payoff, or Asian option payoff with a fixed averaging window, with the ...
3
votes
1answer
203 views

What is wrong in this GBM simulation?

I am trying to generate a few samples of GBM using the following very simple MATLAB code: ...
3
votes
1answer
250 views

Is This A Viable Alternative Options Pricing Method?

i'm currently a high school student who hasn't gone past Algebra II, and thus I have minimal Calculus knowledge. I know the basics of Integration and Derivation (drop the coefficient, raise to the ...
1
vote
1answer
70 views

Compute moments of aggregate loss using Monte Carlo

Spin-off from here. Richard referred to me an article that tells me how to get parameters of a translated gamma distribution to which I should consider fitting simulated aggregated loss values. The ...
0
votes
0answers
126 views

Monte Carlo simulation error estimation

How does one estimate the error of a Monte Carlo simulation, for example, of the price of a European call under the Heston model with a given step size and number of paths?
-1
votes
1answer
151 views

Use random-shift Halton sequence to obtain 40 independent estimates for the price of a European call

Background Information: Random-shift Halton sequence: Consider the first six Halton vectors in dimension $2$, using base $2$ and $3$: $$\begin{bmatrix} 1/2\\ 1/3 \end{bmatrix}, \begin{bmatrix} 1/4\\ ...