# Questions tagged [simulations]

The tag has no usage guidance.

194 questions
Filter by
Sorted by
Tagged with
98 views

### Jump diffusion simulation

I want to simulate a geometric Brownian motion and we assume that the volatility of the stock can take just two values $\sigma_1=0.2$ and $\sigma_2=0.8$. We also assume that the jumps up from lower ...
71 views

### Simulating correlated Geometric Brownian Motion in Python

I want to simulate two correlated Geometric Brownian Motion processes in Python. I found an implementation from Matlab (https://www.goddardconsulting.ca/matlab-monte-carlo-assetpaths-corr.html) and ...
25 views

### Simulating two correlated time series using GBM [duplicate]

My situation is the following: I have two time series TS1 and TS2, whereas TS1 is a stock price. According to literature, TS2 is positively correlated to TS1. Furthermore, since TS1 is a stock price, ...
58 views

### Reliable random number generation for Monte Carlo

Monte Carlo methods typically require us to construct very large vectors of numbers. In doing so it is often of great importance that the generated random numbers are independent. My question here, as ...
73 views

### Does my Python code correctly simulate realizations of a CIR process?

I've written the following function which should simulate realizations of a CIR process: ...
107 views

### Simulating artificial asset prices: Random walk vs Brownian motion?

How well can each simulate the real-life behavior of stock prices, and what considerations or (dis-)advantages must we be aware of when deciding to use each: Random walk with drift Random walk ...
15 views

### Models that can improve FHS (with possible residuals manipulation)

The Filtered Historical Simulation (FHS) is a tough benchmark. By: choosing among the most complicated ARMA-GARCH variants with automatic model and lag selection, manipulating standardized residuals ...
37 views

### Source on multivariate correlated geometric Brownian motion returns, not prices

Can anyone provide a source that formulates how to generate multivariate geometric Brownian motion returns using the Cholesky method with target correlation matrix, instead of correlated GBM prices? ...
41 views

### Simulation of price ratios

How to go about simulations of variables like price-to-book or dividend yield? Basically I would like to do a simulation based testing of an investing strategy (other than historical simulation). It’s ...
30 views

### Combining multiple securities' Net Asset Value time-series into one total NAV series

I have a number of individual securities that each have a Net Asset Value (NAV) time-series. For example: ...
130 views

### Continuous Percentage Profit and Loss calculation

I need to calculate a profit and loss for an equity timeseries. The position size (column D in the below table) is not binary (not moving from zero position to a position and then back to zero ...
59 views

### Matlab: Simulation of Random Walk

I want to simulate a random walk in Matlab: I've found this code but it doesn't work. I have an error with the function S.simByEuler. Someone can explain me how to solve the error? ...
138 views

### Modeling Slippage without Order Book data

I am building a portfolio simulator and finding ways to make it more 'realistic'. For example, giving the option to reinvest dividends, include capital gain taxes, commission/fees (fixed for now) etc. ...
197 views

### Do basket options have a closed form valuation formula?

Suppose I'm simulating a European call option on a basket consisting of N stocks with slightly varying volatilities but all other parameters remain the same. From the perspective of an estimate, it ...
82 views

### How to simulate Poisson and Compound Poisson process

someone knows, maybe websites / blogs where I can find tips (preferably ready codes) to simulate the trajectory of processes? So far I only need the Poisson process and the compound Poisson process ...
50 views

### Block Bootstrapping for synthetic data

I am trying Block Bootstrapping for synthetic data generation. For example in http://www.blackarbs.com/blog/synthetic-data-generation-part-1-block-bootstrapping the author @blackarbsceo use data from ...
61 views

### Do stationary prices need to be differenced for VaR?

I have a time series of electricity futures prices that I have shown to be stationary via the Augmented Dickey Fuller test (alpha = 0.05). Does that mean that, in calculating their individual values-...
189 views

### Simulating covariance matrices with nonzero correlation

How would you simulate a covariance matrix of 1,000 stocks where each pair has nonzero correlation? I have literally no idea how to start with this. Any suggestions?
211 views

### simulate volatility surface

Assuming I have a stochastic volatility model for an asset, if I wanted to use it for pricing I would proceed in the following way: Use Euler discretization to simulate a sample path of the price and ...
66 views

### Multivariate MC: what am I doing wrong?

I am trying to generate multivariate MC results presented in this paper A Simple Generalisation of Kirk’s Approximation for Multi-Asset Spread Options by the Lie-Trotter Operator Splitting Method, by ...
109 views

### Correct way to calculate interest rate volatility for risk calculations

I'm trying to include interest rate derivatives in some Value at Risk calculations and am having trouble getting trustworthy values. My current approach is to look at the appropriate risk factor for ...
13 views

### How to simulate the cross-section

I am looking to simulate the whole cross-section of daily return series for 20 to 60 days. The purpose is to test some risk measures based no maximum drawdown. Thus, it needs the whole time series. ...
34 views

### Simulated VaR with differently distributed processes

I am attempting to calculate the one-month 95th and 99th percentile profits for a two-year portfolio of energy-generating assets over the next three months. This means that the calculation has two ...
69 views

### Can a portfolio value consisting of longing a delta shares of stocks and shorting a call option greater than strike price?

While trying to implement Black-Scholes delta hedging for a European call option using Python, I came across the following phenomena: Given a portfolio consisting of longing a delta shares of ...
87 views

### Is there a simplified framework to consider for modelling the stock market?

Does anyone know a reference where one can read up on different aspects of modelling when simulating the stock market? i.e what is known as "stylized facts" and which of these fact that are more ...
91 views

### Which metric is most predictive: Mean, Sharpe, Calmar, …?

Suppose you have created a new trading algorithm: by varying the params of the algorithm, you get a large number of similar trading strategies (e.g. slightly different trigger thresholds, stop loss ...