Part 3 Probabilities
Generating random numbers that match a desired distribution is common in games, simulations, and other applications, but the way we represent random numbers in most programming languages is limited. We’ve built libraries for high-level manipulation of sequences; we could do the same for probability distributions. In this part, we’ll sketch out a library of operators for manipulating probabilistic quantities.
A more powerful API is great, but we should aim higher. Modern programs often must automate important decisions in a world full of uncertainty, and our programming tools should help us make principled, evidence-based decisions.
Suppose I have an algorithm that is on average 99.9% accurate at determining whether ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access