avatar
MONTE CARLO METHOD QUESTION# Computation - 科学计算
t*r
1
How to generate a series number which falls in a specified discrete
probability distribution?
thx
avatar
c*e
2
map

【在 t*****r 的大作中提到】
: How to generate a series number which falls in a specified discrete
: probability distribution?
: thx

avatar
t*r
3
details?
or an example?
thx

【在 c*******e 的大作中提到】
: map
avatar
s*l
4
You can look at 'numerical recipe'. It's even got
fortran and C codes.

【在 t*****r 的大作中提到】
: details?
: or an example?
: thx

avatar
e*c
5
Assume you can generate U(0,1) distribution,
then the discrete prob distribution with following dist:
P{X=xi}=pi
can be generated by dividing the interval [0,1] with subdivisions
[0,p1), [p1,p1+p2), [p1+p2,p1+p2+p3),...[p1+...+p(n-1),1] and
for X~U(0,1), if X falls into [0,p1) then make X=x1, clearly this
has prob. p1; if X falls into [p1,p1+p2), then make X=x2, clearly
this has prob. p2; and so on...

【在 t*****r 的大作中提到】
: How to generate a series number which falls in a specified discrete
: probability distribution?
: thx

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。