PRI <priyanka.246 <at> gmail.com> writes:

> 
> Write an R program to draw 10,000 random samples using the Polya Urn Scheme
> where the initial contents of the urn is one white ball and one black ball.
> Accumulate the proportion of white balls after each draw into one vector.
> Upload your R script file.
> HINT: You can simulate sampling one ball from an urn with N balls of which w
> are white and N - w are black with the Binomial R function: rbinom(1,1,w/N). 
> 
> can someone assist me with the above code?
> 

  (a) we don't do homework (and this looks a heck of a lot like
homework!)  (b) in the future (when posting non-homework questions)
please start your own topic rather than hijacking an existing thread ...
 
  sincerely
    Ben Bolker

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to