FTR: This could not be a lower priority question. It's so not important, but I really want to know.
Let's say I have n unique pairs. They are like keys (A) and locks (B), and every one of the n locks can be opened by exactly one of the n keys. And, of course we are completely randomly assigning each key to a random lock to see if it works.
(BTW, it took me an embarrassing amount of counting combinations to figure out the that number of combinations is n!, but, in my defense, I've never actually used factorials in anything.)
So, given n pairs, there are n! possible combinations. How does one calculate the chances that there are at least x correct matches? I'm in particular looking to see the chances for at least one correct match, and for at least 50% correct matches.
I've tried internet searches, but I haven't been able to word it to get what I'm looking for.
I made a spreadsheet and went up to 5-pair combinations. But I have no idea how to turn that data into any kind of formula.
It doesn't paste well, so I'll paste the text and include an image with better formatting.
Total # Possible Combs w/ Probability of Combs with Probability
of pairs combinations matches ≥ 1 matches ≥ 1 matches ≥ 50% of matches ≥ 50%
1 1 1 100.00% ? ?
2 2 1 50.00% ? ?
3 6 4 66.67% ? ?
4 24 15 62.50% ? ?
5 120 73 60.83% ? ?
I think I got all the requirements for a well-formed question. If I missed anything, it was accidental, let me know and I'll fix it.
Again, this is not important, just something that's been bugging me.
Thank you for any help you can provide. Especially replies that explain "this is why/how it works this way" In that "teach a person to fish" kinda way.