Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

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.

share|improve this question
1  
Can you say what these problems were that you faced in Matlab? Can you post your Matlab code here? –  chrisaycock Sep 23 '13 at 16:10
add comment

1 Answer 1

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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