Things under legendu
The definition of geometric distribution in R is not the same as the common definition. A random variable of geometric distribution in R starts from zero, i.e. geometric distribution in R is defined as the number of failures before we succeed.
A random variable of negative binomial distribution in R is defined as the number of failures before we succeed for
rtimes, wherepis the success probability in each trial.The definition of hyper-geometric is the same as common but be careful with the parameters!