-
|
I have one question abouth my result I am getting this result when I run my code.Anyone has this kind of results Thanks a lot for your contributions |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
I am also getting 0 in both cases.. don't know whether it is right!!! |
Beta Was this translation helpful? Give feedback.
-
|
Given your code, it seems to me that you simulate one realization of the process for different points (months) in time. However, you need to simulate a large number of realizations (e.g. sth. like 100k) in order to build a meaningful average. Also, you do not really need MC here, you can solve the task analytically (note that the a Wiener process implies a Normal distribution), see: https://en.wikipedia.org/wiki/Normalization_(statistics). PS: Expect a result slightly above 1% for 12 months. |
Beta Was this translation helpful? Give feedback.
Given your code, it seems to me that you simulate one realization of the process for different points (months) in time. However, you need to simulate a large number of realizations (e.g. sth. like 100k) in order to build a meaningful average.
Also, you do not really need MC here, you can solve the task analytically (note that the a Wiener process implies a Normal distribution), see: https://en.wikipedia.org/wiki/Normalization_(statistics).
PS: Expect a result slightly above 1% for 12 months.