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,,,,??? -- View this message in context: http://r.789695.n4.nabble.com/Rejection-metho-d-tp4208138p4208138.html Sent from the R help mailing list archive at Nabble.com.
Rejection metho..d...
2 messages · Bryan, David Winsemius
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