AOS4 Topic 6: Conditional Probability

The conditional probability, as its name suggests, is the probability of an event happening based upon a given condition. For example, assume that the probability of a boy playing tennis in the evening is 95% (0.95), whereas the probability that he plays given that it is a rainy day is lower, at 10% (0.1). Here, the former case is just normal probability, while the latter case is conditional probability. In this example, we represent the two probabilities as:

P(Play tennis) = 0.95 and P(Play tennis | Rainy day) = 0.1.

What Is Conditional Probability?

Conditional probability is one of the important concepts in probability and statistics. The "probability of A given B" or the "probability of A with respect to the condition B" is denoted by the conditional probability P(A | B). Thus, P(A | B) represents the probability of A occurring after event B has already occurred. The probability of an event may alter if there is a condition given.

Definition of Conditional Probability

If A and B are two events associated with the same sample space of a random experiment, the conditional probability of event A given that B has occurred is given by:

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

Example of Conditional Probability

Let's understand conditional probability with an example. Find the conditional probability of getting at least two tails given that it is a head on the first toss when 3 coins are tossed. The sample space, S, when 3 coins are tossed is:

Let A = the event of getting at least two tails

Let B = the event of getting a head on the first toss

Then, A = {HTT, THT, TTH, TTT} and B = {HHH, HHT, HTH, HTT}.

P(A) = 4/8 = 1/2 and P(B) = 4/8 = 1/2.

We want to find the probability of getting at least two tails given that it is a head on the first toss. Out of all elements of B, only one outcome (HTT) has two tails. Thus, the required probability is:

P(A | B) = 1/4 (only 1 outcome of B is favorable to A out of 4 outcomes of B).

Conditional Probability Formula

In the above example, we found that P(A | B) = 1/4. Here, 1 represents the element HTT, which is present in both A and B, and 4 represents the total number of elements in B. Using this, we derive the formula for conditional probability as follows:

P(A | B) = P(A ∩ B) / P(B) (where P(B) ≠ 0)

Similarly, we can define P(B | A) as:

P(B | A) = P(A ∩ B) / P(A) (where P(A) ≠ 0)

These formulas are also known as the "Kolmogorov definition" of conditional probability.

Explanation of Terms

  • P(A | B): The probability of A given B (or the probability of A occurring after B)
  • P(B | A): The probability of B given A (or the probability of B occurring after A)
  • P(A ∩ B): The probability of both A and B happening
  • P(A): The probability of A
  • P(B): The probability of B

Derivation of Conditional Probability

Note that the elements of B which favor the event A are the common elements of A and B, i.e., the sample points of A ∩ B.

Thus, P(A | B) = Number of events favorable to A ∩ B ÷ Number of events favorable to B.

P(A | B) = (n(A ∩ B) / n(S)) / (n(B) / n(S))

Thus, P(A | B) = P(A ∩ B) / P(B)

Properties of Conditional Probability

Here are some properties of conditional probability along with their proofs, which may be useful while solving problems. All these properties rely on the conditional probability formula (as mentioned above).

Property 1

Let S be the sample space of an experiment, and A be any event. Then, P(S | A) = P(A | A) = 1.

Proof:

By the formula of conditional probability:

P(S | A) = P(S ∩ A) / P(A) = P(A) / P(A) = 1

P(A | A) = P(A ∩ A) / P(A) = P(A) / P(A) = 1

Hence, Property 1 is proved.

Property 2

Let S be the sample space of an experiment, and A and B be any two events. Let E be any other event such that P(E) ≠ 0. Then, P((A ⋃ B) | E) = P(A | E) + P(B | E) - P((A ∩ B) | E).

Proof:

By the formula of conditional probability:

P((A ⋃ B) | E) = [P((A ⋃ B) ∩ E)] / P(E)

= [ P(A ∩ E) ⋃ P(B ∩ E) ] / P(E) (using a property of sets)

= [P(A ∩ E) + P(B ∩ E) - P(A ∩ B ∩ E)] / P(E) (using the addition theorem of probability)

= P(A ∩ E) / P(E) + P(B ∩ E) / P(E) - P(A ∩ B ∩ E) / P(E)

= P(A | E) + P(B | E) - P((A ∩ B) | E) (By the conditional probability formula)

