Trying to settle an office argument on a challenging probability scenario, thought I'd see if anyone would like to take a stab:
We're trying to determine the probability of 2 credit cards matching amongst a global population given that only the first six and last four digits are known. We also know the expiry date. A couple of rules for each field:
First six: We're working strictly with a single card issuer who's range of first six digits is between 222100-272099 or 510000-559999. For simplicity this allows for 100,000 possible combinations.
Last four: These for simplicity can be assumed to be completely random. (ignoring Luhn checks)
Expiry date: Only valid future dates within a four year time frame.
What's the probability of 2 cards in the entire population being the same?
So far our best theory by breaking this down into parts is:
A = There are 100,000 combinations of the first 6 digits.
B = There are 10,000 combinations of the last 4 digits
C = There are 48 combinations of the date field.
We are looking for the number of clashes in the population. For simplicity we've assumed a population of 1 billion. So we are assuming ultimately that there will be 1 billion events and are looking for the probability of getting 2 identical outcomes from those events:
A * B * C = 1,000,000,000x
1/100,000 * 1/10,000 * 1/48 = 1,000,000,000x
x = 1/48
So the theory is that there is a 1/48 chance of there being a single clash in 1bn cards.