R

You should install R and Rstudio on your machine. (Rstudio is a convenient user-friendly interface for using R.)

Some brief tutorials to get you going: 1a, 1b. Here is a nice portal for you to access all kinds of R resources. This is the somewhat comprehensive tutorial that I myself used.

Bertillon code (example 2.6.2):

i=1
while(prob<.5){
prob=1-choose(177147,i)*factorial(i)/177147^i
i=i+1
}
print(prob)
print(i)

Leave a Reply

Your email address will not be published. Required fields are marked *