The probability of extracting exactly x black marbles in a sample of size n from a population of N marbles of which M are black can be calculated as: