Probability formula reference

Law of Total Probability

Computes an event probability over a partition of cases.

Open in editor
LaTeXP(B)=\sum_iP(B\mid A_i)P(A_i)

Variables

  • Define every symbol and unit before substitution.
  • Check the domain, shape, and convention required by the formula.

How to use this formula

Computes an event probability over a partition of cases.

Important notes

  • Verify assumptions and units before applying the expression.
  • Keep exact values until the final rounding step when possible.

Quick example

Use the law of total probability with a small known example, then verify the result independently.

Applicability, worked calculation, and verification

Assumptions and domain checks

  • For the Law of Total Probability, verify assumptions and units before applying the expression.
  • For the Law of Total Probability, the index variable, lower bound, upper bound, and any empty-sum or empty-product convention must be clear.
  • The event model, conditioning information, independence assumptions, and probability range must match the problem.

Worked example

Input

Output

Use the law of total probability with a small known example, then verify the result independently.

Common mistakes

  • Do not omit the index or bounds in Law of Total Probability; changing either one changes which terms are included.
  • Do not assume events are independent or mutually exclusive unless the problem states or proves that condition.

Continue the workflow

Use Law of Total Probability in your own work

  1. Check the domainMatch the variables and assumptions to the problem before substituting values.
  2. Copy the exact notationPreserve grouping, signs, and exponents in P(B)=\sum_iP(B\mid A_i)P(A_i).
  3. Edit or convertOpen the expression in the LaTeX editor, then export it for your document or web page.

Review and verification

Last reviewed: 2026-07-23

Automated quality check: Kept noindex until the missing evidence is supplied.

Formula references

Frequently asked questions

What is the Law of Total Probability used for?

Computes an event probability over a partition of cases.

Can I copy this formula as LaTeX?

Yes. Copy P(B)=\sum_iP(B\mid A_i)P(A_i) or open it in the LaTeX editor.

What should I check before using it?

Confirm that each variable, unit, domain restriction, and assumption matches the problem.

Reuse, attribution, and correction

Share this reference without losing its source

Copy a citation, permanent link, Markdown link, or self-contained embed card. Each reusable format points readers back to the maintained canonical page.

Report an issue

Search the whole reference

Symbols, formulas, guides, tools and commands

Start typing to search.

move · Enter open · Esc close