~/talk

Quantifying Dinosaur Pee - Expressing Probabilities as Floating-Point Values in C++

Talkat CppCon 2022 · 2022-09-11..09-16· [machine-learning]
slides:none on file

Reproduces the birthday problem, discovers a floating‑point trap where IEEE‑754 doubles pin the collision probability to 1 (breaks at n ≈ 184), and fixes it by reframing to compute unique birthday (probability of no collision) using Stirling’s approximation and discrete vs continuous compounding. Uses Google Calculator/WolframAlpha for checks and shows only float128 or arbitrary precision recovers the tiny values lost by double/long double. Answers: proportion of Earth’s water from dinosaur pee ≈ almost 0; probability every molecule was tainted ≈ almost 0; conditional (≈ one molecule) ≈ 1/e; chance a glass is untainted ≈ almost 0.

AI-written summary · about

  1. 0:00Introduction
  2. 2:00The Birthday Problem
  3. 2:40Boundary Conditions
  4. 3:29Birthday Function
  5. 14:30Unique Birthday
  6. 16:15Observations
  7. 19:37Recap
  8. 27:51Dinosaur Pee
  9. 30:14Geometric Sum Formula
  10. 30:31Sum a finite or infinite series
  11. 30:53Plugging in inquiry symbols
  12. 31:20Alternative facts and quotes
  13. 32:30Bird Model
  14. 33:12Daily Rate
  15. 33:22Compounding
  16. 34:39Time Scales
  17. 35:08Plugging in Numbers
  18. 35:41The Result
  19. 37:21Example
  20. 41:49FloatingPoint Subtraction Algorithm
  21. 43:58Summary
  22. 46:23Discrete Probability
  23. 48:02Lightning Speed
  24. 48:32Precision
  25. 49:25ExpectedValue
  26. 50:13Symmetry
  27. 50:41Distribution
  28. 55:03Takeaways
  29. 55:18Delirium
  30. 55:30Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.