3
$\begingroup$

the idea is to simulate price returns thus to be normally distributed i 'am trying to use subordinated arithmetic brownian motion subordinated to time activity (volume) stock prices are following GBM then you can say $$ dS_t=μS_tdt+σS_tdW_t $$ where the time considered is not the calendar time but activity time (Ané & Geman 2000). I faced problems while implementing it in matlab so any help would be appreciated.

$\endgroup$
1
  • 1
    $\begingroup$ Can you say what these problems were that you faced in Matlab? Can you post your Matlab code here? $\endgroup$ Commented Sep 23, 2013 at 16:10

1 Answer 1

3
$\begingroup$

Here it is. Returns here are normally distributed by construction. It doesn't involve time scale, you can use time, volume, or any other "activity".

>> sigma = 0.001;
>> mu = 0;
>> returns = mu + sigma * randn(1000,1);
>> price = cumprod(1 + returns);
>> plot(price)

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.