Hence, Property 2 is proved.

Property 3

P(A' | B) = 1 - P(A | B), where A' is the complement of set A.

Proof:

By Property 1, we have P(S | B) = 1.

We know that S = A ⋃ A'. Thus, by the above property:

P( A ⋃ A' | B) = 1

Since A and A' are disjoint events:

P(A | B) + P(A' | B) = 1

P(A' | B) = 1 - P(A | B)

Hence, Property 3 is proved.

Dependent and Independent Events

The definition of independent and dependent events is closely connected to conditional probability. Let's explore these definitions and their formulas.

Dependent Events

Dependent events are events where the occurrence of one event affects the probability of the other event happening.

  • If A depends on B, then the probability of A is P(A | B).
  • If B depends on A, then the probability of B is P(B | A).

Using the conditional probability formulas:

P(A | B) = P(A ∩ B) / P(B) ⇒ P(A ∩ B) = P(A | B) · P(B)

P(B | A) = P(A ∩ B) / P(A) ⇒ P(A ∩ B) = P(B | A) · P(A)

Thus, two events A and B are said to be dependent if one of these conditions is satisfied:

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

Independent Events

Independent events are events where the occurrence of one event does not affect the probability of the other event occurring. If A and B are independent, then:

P(A | B) = P(A) and P(B | A) = P(B)

Thus, for independent events, we can substitute P(A | B) with P(A) (or P(B | A) with P(B)) in one of the dependent event formulas. Therefore, two events are said to be independent if:

P(A ∩ B) = P(A) · P(B)

This is also known as the multiplication rule of probability.

Example 1

The table below shows the occurrence of diabetes in 100 people. Let D and N be the events where a randomly selected person "has diabetes" and "not overweight". Then find P(D | N).

Diabetes (D) No Diabetes (D')
Not overweight (N) 5 45
Overweight (N') 17 33

Solution:

From the given table, P(N) = (5+45) / 100 = 50/100.

P(D ∩ N) = 5/100.

By the conditional probability formula:

P(D | N) = P(D ∩ N) / P(N)

= (5/100) / (50/100)

= 5/50

= 1/10

Answer: P(D | N) = 1/10

Example 2

The probability that it will be sunny on Friday is 4/5. The probability that an ice cream shop will sell ice creams on a sunny Friday is 2/3, and the probability that the ice cream shop sells ice creams on a non-sunny Friday is 1/3. Then find the probability that it will be sunny and the ice cream shop sells the ice creams on Friday.

Solution:

Let us assume that the probabilities for a Friday to be sunny and for the ice cream shop to sell ice creams be S and I, respectively. Then,

P(S) = 4/5

P(I | S) = 2/3

P(I | S') = 1/3

We have to find P(S ∩ I).

We can see that S and I are dependent events. By using the dependent events' formula of conditional probability,

P(S ∩ I) = P(I | S) · P(S) = (2/3) · (4/5) = 8/15

Answer: The required probability = 8/15

Example 3

If a fair die is rolled twice, observe the numbers that face up. Find the conditional probability that the sum of the numbers is 7, given that the first number is 2.

Solution:

Let us determine the sample space of rolling a die twice:

S = {(1,1), (1,2), (1,3), (1,4), (1,5), (1,6), (2,1), (2,2), (2,3), (2,4), (2,5), (2,6), (3,1), (3,2), (3,3), (3,4), (3,5), (3,6), (4,1), (4,2), (4,3), (4,4), (4,5), (4,6), (5,1), (5,2), (5,3), (5,4), (5,5), (5,6), (6,1), (6,2), (6,3), (6,4), (6,5), (6,6)}

Considering events A and B as given:

A: the sum of the numbers is 7. Thus, set A = {(1,6), (2,5), (3,4), (4,3), (5,2), (6,1)}

B: the first number is 2. Thus, set B = {(2,1), (2,2), (2,3), (2,4), (2,5), (2,6)}

A ∩ B: {(2,5)}

By the conditional probability, we know that:

P(A) = P(A ∩ B) / P(B)

= (1/36) / (6/36)

= 1/6

Answer: The conditional probability that the sum of the numbers is 7, given that the first number is 2, is 1/6.