Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
24 views

Importance sampling weights

I read topics on that subject on this forum but nothing is approaching my problem. Say I'm dealing with a 1Y max put callable with an European Down And In barrier. Say $S_0=100$, barrier $H=80$ and $...
1
vote
0answers
45 views

Control Variate Barrier Basket Option

I need to improve the speed of convergence of PRNG Monte Carlo. I'm opening a new thread for that purpose and I have question / need confirmation about the algorithm. I'm pricing options with Heston, ...
0
votes
2answers
121 views

Quasi Monte Carlo

I read several articles regarding quasi Monte Carlo algorithm with Sobol sequences but I still have questions. I implemented MC simulations with an ordinary random generator in matlab. I'd like to ...
0
votes
1answer
64 views

Mean - Value at Risk optimization portfolio

so I'm intrested in building a process that computes the optimal portfolio selection based on asset using the framework of return maximization and VaR (montecarlo simulation) minimization. So far I ...
1
vote
0answers
45 views

Pricing a Path-Dependent Option with Heston

I want to price a path-dependent option (let's say for example an arithmetic average Asian option) under a Heston model. In a Black-Scholes setup, I use forward volatilities to do so. I want to apply ...
1
vote
1answer
46 views

How to model High/Low prices for Stocks with Monte Carlo

I'm using monte carlo simulation to model stock paths and measure risk, but I was wondering if there is a way to simulate the full bar/candle chart with open, high, low and close prices , as I'm only ...
2
votes
1answer
51 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 ...
0
votes
0answers
61 views

Quantlib Python: Issue withg Heston MC Paths generation

I am trying to price a corridor Variance Swap with Heston. I am generating paths with the following code, however I get weird results of the MC simulation. Any idea why ? ...
0
votes
0answers
54 views

Modelling VIX futures backwardation

I have VIX futures trading algorithm and would like to perform Monte-Carlo simulation of VIX and understand how my algorithm performs on each simulation. In this case, not only VIX should be modeled, ...
0
votes
0answers
30 views

Antithetic sampling on non-linear payoff?

If I wish to price an option with Monte Carlo using the standard GBM process, which have payoff $(max(S-K,0))^2$ Why is it not suitable for a non-linear payoff?
1
vote
1answer
85 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 ...
1
vote
1answer
47 views

GBM in R giving negative numbers?

I was under the impression that simulations involving geometric brownian motion are not supposed to yield negative numbers. However, I was trying the following Monte Carlo simulation in R for a GBM, ...
1
vote
0answers
55 views

Longstaff Schwartz Algrorithm in R

I recently discovered the LSMonteCarlo library in R which basically determines the price of American options via Longstaff Schwartz method. I tried the ...
1
vote
0answers
41 views

Monte Carlo Simulation of correlated returns based on different frequencies

I am simulating through Monte Carlo, multivariate correlated returns of different products composing an Oil&Gas portfolio. The historical prices (from which I computed the log-returns) of the ...
2
votes
1answer
74 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 ...
0
votes
0answers
38 views

Choice of time increment for Monte-Carlo Simulation with annual simulation grid

I would like to run a Monte-Carlo simulation for annual cashflows up to 20 years. Cashflows are basically given by multiplying a fixed production amount and end of year price per production amount. In ...
1
vote
0answers
51 views

Optimal number of simulations for Monte Carlo [duplicate]

I am building a Monte Carlo simulation model for thousands of stocks. I am wondering is there a closed-form formula I can use to determine the optimal or at least minimum number of simulations need to ...
2
votes
1answer
117 views

Monte-Carlo simulation Hull-White process: physical and risk-neutral measure

From Monte-Carlo simulation Hull-White process I get paths in risk-neutal measure. How can I get paths in physical measure?
1
vote
3answers
145 views

how to simulate FX forwards

My question is how to do Monte Carlo simulation for FX forward contracts. Just imagine you have bought a bunch of FX forwards (in various currencies and various tenors) for hedging purposes and you ...
0
votes
0answers
50 views

Monte Carlo simulation based VaR: daily vs annual parameters

I am given the initial price, annualized return, and volatility of a security. I am trying to calculate annualized VaR using Monte Carlo simulation approach. To do this I will use the following ...
0
votes
0answers
51 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
vote
0answers
27 views

Fast algorithms for computing distributions of ABS/MBS portfolio

First,suppose we only have ABS pass-through product ,all with maturity of 12 months.The typical cash flow for each loan is at the beginning of the month ,received principal for that term,say 10000 RMB ...
1
vote
0answers
48 views

Monte Carlo Pricer for Express Certificate delivers wrong price [Mathematica]

So I wanted to price the following Express Certificate with this specific payout structure: If S1 > S0 -> 105.25 , else -> If S2 > 0.95*S0 -> 110.5 , else -> If S3 > 0.9*S0 -> 115.75 , else -> If ...
0
votes
0answers
29 views

Reference on Pricing Model of Convertible Bonds based on MCMC Algorithm?

I have to implement convertible bonds pricing (in Stochastic Volatility condition)in Matlab or R using MCMC algorithm. Is there any paper or book which describes this method in detail?
0
votes
0answers
35 views

Determine the payoff function P(ST) if a future contract

I am confused how to answer the following question. A forward contract on a stock is a financial derivative that guarantees the owner of delivery of one share at an agreed future time $T$ . The owner ...
0
votes
1answer
41 views

How to compute estimate performance with variable returns and days held

I have a trading strategy that results in a number of holdings, each of which has a variable number of days held, and obviously, return. So, for example, suppose I run a Monte Carlo simulation, and ...
0
votes
0answers
37 views

Monte Carlo for constructing the Vol smile in SABR

My purpose is to construct the vol smile using Monte Carlo simulation and not market data. When I search for Monte Carlot methods for SABR I often see the Euler scheme as given for instance in these ...
0
votes
1answer
76 views

R script for Leasts Square Monte Carlo. How to explain vol and mean?

I am trying to do a Least Squares Monte Carlo in R. I don't know if it is the right place to post this, but I am out of options. I don't understand the following ...
0
votes
0answers
58 views

CIR calibration error (Python)

No joy on Stack Overflow, perhaps more fitting here. I have a script which includes a calibration of the CIR model for short rates, the entire script and dependencies are at: https://github.com/...
0
votes
1answer
114 views

Simulation of arithmetic asian option

I'm trying to implement a monte carlo simulation for asian option pricing by using a higher accuracy schemes. But i don't know exactly how to simulate (2.6), someone can help me?
1
vote
0answers
35 views

Low estimator when valuing american option using Broadie and Glassermann Monte Carlo tree with antithetic branching (R)

I've been looking into Monte Carlo methods for valuing american options. Now, I found an R code by Stefano M. Iacus that values the option using a tree (based on Broadie and Glassermann) without use ...
4
votes
1answer
330 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 ...
2
votes
0answers
107 views

Quasi Monte Carlo method and Heston model

I want to run a quasi monte carlo simulation for Heston model in matlab. Obviously there exists a lot of literature regarding the theoretical aspects of the topic, for example by Baldeaux and Roberts, ...
1
vote
1answer
131 views

How to estimate lambda for Jump-Diffusion Process from Empirical data?

So, I have really no idea how to go about this, but how would I go about choosing sensible parameter values for a basic jump-diffusion simulation, namely $\lambda$ ? For example, getting the average ...
1
vote
0answers
74 views

Monte Carlo Simulation of Spread Strategy. Two correlated assets vs One spread simulation?

I am trying to simulate paths of a certain spread strategy such as a calendar spread between two futures ( May Crude vs Aug Crude) using a Monte Carlo simulation. My questions is there a difference ...
1
vote
1answer
555 views

Pricing a double barrier option using Monte Carlo (C++ & Python code included)

I'm trying to price an option with upper and lower barriers using MC where the payoff is $B_u$ when $S_t > B_u$, $B_l$ when $S_t < B_l$ and $S_t$ when $B_l < S_t < B_u$. I have written ...
0
votes
1answer
55 views

Generally how to simulate bivariate (or multidimensional) BM sample paths?

A topic I am struggling with is the implementation of a (for the simplest higher dimensional case) bivariate normal distribution simulation for geometric brownian motion. The clearest explanation by ...
0
votes
0answers
52 views

Methods to generate multiple yield curves

I need to run a model to value bank mortgages using a Monte Carlo simulation, where mortgages will be valued based on future interest rates. To that end, I build a yield curve taking rates of US ...
1
vote
2answers
319 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 ...
4
votes
2answers
76 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 ...
0
votes
0answers
36 views

Anti-thetic sampling and second moment matching

Background: This is in reference to ch 7 problem 10 of Mark Joshi's concepts of mathematical finance. Question: A normal random generator produces the following draws: $$0.68, -0.31, -0.49, -0....
2
votes
1answer
124 views

Monte Carlo Simulation of price processes

before I ask my question I want to illustrate what I think I know about Monte Carlo simulation: say I want to simulate the price paths of one European Call Option with fixed strike and maturity in the ...
5
votes
0answers
176 views

Advantage of solving the Fokker-Planck equation over Monte-Carlo simulations

For a standard Ito process $$dX_t = \mu(X_t, t) \,dt + \sigma(X_t, t) \,dW_t,$$ the Fokker-Planck or forward Kolmogorov equation gives an equation for the probability density $p ( x , t )$ of the ...
1
vote
1answer
237 views

Monte-Carlo simulation Hull-White process

I have one question about Monte-Carlo simulation Hull-White process, maybe you can give me some advice. I constructed a Hull-White process using Python and QuantLib. Now I want to construct a Hull-...
1
vote
3answers
150 views

generating a correlated RV which has the same correlation to existing samples

Suppose I have generated a collection of correlated sequences of samples $(S_i)_{i=1}^{n}$ from random variables $\mathbf{\underline{x}} = x_i$. Let's fix a sequence of reals $(\sigma_i)_{i=0}^{n}$. ...
0
votes
0answers
100 views

Monte Carlo simulation for price of European call under Merton model

The stock price is modeled by $$S_t = S_0 e^{bt +\sigma B_t + \sum_{k=1}^{N_t} Y_k}$$ with $B_t$ standard Brownian motion, $Y_k$ iid $N(\mu,\delta^2)$, $N_t$ a Poisson process of parameter $\lambda$ ...
1
vote
1answer
79 views

Question about the process of monte carlo simulation

I have encountered an interesting question. Is it better to simulate the geometric brownian motion process for call itself or GBM for the underlying. My question is can we actually apply GBM to call? ...
5
votes
2answers
293 views

Multithreading Monte-Carlo pricing in QuantLib for a single product

I've been actively using QuantLib for structured product pricing using Monte Carlo. Due to the fact that at a great deal of paths are often needed and one needs to speed up the calculation and all ...
4
votes
1answer
177 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 ...
1
vote
1answer
95 views

Do we need to derive the PDE for the option price when applying Least Squares Monte Carlo?

I want to price an American call option based on an underlying that follows a jump-diffusion process with an inhomogeneous jump frequency function. My mathematical skills are not sufficient to derive ...