Skip to content

celeste-zeng/Polya_Urn_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Polya_Urn_Model

Based on the Polya urn model, this program will create:

  1. a plot showing how the observed ratio of black balls in one Polya urn changes over 1000 draws(steps) with given initial numbers of black balls(a) and red balls(b).

  2. a plot that compares the observed ratios of black balls in 10000 urns after 1000 draws(steps) with given initial conditions (a, b), compared to the density function of the Beta(a,b) distribution. (a: the initial number of black balls; b: the initial number of red balls)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages