Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Conditional Probability






Probability When a Condition Is Known


In many situations, probabilities do not stay fixed. Once new information becomes available, how we assess a situation can change. Knowing that something has already happened often reshapes how we view what can happen next.

Conditional probability captures this shift in perspective. It reflects how uncertainty is evaluated after a condition is known, when attention is restricted to a smaller set of possibilities. This idea appears naturally whenever information arrives, observations are made, or situations unfold step by step.

The rest of the page explains how this change of viewpoint works, how it is expressed formally, and how it connects to other central ideas in probability.

Key Terms

Conditional ProbabilityP(AB)=P(AB)/P(B)P(A \mid B) = P(A \cap B)/P(B)
Conditional PMFpXY(xy)p_{X|Y}(x \mid y) for discrete random variables
Conditional PDFfXY(xy)f_{X|Y}(x \mid y) for continuous random variables
Independent Eventsthe case where conditioning changes nothing
Intersection of SetsABA \cap B, the numerator of the conditional formula
Probability Measurethe function PP being conditioned

See All Probability Definitions


Conditioning as Restricting the Situation


When a condition is known, we no longer reason over all possible outcomes. The information tells us that only certain situations remain relevant, and everything outside that condition is discarded.

From this point on, probabilities are evaluated within the condition. We are not changing the event itself — we are changing the context in which it is viewed. The situation is the same, but the frame of reference is smaller.

This way of thinking explains why probabilities can change once information is known. Conditioning is not an extra rule added on top of probability; it is a shift in perspective caused by restricting attention to a specific part of what was originally possible.

Formal Meaning of Conditional Probability


Conditional probability describes how likely an event is once we know that another event has occurred. It represents a reassessment of uncertainty after information is taken into account.

The key idea is that the condition is treated as given. All reasoning is carried out under the assumption that this condition is true, and probabilities are evaluated relative to that restricted situation rather than the original one.

This verbal description captures the essence of conditional probability before any symbols or formulas are introduced.

Useful Notation


    Before introducing the formula, we fix the symbols used to describe conditional probability:

  • AA, BB — events
  • P(A)P(A), P(B)P(B) — unconditional probabilities
  • P(AB)P(A \mid B) — probability of AA when BB is known to have occurred
  • ABA \cap B — the event that both AA and BB occur

  • This notation allows us to express conditioning precisely and compactly in the next section.

Conditional Probability Formula


The idea of conditioning becomes precise through a simple normalization rule. When we restrict attention to situations where BB has occurred, probabilities must be rescaled so that they sum to one within that restricted context.

This leads to the formula:

P(AB)=P(AB)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}

The numerator represents the part of AA that is compatible with the condition BB.
The denominator accounts for the fact that we are now working only inside BB.

This formula does not introduce a new probability law — it expresses how probabilities behave once the situation has been restricted by known information.

Visual Representations


Conditional probability becomes clearer when viewed geometrically or sequentially.

Venn diagram view:
The condition BB restricts attention to a smaller region of the sample space. The probability of AA is then evaluated only within that region, as the proportion of the overlap AcapBA cap B relative to BB itself.

Tree diagram view:
In a probability tree, conditioning corresponds to moving along a branch where a condition has already occurred. Probabilities along later branches are evaluated relative to that branch, not the entire tree.

These visual perspectives reinforce the idea that conditioning is a change of viewpoint, not a change in the underlying events.

Examples


1. Information Changes the Probability
Suppose AA is "a randomly chosen person has a university degree" and BB is "the person is over 40."
The probability of AA evaluated after knowing BB may differ from the overall probability of AA, because the condition changes the relevant group.

2. No Change Under Conditioning
If AA is "tomorrow is sunny" and BB is "a fair coin lands heads today," knowing BB has no effect on how we evaluate AA. In this case, conditioning does not change the probability, illustrating a link to independence.

3. Sequential Situations
Consider drawing two cards from a deck without replacement. Let AA be "the second card is an ace" and BB be "the first card is an ace."
Knowing whether BB occurred changes how we evaluate AA, because the situation after the first draw is different from the original one.

These examples show how conditional probability reflects the impact of information on how uncertainty is assessed. The table below sets them side by side so the three distinct behaviors — change, no change, and sequential dependence — can be compared directly.
Setup (events A, B) Effect of knowing B Why Behavior shown
A: has a degree; B: over 40 P(A|B) ≠ P(A) condition selects a different group with different proportions information changes the probability
A: tomorrow is sunny; B: coin lands heads today P(A|B) = P(A) the events are unrelated; knowing B reveals nothing about A independence
A: second card is an ace; B: first card is an ace (no replacement) P(A|B) ≠ P(A) after B, the deck composition has changed sequential dependence

