Shuzi_rank
不是因为看到希望才坚持,而是因为坚持才能看到希望

If is a discrete random variable taking on values then we can write

.

Implementation of this formula to generate discrete random variables is actually quite straightforward and can be summarized as follows.

To generate ,

  1. Generate
  2. if , set .

we define and .

算法来源:Statistical Inference (统计推断,英文版,原书第2版),Chapter5.

 

posted on 2017-02-21 08:22  Shuzi_rank  阅读(207)  评论(0编辑  收藏  举报