liveBook · Manning

Chapter 3: So you’re telling me there’s a chance!

What you will learn in chapter 3 of Grokking Statistics

The chapter introduces probability as a way to measure unavoidable uncertainty and probability distributions as a way to consider possible outcomes rather than demand a single certain answer.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduces probability as a way to measure unavoidable uncertainty and probability distributions as a way to consider possible outcomes rather than demand a single certain answer.

Key terms: probability, uncertainty, deterministic, probability distributions, possible outcomes, approximation

3.1 Probability crash course

The section defines probability as a numerical expression of how strongly we believe an event will occur, explains where that belief can come from, and introduces basic notation and the complement rule.

Key terms: probability, data, belief, P(X), event, probability function

3.2 Data vs. beliefs

The section contrasts probability estimated from repeatable trials with probability based on informed beliefs, and explains why data is not automatically more trustworthy than expert judgment.

Key terms: probability, trial, variability, uniformly random number, threshold p, probability derived from a person’s beliefs, pollster, assumptions, sampling, data

3.3 Quantifying beliefs

The section shows how betting odds can quantify a belief as a probability, while cautioning that a quantified belief may be poorly informed.

Key terms: odds, O(X), P(X), probability, stock market, betting markets, biases, incomplete information, frequentists, Bayesians

3.4 Probability distributions

The section defines random variables and probability distributions, including how a distribution assigns probabilities across possible outcomes.

Key terms: random variable, X, outcome, probability distribution, function, lookup table

3.5 Bernoulli distribution

This section explains a Bernoulli distribution as the probabilities of two outcomes in one experiment and shows how to represent and sample from it in Python.

Key terms: Bernoulli distribution, success, failure, X = 0, X = 1, Python dictionary, numpy, choice()

3.6 Discrete distribution

Defines discrete distributions and uses controller sales to show how to assign, check, visualize, and sample probabilities for multiple outcomes.

Key terms: discrete distribution, Bernoulli distribution, outcomes, historical sales data, discrete probability distribution, random variable X, bar chart, Python dictionary, choice(), random samples

3.7 Binomial distribution

This section uses a waterproof-device example to show how the binomial distribution describes success counts across fixed trials and how single-outcome and range probabilities answer different questions.

Key terms: binomial distribution, Bernoulli distribution, discrete distribution, n, k, p, observed success rate, random variation, probability of success, simulation

3.8 Beta distribution

The section uses a beta distribution to assess possible underlying success rates from observed successes and failures, then finds probabilities as areas under its curve.

Key terms: beta distribution, alpha, beta, underlying success rate, continuous distribution, probability density, area under the curve, success rate, cumulative density function, cdf()

3.9 Poisson distribution

The section explains how a Poisson distribution models event counts in a fixed interval and how a changed average can signal a changed distribution.

Key terms: Poisson distribution, k, mu, lambda, interval, mean, viewing patterns, scipy, numpy, poisson()

3.10 Exponential distribution

This section uses the exponential distribution to model waiting times between events and calculate probabilities for those times.

Key terms: exponential distribution, Poisson distribution, Poisson process, continuous, discrete, continuous distribution, area under the curve, expon.cdf(), scale, average time between views

3.11 Creating a Monte Carlo simulation

The section uses a coffee-shop simulation to show how random modeling can estimate outcomes and event times when direct data is unavailable.

Key terms: Monte Carlo simulation, random variables, Poisson distribution, exponential distribution, time between espresso shots, customer arrival rate, queue times, bottlenecks, assumptions

3.12 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 2: Meet your data! Chapter 4: The grand exhibit of normality →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.