liveBook · Manning

Cumulative distribution function

Also called CDF, cumulative density function

A cumulative distribution function maps each value to the probability that a random variable is less than or equal to that value.

How 5 Manning books explain it

Statistics Every Programmer Needs

A cumulative distribution function is a function that gives the probability that a random variable is less than or equal to a specified value.

How it is used
Uses cumulative probabilities to answer threshold and interval questions and map random numbers to Monte Carlo outcomes.
How deep it goes
Defines continuous and discrete CDFs, gives their properties, and works cumulative sums and intervals without formal proofs.
Examples
Calculates a two-dice threshold and tabulates cumulative probabilities for Poisson-modeled employee absences.
What you can do after
Apply it via SciPy’s norm.cdf() and poisson.cdf() to calculate probabilities and prepare cumulative values for simulation.

Read how Statistics Every Programmer Needs explains cumulative distribution function →

Grokking Bayes

A cumulative distribution function returns the probability that a random variable is less than or equal to a specified threshold.

How it is used
Answers posterior threshold and interval-probability questions for Bayesian analysis and decision-making.
How deep it goes
Defines PDF integration, complements, and interval differences, then demonstrates SciPy code; it defers the underlying analytical mathematics.
Examples
Uses tea preferences, beta posteriors, Monte Carlo samples, and conversion-rate thresholds such as 0.1 and 0.05.
What you can do after
Apply it via SciPy to compute posterior tail and interval probabilities from closed-form or sampled distributions.

Read how Grokking Bayes explains cumulative distribution function →

Grokking Statistics

A function that returns the probability that a random variable is less than or equal to a specified value.

How it is used
Calculates probabilities over value ranges in beta and normal distributions.
How deep it goes
Defines CDFs as left-tail areas and demonstrates interval subtraction, while delegating integration to SciPy.
Examples
Uses success rates from a beta distribution and golden retriever weights from a normal distribution.
What you can do after
Apply it via SciPy's `beta.cdf()` and `norm.cdf()` to calculate probabilities for bounded ranges.

Read how Grokking Statistics explains cumulative distribution function →

Bayesian Optimization in Action

A cumulative distribution function method returns the probability that a random variable is less than or equal to a specified value.

How it is used
Converts predictive distributions into probability-of-improvement scores for expensive black-box optimization.
How deep it goes
Defines the CDF geometrically and demonstrates its complement numerically, stopping short of deriving the normal CDF.
Examples
Uses predictive values at points 0 and 3, highlighted normal-curve areas, and a PyTorch CDF calculation returning 0.8305.
What you can do after
Apply it via PyTorch’s Normal.cdf() and subtract the result from 1 to score candidate improvement.

Read how Bayesian Optimization in Action explains cumulative distribution function →

Build a Robo-Advisor with Python (From Scratch)

A cumulative distribution function gives the probability that a random variable is less than or equal to a specified value.

How it is used
Computes wealth-state transition probabilities for dynamic programming in goals-based financial planning.
How deep it goes
Explains interval probabilities and implements adjacent CDF differences, while deferring alternative distribution implementations.
Examples
Uses wealth-state midpoints, zero and infinite boundary values, and a normal-return transition calculation.
What you can do after
Apply it via SciPy to convert modeled wealth distributions into transition probabilities.

Read how Build a Robo-Advisor with Python (From Scratch) explains cumulative distribution function →

Also covered in

What to know first

Related concepts

Questions about cumulative distribution function

What is cumulative distribution function?

A cumulative distribution function maps each value to the probability that a random variable is less than or equal to that value.

Which Manning books explain cumulative distribution function?

Statistics Every Programmer Needs, Grokking Bayes, Grokking Statistics, Bayesian Optimization in Action and Build a Robo-Advisor with Python (From Scratch).

What should I know before learning cumulative distribution function?

Manning books that teach cumulative distribution function usually introduce mean, probability distribution, standard deviation and histogram first.

What is cumulative distribution function also called?

Cumulative distribution function is also called CDF or cumulative density function.

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.