liveBook · Manning

Conditional probability

Conditional probability is the probability of an event or variable value given that specified information, an event, or another variable’s value is known.

How 11 Manning books explain it

Causal AI

Conditional probability is the probability distribution of one or more variables given specified values or events for other variables.

How it is used
Models distributions within specified subpopulations and supplies conditional factors for probabilistic and causal models.
How deep it goes
Works through joint-table normalization and grouped-data estimates, then distinguishes factual conditioning from interventions.
Examples
Uses a numeric joint table, website-feature subpopulations, player engagement estimates, and wet grass as a collider.
What you can do after
Apply it via pgmpy or grouped pandas counts to construct conditional distributions, while distinguishing observed groups from interventions.

Read how Causal AI explains conditional probability →

Grokking Machine Learning

The probability of an event given that another event or condition is known to occur.

How it is used
Uses conditional probability to describe how known information changes an event estimate and to frame classification questions.
How deep it goes
Defines the notation and works through email counts and a probability tree, without deriving a general formula.
Examples
Illustrates the idea with rain in the Amazon and spam emails containing “lottery.”
What you can do after
Evaluate how known evidence changes an event estimate and interpret conditional-probability notation in simple examples.

Read how Grokking Machine Learning explains conditional probability →

Statistics Every Programmer Needs

Conditional probability is the probability of an event given that another event or piece of information is known to hold.

How it is used
Uses new information to refine event probabilities for forecasting, risk assessment, and decisions.
How deep it goes
Works through a contingency-table calculation and its equivalent formula, then compares reversed conditions and independence.
Examples
Uses weather forecasts, medical testing, traffic, coin flips, card draws, and a pandas table of symptoms and test results.
What you can do after
Apply it via pandas contingency tables or the probability formula to calculate and distinguish probabilities conditioned in opposite directions.

Read how Statistics Every Programmer Needs explains conditional probability →

Causal Inference for Data Science

Conditional probability is the probability of an event given that another event or condition is known to occur.

How it is used
Supports statistical description, prediction, and causal reasoning by separating observed subpopulation frequencies from intervention outcomes.
How deep it goes
Explains row filtering, notation, frequency changes, multiple conditions, and causal contrasts, while deferring advanced probability derivations.
Examples
Uses simulated X-Y-Z tables, filtered conditions, conditional distributions, and kidney-stone treatment and recovery rates.
What you can do after
Evaluate/understand observed probabilities, distinguish them from intervention probabilities, and recognize their role in prediction and causal adjustment.

Read how Causal Inference for Data Science explains conditional probability →

Learn Generative AI with PyTorch

A probability of one variable given another, used here for discriminative prediction of Y from X.

How it is used
Frames discriminative prediction as estimating labels from observed input features.
How deep it goes
Defines P(Y|X) and contrasts it with P(X,Y), but does not derive probability calculations or model-training procedures.
Examples
Uses dog-versus-cat image labels and eyeglasses-conditioned image generation as concrete examples.
What you can do after
Evaluate/understand how discriminative models express label probabilities given image features.

Read how Learn Generative AI with PyTorch explains conditional probability →

Fabulous Adventures in Data Structures and Algorithms

Conditional probability is the probability of an event given that another event or condition is known to hold.

How it is used
Uses observed evidence to update beliefs about possible causes through Bayesian probability models.
How deep it goes
Develops notation, tables, probability identities, and filter-projection mechanics, stopping short of continuous distributions.
Examples
Uses a 10,000-person cold-and-sneeze survey and a C# posterior function returning weights of 27 to 86.
What you can do after
Apply it via generic discrete-distribution operations to compute posterior beliefs from priors and likelihood functions.

Read how Fabulous Adventures in Data Structures and Algorithms explains conditional probability →

Build a Robo-Advisor with Python (From Scratch)

Conditional probability is the probability of an event given that another event or condition is known to occur.

How it is used
Frames updated information as a way to distinguish conditional probabilities from unconditional probabilities.
How deep it goes
Defines conditional probability, states Bayes’ rule, and works through population-rate calculations.
Examples
Uses professional basketball, height, and United States population rates as a worked example.
What you can do after
Evaluate/understand conditional probabilities and calculate a reversed conditional probability with Bayes’ rule.

Read how Build a Robo-Advisor with Python (From Scratch) explains conditional probability →

Math and Architectures of Deep Learning

The probability of an event computed under the assumption that another event or condition is already known to hold.

How it is used
Frames uncertainty in Bayesian machine learning and supports likelihood, posterior, and model-based reasoning.
How deep it goes
Defines conditioning, derives the joint-to-conditional ratio, and connects it to Bayes’ theorem and independence.
Examples
Uses a height-and-weight population table to calculate and compare joint, marginal, and conditional probabilities.
What you can do after
Evaluate conditional probabilities and interpret likelihoods, posteriors, and independence in Bayesian models.

Read how Math and Architectures of Deep Learning explains conditional probability →

Statistics Slam Dunk

Conditional probability is the probability of an event given that a specified condition or other event holds.

How it is used
Uses conditional probability to compare draft outcomes within pick segments.
How deep it goes
Defines the measure through counts, computes segment probabilities, and combines them with medians for expected value.
Examples
Uses NBA draft picks, win-share bands, probability tables, and R filtering.
What you can do after
Apply it via R to estimate outcome probabilities within draft segments and calculate expected value.

Read how Statistics Slam Dunk explains conditional probability →

Natural Language Processing in Action, Second Edition

Conditional probability is the probability of an event given that another event or condition is known to hold.

How it is used
Models the probability of each next word conditioned on preceding words during language generation.
How deep it goes
Explains next-word distributions, sequential token choice, and temperature, without developing a general probability formula.
Examples
Uses an SOS-prefixed sentence, a token probability tree, Wikipedia bigrams, CountVectorizer, and random-choice autocomplete.
What you can do after
Build it from scratch by calculating bigram conditional probabilities and sampling autocomplete words with Python.

Read how Natural Language Processing in Action, Second Edition explains conditional probability →

Inside AI

Conditional probability is the probability of an event given that another event or condition is known to have occurred.

How it is used
Supports probabilistic descriptions by showing how evidence about one event affects expectations about another.
How deep it goes
Defines conditional probability through Bayes’ theorem and connects it to Bayesian networks without developing deeper implementation detail.
Examples
Uses clouds and rain, with different rain probabilities depending on whether clouds are present.
What you can do after
Evaluate probabilistic dependencies and understand how new evidence changes an event’s likelihood.

Read how Inside AI explains conditional probability →

Related concepts

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.