On Nov 15, 2011, at 3:57 PM, PRI wrote:
> Can someone help me out with this problem?
>
> 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).
We don't do homework here. In fact, your instructor is probably
watching.
--
David Winsemius, MD
West Hartford, CT