Premium problem21. Sequential Draws Without Replacement

Medium Locked

Chaining the multiplication rule, drawing draw cards one at a time without replacement and having every one come from the special group gives:

gN×g−1N−1×⋯\frac{g}{N} \times \frac{g-1}{N-1} \times \cdots

Return that probability. It must match the combination approach from "Drawing a Hand From One Group" exactly.

Input

deck_size = 52
group_size = 4
draw = 2

Output

0.004524886877828055

Premium problem

This one's part of Premium. Unlock the full Probability track plus every other premium problem on the site.

Implement solve(...)