Message Boards Message Boards

0
|
3653 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Probability question

Posted 11 years ago
I would appreciate help with this question: What is the probability that two nine digit numbers, each using all of the digits 1 through 9, will have exactly two of the digits in the same place in the number?
Thank you.
-Ron
POSTED BY: Ronald Bliss
4 Replies
Posted 11 years ago
Oh my. More complex than I had thought.
Thank you very much.
-Ron
POSTED BY: Ronald Bliss
We could simulate an experiment with 10^5 random pairs:
In[2]:= N[Sum[a = RandomSample[Range[9]]; b = RandomSample[Range[9]];
          Boole[Count[a - b, 0] == 2], {10^5}]/10^5]         

Out[2]= 0.18364
That's not too far from the exact probability
In[3]:= (1/2) Sum[(-1)^j/j!, {j, 0, 7}]

Out[3]= 103/560

In[4]:= N[%] 

Out[4]= 0.183929
See the following link for a proof: The Matching Problem.
POSTED BY: Ilian Gachevski
Posted 11 years ago
Not homework, I am having a debate with my adult son and neither of us knows how to answer the question.
Thank you.
-Ron
POSTED BY: Ronald Bliss
Is there a Mathematica angle?  

This sounds like homework.
POSTED BY: Bruce Miller
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract