Chapter 4. Calculating Probabilities: Taking Chances

Life is full of uncertainty.
Sometimes it can be impossible to say what will happen from one minute to the next. But certain events are more likely to occur than others, and that’s where probability theory comes into play. Probability lets you predict the future by assessing how likely outcomes are, and knowing what could happen helps you make informed decisions. In this chapter, you’ll find out more about probability and learn how to take control of the future!
Fat Dan’s Grand Slam
Fat Dan’s Casino is the most popular casino in the district. All sorts of games are offered, from roulette to slot machines, poker to blackjack.
It just so happens that today is your lucky day. Head First Labs has given you a whole rack of chips to squander at Fat Dan’s, and you get to keep any winnings. Want to give it a try? Go on—you know you want to.



There’s a lot of activity over at the roulette wheel, and another game is just about to start. Let’s see how lucky you are.
Roll up for roulette!
You’ve probably seen people playing roulette in movies even if you’ve ...
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