Lably
Skip to content

Conditional probability

Probability of an event occurring, given that another event has already occurred

  • 15 min read
  • 7 chapters
  • 2 labs on Lably

Learn it on Lably

P(A∣B)=P(A∩B)P(B).

For example, the probability that any given person has a cough on any given day may be only 5%. But if we know or assume that the person is sick, then they are much more likely to be coughing. For example, the conditional probability that someone sick is coughing might be 75%, in which case we would have that P(Cough) = 5% and P(Cough|Sick) = 75%. Although there is a relationship between A and B in this example, such a relationship or dependence between A and B is not necessary, nor do they have to occur simultaneously.

P(A|B) may or may not be equal to P(A), i.e., the unconditional probability or absolute probability of A. If P(A|B) = P(A), then events A and B are said to be independent: in such a case, knowledge about either event does not alter the likelihood of the other. P(A|B) (the conditional probability of A given B) typically differs from P(B|A). For example, if a person has dengue fever, the person might have a 90% chance of being tested as positive for the disease. In this case, what is being measured is that if event B (having dengue) has occurred, the probability of A (tested as positive) given that B occurred is 90%, simply writing P(A|B) = 90%. Alternatively, if a person is tested as positive for dengue fever, they may have only a 15% chance of actually having this rare disease due to high false positive rates. In this case, the probability of the event B (having dengue) given that the event A (testing positive) has occurred is 15% or P(B|A) = 15%. It should be apparent now that falsely equating the two probabilities can lead to various errors of reasoning, which is commonly seen through base rate fallacies.

While conditional probabilities can provide extremely useful information, limited information is often supplied or at hand. Therefore, it can be useful to reverse or convert a conditional probability using Bayes' theorem: P(A∣B)=P(B∣A)P(A)P(B). Another option is to display conditional probabilities in a conditional probability table to illuminate the relationship between events.

Definition

Conditioning on an event

Kolmogorov definition

Given two events A and B from the sigma-field of a probability space, with the unconditional probability of B being greater than zero (i.e., P(B) > 0), the conditional probability of A given B (P(A∣B)) is the probability of A occurring if B has or is assumed to have happened. A is assumed to be the set of all possible outcomes of an experiment or random trial that has a restricted or reduced sample space. The conditional probability can be found by the quotient of the probability of the joint intersection of events A and B, that is, P(A∩B), the probability at which A and B occur together, and the probability of B:

P(A∣B)=P(A∩B)P(B).

For a sample space consisting of equal likelihood outcomes, the probability of the event A is understood as the fraction of the number of outcomes in A to the number of all outcomes in the sample space. Then, this equation is understood as the fraction of the set A∩B to the set B. Note that the above equation is a definition, not just a theoretical result. We denote the quantity P(A∩B)P(B) as P(A∣B) and call it the "conditional probability of A given B."

As an axiom of probability

Some authors, such as de Finetti, prefer to introduce conditional probability as an axiom of probability:

P(A∩B)=P(A∣B)P(B).

This equation for a conditional probability, although mathematically equivalent, may be intuitively easier to understand. It can be interpreted as "the probability of B occurring multiplied by the probability of A occurring, provided that B has occurred, is equal to the probability of the A and B occurrences together, although not necessarily occurring at the same time". Additionally, this may be preferred philosophically; under major probability interpretations, such as the subjective theory, conditional probability is considered a primitive entity. Moreover, this "multiplication rule" can be practically useful in computing the probability of A∩B and introduces a symmetry with the summation axiom for Poincaré Formula:

P(A∪B)=P(A)+P(B)−P(A∩B)
Thus the equations can be combined to find a new representation of the :
P(A∩B)=P(A)+P(B)−P(A∪B)=P(A∣B)P(B)
P(A∪B)=P(A)+P(B)−P(A∣B)P(B)

As the probability of a conditional event

Conditional probability can be defined as the probability of a conditional event AB. The Goodman–Nguyen–Van Fraassen conditional event can be defined as:

AB=⋃i≥1(⋂j<iB¯j,AiBi), where Ai and Bi represent states or elements of A or B.

It can be shown that

P(AB)=P(A∩B)P(B)

which meets the Kolmogorov definition of conditional probability.

Conditioning on an event of probability zero

If P(B)=0, then according to the definition, P(A∣B) is undefined.

The case of greatest interest is that of a random variable Y, conditioned on a continuous random variable X resulting in a particular outcome x. The event B={X=x} has probability zero and, as such, cannot be conditioned on.

Instead of conditioning on X being exactly x, we could condition on it being closer than distance ε away from x. The event B={x−ε<X<x+ε} will generally have nonzero probability and hence, can be conditioned on. We can then take the limit

For example, if two continuous random variables X and Y have a joint density fX,Y(x,y), then by L'Hôpital's rule and Leibniz integral rule, upon differentiation with respect to ε:

limε→0P(Y∈U∣x0−ε<X<x0+ε)=limε→0∫x0−εx0+ε∫UfX,Y(x,y)dydx∫x0−εx0+ε∫RfX,Y(x,y)dydx=∫UfX,Y(x0,y)dy∫RfX,Y(x0,y)dy.

The resulting limit is the conditional probability distribution of Y given X and exists when the denominator, the probability density fX(x0), is strictly positive.

It is tempting to define the undefined probability P(A∣X=x) using limit (1), but this cannot be done in a consistent manner. In particular, it is possible to find random variables X and W and values x, w such that the events {X=x} and {W=w} are identical but the resulting limits are not:

limε→0P(A∣x−ε≤X≤x+ε)≠limε→0P(A∣w−ε≤W≤w+ε).

The Borel–Kolmogorov paradox demonstrates this with a geometrical argument.

Conditioning on a discrete random variable

Let X be a discrete random variable and its possible outcomes denoted V. For example, if X represents the value of a rolled dice then V is the set {1,2,3,4,5,6}. Let us assume for the sake of presentation that X is a discrete random variable, so that each value in V has a nonzero probability.

For a value x in V and an event A, the conditional probability is given by P(A∣X=x). Writing

c(x,A)=P(A∣X=x)

for short, we see that it is a function of two variables, x and A.

For a fixed A, we can form the random variable Y=c(X,A). It represents an outcome of P(A∣X=x) whenever a value x of X is observed.

The conditional probability of A given X can thus be treated as a random variable Y with outcomes in the interval [0,1]. From the law of total probability, its expected value is equal to the unconditional probability of A.

Partial conditional probability

The partial conditional probability P(A∣B1≡b1,…,Bm≡bm) is about the probability of event A given that each of the condition events Bi has occurred to a degree bi (degree of belief, degree of experience) that might be different from 100%. Frequentistically, partial conditional probability makes sense, if the conditions are tested in experiment repetitions of appropriate length n. Such n-bounded partial conditional probability can be defined as the conditionally expected average occurrence of event A in testbeds of length n that adhere to all of the probability specifications Bi≡bi, i.e.:

Pn(A∣B1≡b1,…,Bm≡bm)=E⁡(A¯n∣B¯1n=b1,…,B¯mn=bm)

Based on that, partial conditional probability can be defined as

P(A∣B1≡b1,…,Bm≡bm)=limn→∞Pn(A∣B1≡b1,…,Bm≡bm),

where bin∈N

Jeffrey conditionalization is a special case of partial conditional probability, in which the condition events must form a partition:

P(A∣B1≡b1,…,Bm≡bm)=∑i=1mbiP(A∣Bi)

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Statistics and probability