Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
41 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 ...
2
votes
1answer
145 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 ...
0
votes
1answer
67 views

How to price a barrier using monte carlo when return distribution is not iid?

this question is actually related to set the stop loss and stop return. Say after a liquidity shock, I want to place two stops, one being stop loss and another being stop return. If I use, say 10 ...
0
votes
0answers
36 views

Using variance reduction on only some models

I am pricing options with some copula based models using Monte Carlo simulation. I was looking up some easily implementable variance reduction methods and decided on antithetic variates. However, ...
2
votes
2answers
325 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
0answers
45 views

Geometric Brownian Motion with Dividends

I am working on a problem and had a quick question. I understand that for Geometric Brownian Motion we use the formula: $$X_{t_n} = X_{t_{n-1}} + \mu X_{t_{n-1}} \Delta t + \sigma X_{t_{n-1}} \...
3
votes
1answer
122 views

Monte Carlo Method for American Call Option (No Dividends)

I tried to pricing the American Call option using "Longstaff-Schwartz" least squares method. However, I found the American call option is always lower than the Monte Carlo European call option (they ...
4
votes
2answers
91 views

Implied volatility in Monte Carlo models

Suppose I want to get the implied volatility for a given option, whose process does not generate a closed-form formula. In that framework, how is the IV calculated, given the fact that bisection ...
1
vote
1answer
63 views

Hull white model Monte Carlo simulation Zero Coupon Bond

I am trying to use Hull White Model to price a zero coupon bond by Monte Carlo Simulation. The basic idea is under this equation: Under Hull White Model, I want to generate every short rate (r) and ...
4
votes
0answers
61 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 &...
5
votes
2answers
115 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 ...
1
vote
1answer
75 views

How can I conduct a basic Monte carlo simulation on 2 stocks?

I have 2 stocks in my portfolio A and B.A is currently at 50 dollars and B at 40 dollars. Correlation between A and B is 0. Let us say I bought the stocks today at 50 and 40 dollars. If I wish to use ...
0
votes
1answer
97 views

Monte Carlo computational cost

Hello. I'm reading the above paper and I do not understand how they managed to solve eq (17.35) -- i've seen many papers skip through this as trivial and didn't bother to show the method to get there. ...
4
votes
1answer
77 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 ...
2
votes
2answers
84 views

Is it possible to model path-dependent clauses using finite difference methods?

I'm trying to build a convertible bond pricer. In my case a convertible bond is a complex derivative with call, put and conversion price reset clauses, and all of the clauses are triggered in a path-...
1
vote
1answer
97 views

Simulating assets of different currencies

I have a situation as follows: One year call option on a Euro stock with a Euro denominated strike. Knock in feature as follows - The option can only pay out if the growth in the Euro stock over ...
6
votes
2answers
7k views

Two correlated brownian motions

Is it true (see here, footnote 2, p.22 / p.14, without proof) that we can obtain two discretized brownian motions $W_t^1, W_t^2$ with correlation $\rho$ by doing $$d W_t^1 \sim \mathcal N(0,\sqrt{dt}...
1
vote
0answers
97 views

Ultra Powerfull Vibrato Montecarlo for delta sensitivities of a not regular payoff

Ciao, I am working on a derivative with the following payoff at time $T$: $$ \sqrt{(S_T - K)^+} $$ where $S_T$ is the value of the stock at the expiring date. As usual we will assume $S_t$ to be a ...
2
votes
0answers
77 views

Longstaff-Schwartz, special american option simulation using Python (numpy package)

I got a put option, which can be exercised 3 times, all at different times, which are each month of a year $$t_1 = \frac{1}{12}, t_2 = \frac{2}{12} ... t_{12} = 1$$. Respectively, if exercised at $$...
0
votes
1answer
95 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
2answers
233 views

Least-Squares-Monte-Carlo by Neural Network Estimator for pricing American Option Python

First I did the LSM (Longstaff-Schwartz) to understand how its work to price an American option. code for standard_normal ...
0
votes
1answer
147 views

Black's model and Monte Carlo

It is well know that one uses the Black 76 model to price commodity derivatives. I would however like to perform a Monte Carlo simulation that ties back to this number. How would one go about this ...
2
votes
1answer
60 views

Monte Carlo simulations of stock price percentage change rather than stock price

Say we have a stock price time series $S_k$. We can do monte carlo simulations on the stock price to make predictions about future prices (e.g. through Geometric Brownian Motion SDE's). Does it make ...
1
vote
1answer
71 views

How to calculate mean and volatility parameters for Geometric Brownian motion?

Say I have a time series $S_K$ for monthly asset prices for the last 30 years. I want to run a monte carlo simulation using geometric brownian motion $$S_t = S_0\exp\left(\left(\mu - \frac{\sigma^2}{...
1
vote
0answers
15 views

Benchmark values for exotic options with highly nonlinear boundaries

I have created some modifications of least squares monte carlo algorithm for pricing american options which gives me lower and upper bound. Now I want to test how good it works for options with highly ...
0
votes
1answer
59 views

Monte Carlo simulated price and Black Scholes Price are giving a huge difference in my Matlab code

I have written a script for showing Monte Carlo Price for a increasing N. But comparing with BS results , This indicates a huge difference. Where is the error? Function : function [cpay,ppay] = ...
1
vote
0answers
47 views

Monte Carlo VAR with differente asset classes

I have found a very useful post regarding the use of Monte Carlo simulaton to obtain portfolio Value at risk, based on Cholesky decomposition, random variates, etc. This post I'm talking about is: Is ...
2
votes
0answers
74 views

Simulating compound Poisson jump-diffusion process with time-changed jump frequency

I want to simulate a jump-diffusion process with compound Poisson jumps and a deterministic jump frequency function $\lambda(t)$. The function should follow the following stochastic differential ...
2
votes
1answer
132 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 ...
3
votes
0answers
59 views

Solving BSDE in R

I was wondering how to implement a BSDE approximation in R. For example, if I have the toy BSDE $$ dX_t = \mu dt + \sigma dW_t ; X_T\sim N(\mu_1,\sigma_1), $$ for fixed real numbers $\mu,\mu_1,\sigma,...
0
votes
1answer
70 views

Bayesian trade probability with factors

I have a strategy Y which is influenced by some factors X1, ..., Xn (for example asset volatility, distribution of macroeconomic factors). At moment t0 I have historical distribution(prior) of X1, ...,...
1
vote
0answers
15 views

Asian basket option variance reduction control variates monte carlo

I have priced an Asian put option with three underlying correlated stocks. Now I want to try to reduce the variance using control variates. I have found great ideas when there is one underlying (thus ...
5
votes
2answers
136 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 ...
2
votes
3answers
343 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
1answer
96 views

time step choice impact in Vasicek model simulations

I am trying to make some computations using Vasicek short rate model. Especially I a trying to compare exact expectation(obtained with the formula) and the expectation from Monte Carlo simulation. ...
1
vote
2answers
64 views

Sample from aggregate portfolio distribution versus individual asset distributions

Suppose I have three assets $x_1,x_2,x_3$ in a portfolio with weights $W=\begin{bmatrix} w_1 \\ w_2 \\ w_3 \end{bmatrix} $, expected returns $R=\begin{bmatrix} \mu_1 \\ \mu_2 \\ \mu_3 \end{bmatrix}$, ...
2
votes
0answers
67 views

How can I estimate the time-varying θ term in the Hull-White one factor model?

I am trying to simulate the prices of bond indexes (e.g. Barclays Aggregate, IBOXX sovereign, IBOXX corporates) using Monte Carlo assuming that they follow the SDE given by the Hull-White model (one-...
1
vote
3answers
169 views

Non-convergence in Monte Carlo

Trying to implement some monte carlo simulation for the first time. For the sabr model (http://www.javaquant.net/papers/managing_smile_risk.pdf), would this work? Here, a = volatility of volatility, ...
1
vote
1answer
64 views

Computing Montecarlo VaR for a single asset

I'm trying to understand the procedure to compute the Value-at-Risk for a single asset by implementing the Montecarlo technique. Here it follows the procedure step-by-step in 5 points: selecting the ...
13
votes
3answers
14k 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 ...
3
votes
2answers
156 views

SDE for option value

Given an SDE for an underlying: $$dS(t) = \mu(S,t)dt+\sigma(S,t)dW(t)$$ the SDE for the value of the option $V=V(S,t)$ is given via Ito's lemma as: $$dV = V_tdt+V_S\mu(S,t)dt+\frac{1}{2}V_{SS}\...
4
votes
2answers
330 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 ...
6
votes
2answers
651 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 ...
0
votes
1answer
160 views

Least-Square Monte Carlo in multiple variable

The paper by Longstaff-Schwatz on Least Square Monte Carlo offers very little proof. The only proof they have given assumed the option can only be exercised at two different time point and the price ...
1
vote
0answers
31 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 ...
2
votes
1answer
80 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 ...
4
votes
2answers
705 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. ...
0
votes
1answer
116 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 ...
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 ...
6
votes
2answers
592 views

Whites Reality Check for Pair Trading

I want to use the Monte Carlo Method described in Aronsons book Evidence based Technical Analysis to test if a given pairs trading strategy is useless. First step there is to randomize the returns of ...