Permutations |
---|
We can put the elements of our set in some order and rename them 1, 2, 3, ... , n. Then, a typical permutation of the set A = { a, b, c, d } can be written in the form
If we always choose the top row to be 1, 2, 3, 4, then, to prescribe the permutation, we need only give the bottom row, with the understanding that this tells us where 1 goes, 2 goes, and so forth, under the mapping. When this is done, the permutation is often called a rearrangement of the n objects 1, 2, 3,...,n. For example, all possible permutations, or rearrangements, of the numbers A = { 1, 2, 3 } are
Theorem: The total number of permutations of a set of n elements is given by n⋅(n−1)⋅(n−2)⋯2⋅1, which is called the factorial and denoted by n!
Theorem: The total number of k-permutations of a set of n elements is given by k-th falling factorial: nk_=n⋅(n−1)⋅(n−2)⋯(n−k+1).
Assuming that there are 365 (in general, any integer n) possible birthdays (which isn't true 1/4 of the time), birthdays are independent (not true---twins), and that birthdays are uniformely distributed among the days of the year (not true again: September birthdays predominate), it is tempting to guess that we would need about 1/2 this number, or 183. You would surely win this bet. In fact, the number required for a favorable bet is only 23. In general, the problem can be answered by solving the equation
Assume that there are 365 possible birthdays for each person (we ignore leap years). Order the people from 1 to r. For a sample point ω, we choose a possible sequence of length r of birthdays each chosen as one of the 365 possible dates. There are 365 possibilities for the first element of the sequence, and for each of these choices there are 365 for the second, and so forth, making 365r possible sequences of birthdays. We must Ønd the number of these sequences that have no duplication of birthdays. For such a sequence, we can choose any of the 365 days for the Ørst element, then any of the remaining 364 for the second, 363 for the third, and so forth, until we make r choices. For the r-th choice, there will be 365 - r + 1 possibilities. Hence, the total number of sequences with no duplications is
r | 10 | 20 | 22 | 23 | 30 | 40 | 50 | 60 |
---|---|---|---|---|---|---|---|---|
Pr[match] | 0.1170 | 0.4114 | 0.4757 | 0.5073 | 0.7063 | 0.8912 | 0.9704 | 0.9941 |
Solving for r the above equation is not easy, and it is convenient to use Stirling's formula
- Abramson, M. and W. Moser W. O. J, More Birthday Surprises, The American Mathematical Monthly, 1978, Vol. 77, 856–858
- Braza, P.A., The birthday problem anew, International Journal of Mathematical Education in Science and Technology, 2006, Vol. 37, No. 4, pp. 484--488; doi: 10.1080/00207390600578088
- Mathis, F.H., A generalized bithday problem, SIAM Review, 1991, Vol. 33, No. 2, pp. 265--270; doi:10.1137/1033051
- The birthday problem, Wikipedia.