Conditional Probability vs Independence


    Conditioning usually changes probabilities, because new information restricts the situation we are considering. Once a condition is known, the frame of reference shifts, and probabilities are re-evaluated within that restricted context.

    Independence is the special case where this shift does not occur. If events are independent, then knowing that one event happened provides no information about the other. In that case, conditioning leaves probabilities unchanged.

    This contrast is crucial:
  • Conditional probability describes how probabilities *update* when information is known.
  • Independence describes when such an update is unnecessary.

  • Understanding this distinction prevents a common mistake — assuming probabilities should change just because a condition is mentioned, or assuming independence without justification.

Common Patterns Where Conditioning Appears


Conditional probability shows up naturally in many recurring situations.

One common pattern is "given that…" reasoning, where information is stated explicitly and probabilities must be evaluated under that condition. Another is filtering, where attention is restricted to cases that meet a certain criterion before any assessment is made.

Conditioning also appears in sequential processes, where earlier outcomes affect how later ones are viewed, and in classification problems, where probabilities are evaluated within specific groups or categories.

Recognizing these patterns helps identify when conditional probability is required, even if the word "given" is not explicitly used. The table below lays out each pattern with the linguistic or structural signal that tends to flag it, what gets restricted, and a sample phrase that triggers it.
Pattern Recognition signal What gets restricted Example trigger
"Given that" reasoning explicit words: "given", "knowing", "assuming" reasoning takes place inside the stated condition "given that the test is positive…"
Filtering a subgroup is selected before any assessment attention to cases meeting a criterion "among students who passed…"
Sequential processes step-by-step where earlier outcomes affect later ones the state after step k affects step k+1 second card drawn after the first is removed
Classification probabilities evaluated within a group or category the group of interest is the new sample space "among customers in segment X…"

Common Mistakes


Conditional probability is often misapplied, even in simple situations.

A frequent mistake is forgetting to restrict the situation properly and continuing to reason as if all outcomes were still possible. Another common error is dividing by the wrong probability, which leads to incorrect normalization.

Confusing P(AB)P(A \mid B) with P(BA)P(B \mid A) is especially widespread and can completely reverse the meaning of a statement. It is also common to assume independence implicitly, treating conditioning as irrelevant without justification.

Being explicit about what is known and what space is being considered helps avoid these errors. The table below names each pitfall, the specific way reasoning breaks down, and the corrective habit that prevents it.
Mistake What goes wrong Correct approach
Not restricting the situation reasoning continues as if all original outcomes were still possible recompute everything inside B; outcomes outside B are discarded
Dividing by the wrong probability numerator is right but denominator uses P(A) or some other quantity denominator is always P(B), the probability of the condition
Confusing P(A|B) with P(B|A) the statement is reversed and its meaning changes entirely identify which event sits after the bar (the condition) vs before it (the target)
Implicit independence assumption conditioning is treated as irrelevant without checking verify P(A|B) = P(A) before treating events as independent

Overview of Conditional Probability


The sections above develop conditional probability piece by piece: as a shift in frame of reference, a normalization formula, a contrast with independence, and a set of recognizable patterns and pitfalls. The table below collects these threads into a single reference card — naming each essential aspect of conditioning and the key point to keep in mind when applying it.
Aspect What it captures Key point
Meaning reassessment of uncertainty when a condition is known the condition becomes the new frame of reference
Formula P(A|B) = P(A ∩ B) ⁄ P(B) renormalize so probabilities sum to 1 inside B
Numerator the intersection A ∩ B only the part of A compatible with B contributes
Denominator total probability mass of B requires P(B) > 0 for the expression to be defined
Independence test P(A|B) = P(A) conditioning produces no shift in probability
Asymmetry P(A|B) ≠ P(B|A) in general which event is the condition matters for the meaning

Why Conditional Probability Matters


Conditional probability is the mechanism by which probability responds to information. It models learning, observation, and the updating of beliefs as new facts become known.

This idea lies at the heart of inference, decision-making, and prediction. It underpins statistical reasoning, risk assessment, and data analysis, where conclusions must be drawn in the presence of partial information.

Without conditional probability, probability theory would be unable to describe how uncertainty evolves when knowledge changes.

Connections to Other Probability Concepts


    Conditional probability connects directly to many central ideas in probability.

  • Events provide the objects being conditioned on.
  • Independence describes when conditioning has no effect.
  • Total probability combines conditional probabilities across cases.
  • Chain rule builds joint probabilities from conditional ones.
  • Bayes theorem inverts conditional probabilities to update beliefs.
  • Random variables and distributions extend conditioning to numerical outcomes.

  • Understanding conditional probability clarifies how these concepts fit together into a single coherent framework.