Skip to content

Commit 709690f

Browse files
committed
attempt 2
1 parent b0d8a31 commit 709690f

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

docs/_posts/2025-07-31-probabilityintro.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@ The correct answer is just 23 people. How can this be true?! The answer lies in
2222
To calculate the number of k persons to exceed 50% one technique we might use is to decrement the number of possible shared birthdays for $$n+1$$ people. For person 1 there is 100% chance they don't share their birthday with another person, when adding person 2, there is a $$\frac{364}{365}$$ chance they don't share their birthday with person 1, and this continues as a conditional probability until you reach >50%.
2323

2424
\[
25-
\begin{array}{l}
26-
P(A) = \frac{365}{365} \times \frac{364}{365} \times
27-
\frac{363}{365} \times \dots \times \frac{343}{365} \approx 0.493 \\
28-
\therefore P(B) \approx 1 - 0.493 = 0.507
29-
\end{array}
25+
\begin{align*}
26+
P(A) &= \frac{365}{365} \times \frac{364}{365} \times \cdots \times \frac{343}{365} \approx 0.493 \\
27+
\therefore P(B) &\approx 1 - 0.493 = 0.507
28+
\end{align*}
3029
\]
3130

3231
A more concise way of representing this is the probability function $$\bar{p} = \frac{365!}{365^n(365-n)!}$$. An approximation to try (that doesn't require numerical methods) is $$n\geq \frac{1}{2} + \sqrt{\frac{1}{4} + 2\times\ln{2}\times 365}$$.

0 commit comments

Comments
 (0)