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
55 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 ...
0
votes
0answers
37 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, ...
1
vote
0answers
47 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}} \...
4
votes
2answers
93 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
65 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
116 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
78 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-...
3
votes
1answer
123 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 ...
2
votes
0answers
78 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 $$...
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 ...
1
vote
1answer
72 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}{...
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
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
48 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 ...
0
votes
2answers
235 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 ...
2
votes
0answers
75 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 ...
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,...
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 ...
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
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}$, ...
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 ...
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 ...
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
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 ...
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}\...
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 ...
0
votes
1answer
117 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 ...
1
vote
0answers
49 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
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 ...
1
vote
0answers
77 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
209 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 ...
1
vote
0answers
81 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 ...
2
votes
1answer
147 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 ...
5
votes
1answer
110 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
99 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
44 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
143 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
94 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
169 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
82 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 ...
4
votes
1answer
592 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
50 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
56 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
326 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?
2
votes
3answers
345 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 ...