🎉 Birthday Paradox Calculator

📐 計算公式
P = 1 - exp(Σ ln(1 - i/D), i = 0 ... N-1)

Calculate the probability that at least two people share a birthday in a group of N, with a day-count parameter.

請輸入人數

模型假設:每個人的生日相互獨立,並在 D 天中等機率分佈;預設不考慮 2 月 29 日與真實出生率的季節差異。結果用於機率科普和課堂演示,不代表特定人群的精確機率。

📐 公式說明

生日悖論:在 23 人的隨機群體中,有 50.7% 的機率至少兩人生日相同

計算公式(互補機率):

P(至少一對相同) = 1 - D! / ((D-N)! × D^N)

其中 D = 365(不考慮閏年),N = 人數

對數展開避免大數計算:

P = 1 - exp(Σ ln(1 - i/D), i = 0 ... N-1)

關鍵值:23人→50.7%;50人→97.0%;70人→99.9%

📚 深度解析:生日悖論計算器

💡 常見使用場景

  • 模型假設:生日相互獨立、按天數等機率分佈,預設不考慮 2 月 29 日與真實出生率的季節差異。
  • 班級點名或抽獎前估算撞生日機率,向同事解釋 23 人就有約一半機率重複。
計算
23 人時至少兩人同生日機率≈50.7%;50 人≈97%。

❓ 常見問題(FAQ)

為何反直覺?
是兩兩組合爆炸,非單人與全年比。
為什麼 23 人就能到 50%?
組合數隨人數平方增長:23 人有 253 對兩兩組合,任一對生日相同的機率累積起來就接近一半。

Formula & Standard References

Item Formula / Note Source / Standard
Shared birthday the chance of a shared birthday is one minus the falling factorial over 365 to the n Probability theory
Threshold size with twenty-three people the chance passes one half Probability theory
Approximation one minus e to the minus n(n-1) over 730 approximates well Probability theory
⚠️ 使用說明與注意事項