From: Ayotunde on
"Ayotunde " <rhymer2k(a)yahoo.co.uk> wrote in message <htqd99$8d0$1(a)fred.mathworks.com>...
> Hey guys am back again with my ineptitude. My questions this time is that i have this question below to do
>
> generate a sample path with 2340001 (100 days of working hours data sampled every second) observations of Heston model using the following Euler approximation:
> ln(pt+&#8710;t) = ln(pt) + &#963;t&#8710;W (1) t+&#8710;t
> &#963;2 = &#963;2 + &#954;(&#952; &#8722; &#963;2)&#8710;t + &#958;&#963; &#8710;W(2) t+&#8710;tt t tt+&#8710;t
> with &#8710;W(1) and &#8710;W(2) generated from bivariate normal distribution
>
> this is just part of the question. Part of the question explains how to get &#8710;W(1)and &#8710;W(2) from a bivariate normal distribution using mvnrnd which i have done but i don't know what do after this. How do generate the actual sample. This would help me figure out stuff for my project in which i have to do monte carlo analysis.
> Thanks, any help would be appreciated
> Ps. I have have also been given parameters to use for the generating process

Any Help please?
From: Steven Lord on

"Ayotunde " <rhymer2k(a)yahoo.co.uk> wrote in message
news:htqd99$8d0$1(a)fred.mathworks.com...
> Hey guys am back again with my ineptitude. My questions this time is that
> i have this question below to do
>
> generate a sample path with 2340001 (100 days of working hours data
> sampled every second) observations of Heston model using the following
> Euler approximation:
> ln(pt+&#8710;t) = ln(pt) + &#963;t&#8710;W (1) t+&#8710;t
> &#963;2 = &#963;2 + &#954;(&#952; &#8722; &#963;2)&#8710;t + &#958;&#963;
> &#8710;W(2) t+&#8710;tt t tt+&#8710;t
> with &#8710;W(1) and &#8710;W(2) generated from bivariate normal
> distribution
>
> this is just part of the question. Part of the question explains how to
> get &#8710;W(1)and &#8710;W(2) from a bivariate normal distribution using
> mvnrnd which i have done but i don't know what do after this. How do
> generate the actual sample. This would help me figure out stuff for my
> project in which i have to do monte carlo analysis.
> Thanks, any help would be appreciated
> Ps. I have have also been given parameters to use for the generating
> process

Show the group what you've tried and I suspect you'll get people willing to
help nudge you back onto the right track.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com


 | 
Pages: 1
Prev: patial fraction
Next: uicontrol edit