powered by
Hypergeometric sampling density
dsampling(sample_b, pop_N, pop_B, sample_n)
number of black balls in sample
number of balls in population
number of black balls in population
number of balls in sample
Value of hypergeometric sampling probability
# NOT RUN { pop_N <- 10 pop_B <- 4 sample_n <- 3 sample_b <- 2 dsampling(sample_b, pop_N, pop_B, sample_n) # }
Run the code above in your browser using DataLab