楼主: fabregasmu
|
14096
9
[讨论交流] Matlab描述几何布朗运动(GBM)的代码,为什么要用rand(),不用normrnd()函数 |
硕士生 19%
-
|
回帖推荐Chemist_MZ 发表于4楼 查看完整内容 rand肯定是错的,可以用randn,或者你说的noramrnd
Chemist_MZ 发表于11楼 查看完整内容 That's it. This is correct. If you want to make it better, choose a smaller time interval, as small as possible (as long as you do not run out of memory). Another thing is your time horizon is 15 years... try some shorter time horizon like 1 year as I recommended. You usually do not see a 15 years stock graph, that's probably the reason why you don't feel it looks like a stock process.
Chemist_MZ 发表于7楼 查看完整内容 No I don't see there is problem in your code. Choose some reasonable parameters such as sigma=0.3, Lt=1; step=1/252, mu=0.15. It should looks good.
| ||
| ||
| ||
京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明 免责及隐私声明