[R] Rejection metho..d...

David Winsemius dwinsemius at comcast.net
Sat Dec 17 14:45:55 CET 2011


On Dec 17, 2011, at 7:58 AM, Bryan wrote:

>
> Generate random variables which flow
>   f(x)=20*x*(1-x)^3 , 0<x<1
> using rejection method with
>   .g(x)=1, 0<x<1
>
> how,,,,???

Just as with the posting adjacent to yours in my mail client, this  
looks to be homework.

#-------------------------------
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
#-------------------------------
> and provide commented, minimal, self-contained, reproducible code.
#-------------------------------
>
-- 
David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list