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

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.

1
vote
0answers
22 views

Determining the Relationship Between Monte Carlo Breaks and Model Volatility

I'm looking for a statistical test to understand the relationship (if any) between the model volatilities of a stochastic process, and the occurrence of 'break', defined as the instance when an ...
0
votes
0answers
30 views

Importance sampling Heston

I've tried to understand importance sampling first with Black Scholes and the procedure seams more or less ok to me. Now, is there anyone able to explain to me how things should be done under Heston ...
0
votes
0answers
24 views

CVA quality of regression (Longstaff & Schwartz method.)

I am performing a LSMC (Longstaff Schwartz Monte Carlo) over an american option. I run the regression over the paths I setup, however I would like to check the quality of the regression. Some ...
-1
votes
0answers
21 views

SAS Monte Carlo GARCH

does anyone know how to run a stochastic simulation for a GARCH model in SAS? I estimated the model parameters using proc autoreg, but how do I run 10,000 random paths...?
0
votes
1answer
69 views

Asset price simulation under Monte Carlo for option pricing using market data

I am trying to use Monte Carlo to price some exotic options. I have in mind to simulate asset prices under GBM (say S&P prices) using Monte Carlo and price the option accordingly from the payoffs ...
0
votes
0answers
47 views

Compare MC and QMC Simulations

I'm pricing a discrete arithmetic asian option, using both a Monte-Carlo (MC) and Quasi-Monte-Carlo-Simulations (QMC). The goal is to compare both methods, in regard to different strikes and ...
1
vote
0answers
23 views

Importance sampling procedure

I need someone to explain me the importance sampling method. There are several topics but the drift parameter $\theta$ when adjusting is never discussed. I read publications where $\theta$ was used ...
2
votes
1answer
65 views

References for Monte Carlo in insurance

As the title suggests, I'm looking for reference works on Monte Carlo methods in insurance. Wikipedia tells me that the terminus technicus here is dynamic financial analysis. I'm about to start a ...
0
votes
0answers
32 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
48 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
155 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
95 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
55 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
74 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 ...
3
votes
1answer
73 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
109 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
65 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
33 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?
2
votes
1answer
107 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
54 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
59 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
52 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
105 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
43 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
53 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
2answers
175 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
198 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
73 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
67 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
28 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
51 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
31 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
43 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
48 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
41 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
77 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
81 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
125 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
408 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
121 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
165 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
78 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
594 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
82 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
56 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
398 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
39 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
135 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 ...