Follow-on from this post
I was trying Birthday Paradox for 5-day calendar, with 3 people
The probability that NONE of them have matching birthday is
$5/5 * 4/5 * 3/5 = 0.48$
The probability there is AT LEAST one matching pair is
$1 - 0.48 = 0.52$
Question
What if I wanted to use inclusion-exclusion, i.e. the "long-cut", how to calculate this
$P = 0.52 = P(A_1,_2) + P(A_1,_3) + P(A_2,_3)$
$P = 0.52 = P(A_1,_2 \cup A_1,_3 \cup A_2,_3) - P(A_1,_2 \cap A_1,_3 \cap A_2,_3)$
This has been puzzling me for days, please assist.
We'll let $$A = \{\text{At least one match}\}$$ and so $$\bar A = \{\text{No match}\}.$$ So, mechanically \begin{align*} P(A) &= P(A_{1,2}\cup A_{1,3}\cup A_{2,3})\\ &= P(A_{1,2})+ P(A_{1,3})+P(A_{2,3})\tag 1\\ &\qquad-[P(A_{1,2},A_{1,3})+P(A_{1,2}, A_{2,3})+P(A_{1,3}, A_{2,3})]\\ &\qquad+[P(A_{1,2},A_{1,3},A_{2,3})]\\ &= 3P(A_{1,2})-3P(A_{1,2},A_{2,3})+P(A_{1,2},A_{1,3},A_{2,3})\tag 2\\ &=3\binom{5}{1}\left(\frac{1}{5}\right)^2-3\binom{5}{1}\left(\frac{1}{5}\right)^3+\binom{5}{1}\left(\frac{1}{5}\right)^3\\ &= 0.52 \end{align*} where in $(1)$ I invoke inclusion-exclusion, and in $(2)$ I recognize that some terms are identical in probability and simply multiply by 3. There are $\binom{5}{1} = 5$ ways to choose a day in a 5-day year.
Verify, using the complement and independence, $$P(A) = 1-P(\bar A) = 1-\frac{5}{5}\cdot\frac{4}{5}\cdot\frac{3}{5} = 0.52.$$