dsampling function

Hypergeometric sampling density

Hypergeometric sampling density

dsampling(sample_b, pop_N, pop_B, sample_n)

Arguments

  • sample_b: number of black balls in sample
  • pop_N: number of balls in population
  • pop_B: number of black balls in population
  • sample_n: number of balls in sample

Returns

Value of hypergeometric sampling probability

Author(s)

Jim Albert

Examples

pop_N <- 10 pop_B <- 4 sample_n <- 3 sample_b <- 2 dsampling(sample_b, pop_N, pop_B, sample_n)