We’re rewarding the question askers & reputations are being recalculated! Read more.

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
6
votes
2answers
2k views

When to use the real world drift and when the risk neutral one for a Monte-Carlo simulation?

Under what conditions should the drift be real world and when risk neutral when simulating Delta Hedging option pricing trading strategy any other? For 2. it should be risk neutral. For 1., it ...
6
votes
3answers
5k views

Monte Carlo simulating Cox-Ingersoll-Ross process

The CIR process is given by the SDE $$ \mathrm dr_t = \theta(\mu-r_t)\mathrm dt + \sigma\sqrt{r_t}\mathrm dW_t $$ where $W_t$ is a Brownian motion. I am interested in finite-difference schemes of ...
6
votes
2answers
269 views

Which quantitative tools are actually used for hedging energy price and volume risk?

I'm a finance professor and I am looking for someone with actual trading and risk management knowledge within the energy sector who can tell me about pricing and hedging energy (especially electricity ...
6
votes
1answer
304 views

(Re) normalisation of random variable in Monte-Carlo simulations

I have a very simple model (CIR) with a very simple discretisation scheme (Euler) and I use it to do Monte-Carlo Simulations. It is working. Someone insisted that renormalization of my random ...
6
votes
2answers
737 views

Practical implementation of Libor Market Model

I am trying to implement a project about the BGM model, suggested in the book "The Concepts and Practice of mathematical finance" by Mark Joshi. My question is related to the forward volatility ...
6
votes
2answers
1k views

Generate correlated random variables from Normal and Gamma distributions

I want to generate a random vector $z$ of dimension $k+m$ with some given correlation matrix $\Sigma$, such that the first $k$ elements of the vector are distributed normally and the last $m$ elements ...
6
votes
1answer
140 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 ...
6
votes
1answer
65 views

Control variate for pricing a best of assets option : $\mathop{{}\mathbb{E}}[ \max ( F^1_T,F^2_T, …,F^N_T )]$

I want to use Monte Carlo to price a best of assets derivative : $$\mathop{{}\mathbb{E}}[ \max ( F^1_T,F^2_T, ...,F^N_T )]$$ where the $F^i_T$ is the forward of the ith asset observed at expiry ...
5
votes
3answers
396 views

Can call options be priced with Least-Squares Monte Carlo?

I have been reading about Least-Squares Monte Carlo (using Longstaff & Schwartz algorithm) for option pricing. So far, I have only read examples that uses LSMC for american/bermudan PUT options ...
5
votes
2answers
766 views

How to Calculate a Monte Calo VaR estimation error

I'm performing a Monte Carlo to calculate value at risk (with a 3 dimension risk factor) Now, I would like to calculate the error of the estimation of the VaR with respect to the number of simulations ...
5
votes
2answers
2k views

Is drift rate the same as interest rate in risk-neutral random walk when using Monte Carlo for option pricing?

When using following risk-neutral random walk $$\delta S = rS \delta t + \sigma S \sqrt{\delta t} \phi$$ where $\phi \sim N(0,1)$. Now when a text mentions drift = 5% does that mean that interest ...
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, ...
5
votes
2answers
136 views

Do correlated assets affect the price of a portfolio of derivatives?

I need to compute the value at risk of a given portfolio as an exercise for a class at university but I have trouble understanding how correlated assets affect the price of the portfolio. Could you ...
5
votes
1answer
320 views

Simulate (imaginary) asset prices using random numbers that follow a Frank Copula

I didn't understand how to simulate asset prices by using non normal random numbers. I am assuming that it would be incorrect to use the standard Geometric Brownian Motion, since it is based solely ...
5
votes
0answers
471 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
0answers
81 views

How to price lookback american option when its payment is distributed during its life

I would like to price a floating strike american lookback with a particular feature: I don't want to charge upfront the client, rather I would like to insert a "running fee", some sort of a dividend. ...
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
4answers
10k views

Simulating the short rate in the Hull-White model

What is the best way to simulate the short rate $r(t)$ in a simple one factor Hull White process? Suppose I have $$ dr(t) = (\theta(t)-\alpha r(t))dt+\sigma dW_t $$ where $\theta(t)$ is calibrated ...
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 ...
4
votes
1answer
3k views

Mersenne twister random number generator in Java for Monte Carlo Sim.

