Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Chapter 2 — Probability theory

Probability theory is a language for describing randomness, variability, and uncertainty. You need to know probability theory to understand statistics. This is why Part 1 of the book includes ~200 pages of formulas, explanations, figures, and code examples to get you up to speed on all the probability theory topics that you need to know.

Below, you’ll find the computational notebooks from Chapter 2 of the book. Going through these notebooks would be an interesting even if you don’t have the book, since the notebooks are mostly self contained.

Notebooks

Each notebook contains the code examples from corresponding section. If you’re reading the book, you can follow along by running the commands in the these notebooks, to run all the probability calculations for yourself.

Exercises

Each section contains the exercises to help you practice probability calculations covered explained in that section.

Probability models for real world data

Here is a list of the different domains that can be usefully described using probability distributions: