楼主: wzb914510
1131 0

[程序分享] Rejection Algorithm in R code [推广有奖]

  • 1关注
  • 0粉丝

已卖:1份资源

小学生

7%

还不是VIP/贵宾

-

威望
0
论坛币
7 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
140 点
帖子
2
精华
0
在线时间
3 小时
注册时间
2013-4-3
最后登录
2014-3-20

楼主
wzb914510 发表于 2014-3-20 03:29:27 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Rejection.txt (1.44 KB, 需要: 2 个论坛币)

2Fundamental Theorem of Simulation:


Simulating
                                              X~f(x)
is equivalent to simulating
                                              (X,U)~U{(x,u):0<u<f(x)}
If g is such that f/g is bounded, and therefore we can find a value M such that M*g(x)>=f(x) for all x, then we can simulate from f as follows:
                                              1. Generate Y from density g, and U from Uinform(0,1).
                                              2. If U<=f(Y)/Mg(Y), set X=Y. Otherwise, return to step 1.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:rejection Algorithm Reject code COD equivalent

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 11:44