- UID
- 223355
- 帖子
- 249
- 主题
- 39
- 注册时间
- 2011-7-11
- 最后登录
- 2013-8-23
|
4#
发表于 2011-9-10 18:24
| 只看该作者
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. |
|