Multiplication rule
The multiplication rule determines a combined count or probability by multiplying the numbers of choices or the relevant probabilities at successive stages.
Statistics Every Programmer Needs
The multiplication rule of counting determines the number of outcomes formed by successive choices by multiplying the numbers of options at each stage.
- How it is used
- Counts combined outcomes and supplies success and total-outcome counts for theoretical probabilities.
- How deep it goes
- Defines the product formula, works through dice and repeated-position counts, and flags independent choices and changing options.
- Examples
- Uses ordered dice rolls, license plates, three-digit locks, and a Python calculation of 5³ = 125.
- What you can do after
- Apply it to count combined outcomes and calculate probabilities from successful and total outcome counts.
Read how Statistics Every Programmer Needs explains multiplication rule →
Grokking Machine Learning, Second Edition
The product rule for independent probabilities states that the probability of independent events occurring together is the product of their individual probabilities.
- How it is used
- Computes joint probabilities for spam classification and for same-color draws used in Gini impurity.
- How deep it goes
- Defines conditional and independent forms, then works through numerical email, population, and color-draw calculations.
- Examples
- Uses spam emails with “lottery” and “sale,” population eye-color estimates, and independently drawn colored balls.
- What you can do after
- Apply it to calculate or estimate the probability that two events occur together.
Read how Grokking Machine Learning, Second Edition explains multiplication rule →
Grokking Machine Learning
A rule stating that the probability of independent events occurring together equals the product of their individual probabilities.
- How it is used
- Uses joint probabilities to calculate spam-detection probabilities from email features.
- How deep it goes
- Works through conditional probabilities with an email tree and applies independence to estimate joint word probabilities.
- Examples
- Calculates email probabilities using spam, ham, and the words “lottery” and “sale.”
- What you can do after
- Evaluate joint email probabilities and estimate them using an independence assumption.
Read how Grokking Machine Learning explains multiplication rule →
Timeless Algorithms, The Foundational Ideas
The multiplication rule is a probability rule for calculating the probability that multiple events occur together from joint or conditional probabilities.
- How it is used
- Supports calculation of compound-event probabilities and modeling uncertainty across sequences of related events.
- How deep it goes
- Explains dependent and independent forms with worked probabilities and a sequence product, while deferring detailed treatment of learning algorithms.
- Examples
- Uses successive card draws, two coin flips, and a word-sequence probability to illustrate probability products.
- What you can do after
- Evaluate joint probabilities by selecting conditional or independent-event factors.
Read how Timeless Algorithms, The Foundational Ideas explains multiplication rule →
Also covered in
What to know first
- probability theoryProbability theory is the mathematical framework for quantifying and reasoning about uncertainty in events, variables, and outcomes.
- Bayesian inferenceBayesian inference updates probability distributions over hypotheses or unknown quantities by combining prior information with observed evidence and a likelihood model.
- conditional probabilityConditional probability is the probability of an event or variable value given that specified information, an event, or another variable’s value is known.
Related concepts
- large language modelused by · A large language model is a machine-learning model trained on extensive text data to process and generate natural language.
- independenceuses · Two random events or quantities are independent when the occurrence or value of one does not change the probability distribution of the other.
- addition rulecontrasts with · The addition rule determines the total count or probability of mutually exclusive alternatives by summing their individual counts or probabilities.
- Bayesian networkused by · A Bayesian network is a probabilistic graphical model in which a directed acyclic graph represents random variables and their conditional dependencies.
- binomial distributionused by · A binomial distribution is the probability distribution of the number of successes in a fixed number of independent trials, each with the same probability of success.
Questions about multiplication rule
What is multiplication rule?
The multiplication rule determines a combined count or probability by multiplying the numbers of choices or the relevant probabilities at successive stages.
Which Manning books explain multiplication rule?
Statistics Every Programmer Needs, Grokking Machine Learning, Second Edition, Grokking Machine Learning and Timeless Algorithms, The Foundational Ideas.
What should I know before learning multiplication rule?
Manning books that teach multiplication rule usually introduce probability theory, Bayesian inference, conditional probability and product first.
What is the difference between multiplication rule and addition rule?
The multiplication rule determines a combined count or probability by multiplying the numbers of choices or the relevant probabilities at successive stages. The addition rule determines the total count or probability of mutually exclusive alternatives by summing their individual counts or probabilities.
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.