I am using the Mersenne twister random number generator in Java for a Monte Carlo Simulation. I need a uniform distribution of values between -1 and 1. My code is below (I am importing org.apache....
4
votes
2answers
462 views

Importance Sampling - where to center the sampling distribution?

Consider a Monte Carlo (MC) approximation to a European call with BS parameters $r = 0.05, \sigma = 0.4, T = 10, S_0 = 50$ and $K = 95$. Consider the following results, each using 1M points: plain ...
4
votes
4answers
380 views

How to deal with extreme cases in normal random numbers generation?

In order to generate normal random numbers, one usually generates random numbers following a uniform distribution $Z \sim \mathcal{U}(0,1)$ and then applies the reverse CDF function on them $X=\Phi^{-...
4
votes
2answers
5k views

Does one use the covariance or correlation matrix in cholesky decomposition to generate correlated samples

Can we interchangeably use Cholesky decomposition of covariance and correlation matrix to generate simulations? If not, in which situations do we use one or the other and why? Thanks in advance.
4
votes
2answers
2k views

BDT model implementation

I am looking for a nice and readable description of how to implement BDT model: $d log(r(t)) = [\theta(t)-\frac{\sigma'(t)}{\sigma(t)}log(r(t))]dt + \sigma(t) dW$. I assume I already have steady-...
4
votes
1answer
1k views

Why is there a difference in American option prices when comparing pricing methods (Python)?

I have written a Python script to price American options using Least Squares Monte Carlo and added a QuantLib implementation below (analytical/binomial/finite difference) to compare. The problem is ...
4
votes
1answer
280 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 ...
4
votes
1answer
1k views

How to do a Brownian Bridge with quasi-random numbers in the Heston model?

I'm required to use the Euler Monte Carlo method to compute the option price under Heston model settings. I know from some paper that the convergence is volatile for the Heston model with a plain ...
4
votes
2answers
406 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 ...
4
votes
1answer
683 views

Estimating early exercise boundary for American put

I am trying to estimate the early exercise boundary for an American put option. I can find the put value through the Longstaff-Schwartz LSM method. How do I obtain the early exercise boundary within ...
4
votes
2answers
319 views

What sort of order submission strategy would result in a random walk of trade prices?

I have written a simulation that matches buy and sell orders, keeps track of an order book and simulates trades. My first pass at order submission was to generate random orders around the bid/ask ...
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) ...
4
votes
1answer
169 views

Monte Carlo (resampling) in m.v. portfolio optimization

The instability and high sensitivity of optimisation results can be augmented by adding another layer of quantitative methodology in the form of Monte Carlo Simulation. The name Monte Carlo alludes to ...
4
votes
1answer
1k views

Monte Carlo - Multivariate Simulation of Returns

I am implementing a Monte Carlo simulation in R to generate multivariate correlated returns. In doing this I have used the Cholesky decomposition, applied to the covariance matrix. However, I saw that ...
4
votes
2answers
89 views

Approach to add scenarios to OpRisk loss distribution

There is quite a lot of literature on OpRisk modelling. My question focuses on a loss distribution approach (LDA). Let's look at a basic model. A Poisson-distributed $N$ and loss sizes $X_i$ and from ...
4
votes
2answers
147 views

Optimal number of iterations for quasi-Monte Carlo

I'm quoting from Peter Jäckel's book "Monte Carlo Methods in Finance", page 96: ...For low-discrepancy numbers, the situation is different. Sobol numbers and other number generators based on ...
4
votes
4answers
477 views

Web-based Backtesting for Options Traders [duplicate]

Is there a good web-based option for back-testing of equity options trading strategies.
4
votes
2answers
856 views

Monte Carlo based mean variance optimization

I was asked this question in an interview some years ago. It struck me as a poorly formed question. I thought I would put it out there to the community to see if I just simply missed something. ...
4
votes
1answer
1k views

Simulating returns from ARMA(1,0)-GARCH(1,1) model

I want to obtain a simulation of one-step ahead forecasts of stock returns process governed by ARMA(1,0)-GARCH(1,1) process. The returns are of form: $x_t = \mu + \delta x_{t-1} + \sigma_t z_t$ From ...
4
votes
2answers
1k views

Geometric Brownian Motion - increasing simulations or smaller step size

I am running Monte Carlo simulations to estimate future share prices of some stocks. For stock A, I need 1 share price exactly one year from now. For stock B, I need daily prices for each trading ...
4
votes
1answer
271 views

How do you deal with Inflation lag in a MC simulation?

Consider the UK RPI index. This index is published every month around the 15th (give or take a few days). The publication refers to the RPI index of the month before, so there is a lag of a few weeks ...
4
votes
2answers
647 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 ...
4
votes
1answer
2k views

Value at Risk Monte-Carlo using Generalized Pareto Distribution(GPD)

I have created a VBA program to calculate VaR by using Monte Carlo, I have simulated Brownian Motion. This method might be ok for 100% equity portfolio, but let's say this portfolio may have fixed ...
4
votes
1answer
312 views

Numerical simulation of Heston model

I am trying to simulate on Python random paths for a general asset price as described by the Heston model: \begin{equation} \begin{aligned} dS_t &= \mu S_t dt + \sqrt{\nu_t} S_t dW^S_t \\ d\nu_t &...
4
votes
1answer
104 views

Monte Carlo for Asian Pricing

I'm trying to verify the accuracy of my Monte Carlo method for pricing mean options. I came across this paper that supposedly gives an 'exact' solution for the arithmetic mean option (asian). It's a ...
4
votes
1answer
398 views

Least Squares Monte Carlo Method for Option Pricing - Basis functions

I am trying to implement a LSMC to value an american-style real option with an underlying project value that is exposed to several risk factors. In the paper of Longstaff & Schwartz, they use the ...
4
votes
2answers
767 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
579 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 ...
4
votes
1answer
319 views

Markov chain Monte Carlo Analysis of FX Options

I recently stumbled upon a paper titled "Markov Chain Monte Carlo Analysis of Option Pricing Models" thanks to another post on this site (see: link). I have the ultimate goal of implementing a MCMC ...
4
votes
1answer
2k views

Portfolio Optimization with Monte Carlo Simulation - How to do it with Excel?

If I have three asset classes and their historical weekly returns for five years, how can I construct a minimum variance portfolio and an efficient frontier plot with Excel? To do that do I have to ...
4
votes
0answers
113 views

Quasi Random Monte Carlo in m.v. portfolio optimization

Not specifying a correlation matrix for the Monte Carlo Simulation's random returns is equivalent to assuming no correlation or a correlation coefficient of zero, which will seriously and adversely ...