【发布时间】:2014-11-05 03:33:06
【问题描述】:
我正在寻找一个分布,或者更确切地说是一个函数,它返回特定范围内的整数,数字越高概率越小。
假设范围是从 1 到 5。
85% of the time the function should return 1
8% of the time the function should return 2
4% of the time the function should return 3
2% of the time the function should return 4
1% of the time the function should return 5
此外,如果概率符合一个集合分布,比如正态分布或指数分布,那就太好了。
这样的函数会是什么样子?
【问题讨论】:
标签: r statistics distribution