Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk4 min

How to Develop an Intuition for Joint, Marginal, and Conditional Probability

A contingency table gives three ways to read probability: a joint event in one cell, a marginal total, or a conditional share within a selected group.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The denominator tells you what a probability is about. In a two-way table, a joint probability uses the whole table to describe one cell, a marginal probability uses the whole table to describe a row or column total, and a conditional probability uses only the selected row or column. Read the same table in those three ways and the difference becomes easier to see.

Start with one table and ask what population you are counting

Imagine 200 observations classified by two variables: whether each case is in group B and whether it is in group S. The table below uses the published counts in MacEwan University’s Introduction to Applied Statistics example. The remaining cells follow by subtraction.

As an Amazon Associate I earn from qualifying purchases.

S Not S Total
B 10 30 40
Not B 20 140 160
Total 30 170 200

Each count can answer a different kind of question, depending on the denominator. A cell is a count of cases meeting two conditions. A margin is a total for one variable, ignoring the other. A conditional probability narrows the population to cases meeting a specified condition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Joint probability: read one cell

A joint probability asks whether two events happen together: “B and S.” It is written P(B ∩ S) or P(B, S). Find the cell where row B and column S meet, then divide its count by the grand total: 10/200 = 0.05, or 5%.

In general, for events A and B, the cell-over-total calculation is P(A ∩ B) = count(A and B) / total count. The denominator is the full set of observations because the question has not restricted the population to either event.

Marginal probability: read a margin

A marginal probability asks about one variable while disregarding the other. To find the probability of B, use the B row total, 40, over all 200 cases: P(B) = 40/200 = 0.20. To find the probability of S, use its column total: P(S) = 30/200 = 0.15.

These are marginal probabilities because their counts sit on the table’s margins. You can also get a marginal probability by adding the joint probabilities across the values of the variable you are ignoring. For example, P(B) = P(B ∩ S) + P(B ∩ not S). This is why a row or column total is not itself a joint probability: it combines several cells.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Conditional probability: lock a slice and renormalize

A conditional probability asks about one event within a group already known to satisfy another. The notation P(A | B) means “the probability of A, given B.” Keep only cases in which B is true; the other cases are outside the reference population.

Given B: use the B row total

Among the 40 B cases, 10 are also S. So P(S | B) = 10/40 = 0.25. The denominator is 40, not 200, because the question is about the B subgroup.

Given S: use the S column total

Among the 30 S cases, 10 are also B. So P(B | S) = 10/30 ≈ 0.333. Here the denominator is 30 because the reference population is the S subgroup.

These probabilities differ because they describe different restricted populations. P(S | B) asks what share of B cases are S; P(B | S) asks what share of S cases are B. The shared cell is the same 10 cases, but each percentage compares those cases with a different group.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why P(A | B) is not P(B | A)

The order around the vertical bar matters. In P(A | B), B identifies the reference population, and A is the outcome being counted within it. In P(B | A), A identifies the population instead. The denominators are P(B) and P(A), respectively, so the answers usually differ.

A useful way to keep the direction straight is to say the notation out loud: “A among B.” The event after the bar is the condition—the group you keep. This also explains why reversing a conditional is not a harmless rearrangement: it changes the question.

Connect the three readings with the product rule and Bayes’ theorem

A conditional probability can be multiplied by the probability of its reference group to recover the joint probability:

P(A ∩ B) = P(A | B)P(B) = P(B | A)P(A)

Both expressions describe the same overlap. The first starts with the B population and takes the share that is also A; the second starts with A and takes the share that is also B.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Rearranging this relationship gives Bayes’ theorem:

P(A | B) = P(B | A)P(A) / P(B), provided P(B) > 0.

Bayes’ theorem is useful when the conditional in the direction you need is not the one you know. For instance, you might know the probability of evidence B among cases where A is true, but want the probability of A among cases where B is observed. Identify the prior P(A), the likelihood P(B | A), and the evidence probability P(B); then substitute them into the formula. Penn State’s STAT 414 lesson on Bayes’ theorem describes this as finding a conditional when the reverse conditional is known.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use the denominator to identify the probability type

Before calculating, ask: “What is my reference population?” The denominator usually settles the question.

  • Grand total: a cell count over the total is a joint probability; a row or column total over the total is a marginal probability.
  • Conditioning-group total: a cell count over the row or column specified after “given,” “among,” or “of those who” is a conditional probability.
  • Changing condition: if the condition changes, the denominator changes. That is why the two conditional directions can have different values.

Colorado State University’s STAT 400 module likewise emphasizes that the denominator determines which probability a percentage represents.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check your reading with a quick practice question

Using the table above, what is the probability that a randomly selected case is not B? The answer is 160/200 = 0.80: it is a marginal probability because it uses the Not B row total and the grand total. What is the probability of not B among S cases? That is 20/30 ≈ 0.667: it is conditional because the denominator is the S column total.

As a final check, within any fixed condition, the conditional probabilities for all possible outcomes of the other variable must add to 1. Among B cases, for example, P(S | B) + P(not S | B) = 10/40 + 30/40 = 1. If they do not, check whether you included every outcome in the slice and used its full total as the denominator.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.