1
vote
1answer
82 views

Simulate non-stationary time series with cointegration

how can I simulate/generate two non-stationary time series (with unit root) so that they can be also cointegrated (using R or Matlab). Thanks in advance.
8
votes
1answer
130 views

Strictly local martingales: what is the intuition behind them?

A process $X_t$ is a local martingale if for each increasing sequence of stopping times $\{\tau_k,k=1,2,...\}$ the stopped process is a martingale. All true martingales are local martingales, but the ...
0
votes
1answer
72 views

Getting the next price of a GBM (Geometric Brownian Motion)

I am writing a program that creates realizations of a GBM. Starting from an initial price, I get the following price with this formula: ...
2
votes
1answer
108 views

Monte Carlo for MultiFactor Ornstein Uhlenbeck

I'm following loosely the exposition given in "Monte Carlo Methods in Financial Engineering by Glasserman. For a multifactor OU process: $dX(t)=C(b-X(t))dt+DdW(t)$ Where C and D are d*d matrices ...
3
votes
1answer
480 views

Monte Carlo simulating Cox-Ingersoll-Ross process

The CIR process is given by the SDE $$ \mathrm dr_t = \theta(\mu-r_t)\mathrm dt + \sigma\sqrt{r_t}\mathrm dW_t $$ where $W_t$ is a Brownian motion. I am interested in finite-difference schemes of ...
5
votes
2answers
617 views

Simulation of GBM

I have a question regarding the simulation of a GBM. I have found similar questions here but nothing which takes reference to my specific problem: Given a GBM of the form $dS(t) = \mu S(t) dt + ...
3
votes
1answer
1k views

How to simulate a Merton Jump Diffusion process?

I am talking about the Merton Jump Diffusion model, on this page, where they give the following formula: $$ dS_t = \mu S_t dt + \sigma S_t dW_t + (\eta-1) dq$$ where $W_t$ is a standard brownian ...
6
votes
2answers
8k views

How to simulate stock prices with a Geometric Brownian Motion?

I want to simulate stock price paths with different stochastic processes. I started with the famous geometric brownian motion. I simulated the values with the following formula: ...
8
votes
3answers
475 views

How to test for and how to simulate price rise/fall asymmetry in the stock market

One of the stylized facts of financial time series seems to be a fundamental asymmetry between smooth upward movements over longer periods of time followed by abrupt declines over relatively shorter ...