I'm a math idiot and I'm trying to figure something out. My mother was born on April 10th as was my friend's mother. My father was born on July 4th as was my friend's father.
How do I calculate the probability of that happening?
EDIT: How would one calculate the probability of 2 pairs of shared birthdays? I think this is the answer I'm looking for
Halp.
-Brett
When you have a problem you find a bit difficult it is sometimes easier to try to solve a simplified example.
Instead of birthdays, let us say that your parents are throwing dice. Let's call your father $f_1$, your mother $m_1$, and you friend's parents $f_2$ and $m_2$. If $f_1$ throws a 2 and $m_1$ throws a 5, then $f_2$ has to throw a 2 and $m_2$ has to throw a 5. The probability of this happening is $$ \frac{1}{36}. $$
If only one of the parents have to match, then the probability is: the probability that $f_1$ matches $f_2$ and $m_1$ matches $m_2$ which is 1/36, PLUS the probability that $f_1$ mathes $m_2$ and $m_1$ matches $f_2$ which is also 1/36, MINUS the probability that they all match together (because this has already been counted). This will happen every sixth time, so it is 1/216. So the probability of either parents matching a throw of the die is: $$ \frac{2}{36} - \frac{1}{216}. $$
To verify this, you can simulate 1 million dice tosses and count the results. One of the things that make answering questions about statistics and probability easier than many questions in mathematics - you can brute force the answer in a computer and check what you calculated! :)
Here is some R-code for running the simulation.
My results:
By extending this to birthdays, we get: $$ \frac{1}{365^2} \approx 0.0000075 $$ when the birthdays have to match up. And when they can cross over: $$ \frac{2}{365^2} - \frac{1}{365^3} \approx 0.0000149 $$
Simulating in R again. Did 100 million this time - took a while!
And to verify the theoretical results with the simulated results: