Skip to contents

N_P_n = N(N-1)...(N-(n-1)) = N!/(N-n)!, eqs (1.5)-(1.6). The falling product and the factorial quotient are both formed and must agree.

Usage

OrdSubs(N, n)

Arguments

N, n

pool size and subgroup size, 0 <= n <= N.

Value

list(n_objects, n_picks, count, forms_agree).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eqs. (1.5)-(1.6).

Examples

OrdSubs(5, 5)$count
#> [1] 120