- UID
- 223451
- 帖子
- 355
- 主题
- 11
- 注册时间
- 2011-7-11
- 最后登录
- 2014-8-7
|
4#
发表于 2011-9-22 21:47
| 只看该作者
You're generating uniform random variables between -3 and 5%. If you want normal random variables, you won't be able to use that exact function.
What is the variance of this normal curve (which will be necessary to generate normal rvs)? You could relate it to the min/max values by saying, perhaps, the minimum observed value (here -3%) is the 5th percentile, and the maximum observed movement (5%) is the 95% percentile, or whatever percentiles you want. The mean is 1%. Let me know more and I can help you generate normal rvs, unless I have completely misunderstood what you're asking for. |
|