Hat Check Problem Calculator

P(match) → 1 − 1/e

All Tools

Loading tool...

About Hat Check Problem Calculator

A hat check problem calculator exploring the classic probability puzzle: n hats randomly returned, what's P(at least one match)? Answer: 1-1/e ≈ 63.2% as n→∞. Uses derangement count !n = n!·Σ(-1)^k/k!. Related to inclusion-exclusion principle. Client-side.

Hat Check Problem Calculator Features

  • P(≥1 match)
  • P(exactly k)
  • Derangement count
  • 1/e convergence
  • Expected matches
Advertisement
Advertisement