Back to homeMathematics · 2nd Bach. Social Sciences · Change subject
Start for free
BAC2 ss · Mathematics
Chance and probability · Probability

Conditional probability

"What is the probability that a member leaves the gym?" is not the same question as "what is the probability that they leave, knowing that they have a monthly membership?". Knowing something about the situation changes the space of possibilities: you no longer count all the cases, only those that are compatible with what you know. That is the idea of this section, which is key to reading any problem with cross-classified data correctly.

Before you start, make sure you know: Contingency tables (1st Bachillerato)
Before you start, make sure you know: Events (1st Bachillerato)

What P(A|B) means

Venn diagram of the events novel and comic, highlighting that the condition restricts the sample space to circle C and its intersection with N. whole sample space N (novel) C (comic) N∩C when conditioning on C, the world shrinks to circle C
Practice★☆☆Not started
In a local library, it is known that the probability that a member borrows a novel is $P(N) = 0,6$ and the probability that they borrow a comic is $P(C) = 0,4$.…

In a local library, it is known that the probability that a member borrows a novel is $P(N) = 0,6$ and the probability that they borrow a comic is $P(C) = 0,4$. Furthermore, the probability that they borrow both is $P(N \cap C) = 0,15$.

Calculate the probability that a member borrows a comic if we know that they have already borrowed a novel.

Solve
Practice★☆☆Not started
A social media analyst studies the behaviour of teenagers on two apps: TikTok ($T$) and Instagram ($I$). The data indicate that: $70 \%$ of young people use TikTok.…

A social media analyst studies the behaviour of teenagers on two apps: TikTok ($T$) and Instagram ($I$). The data indicate that:

  • $70 \%$ of young people use TikTok.

  • $50 \%$ use Instagram.

  • The probability that a young person uses Instagram given that they use TikTok is $0,4$.

Calculate the probability that a randomly chosen young person uses both apps ($P(T \cap I)$) and reason whether the events are independent.

Solve

Compound probability: P(A∩B) = P(A)·P(B|A)

Rearranging the previous definition gives the formula that is actually used to calculate intersections step by step, especially in successive draws or two-stage processes.

Two-stage tree diagram of successive events illustrating the compound probability rule P(A ∩ B) = P(A) · P(B|A) without replacement. 1st stage: P(A) 2nd stage | A: P(B|A) P(A∩B) = P(A)·P(B|A)
Practice★☆☆Not started
In a pencil case there are 5 fluorescent highlighters: 3 are yellow and 2 are pink. We draw two highlighters consecutively and without replacement (without putting the…

In a pencil case there are 5 fluorescent highlighters: 3 are yellow and 2 are pink. We draw two highlighters consecutively and without replacement (without putting the first one back in the pencil case).

Represent the situation with a tree diagram and calculate the probability that the second highlighter drawn is pink, given that the first one was yellow.

Solve
Practice★★☆Not started
A Year 13 student has prepared 18 out of the 25 topics included in the final History exam. The exam consists of choosing two topics at random from the total and…

A Year 13 student has prepared 18 out of the 25 topics included in the final History exam. The exam consists of choosing two topics at random from the total and answering one of them.

  1. a) Calculate the probability that the student knows both topics drawn.
  2. b) Calculate the probability that the student passes the exam (that is, knows at least one of the two topics).
1st draw 2nd draw Outcomes 18/25 7/25 17/24 7/24 18/24 6/24 S₁ N₁ S₂ N₂ S₂ N₂ S₁ ∩ S₂ S₁ ∩ N₂ N₁ ∩ S₂ N₁ ∩ N₂ PASS PASS PASS FAIL S: Knows the topic N: Does not know the topic Total: 25 topics (18 prep. / 7 not prep.)
Solve
Practice★★★Not started
We have two opaque urns. Urn $U_A$ contains 4 white balls and 6 black balls. Urn $U_B$ contains 5 white balls and 3 black balls. The experiment consists of drawing a…

We have two opaque urns. Urn $U_A$ contains 4 white balls and 6 black balls. Urn $U_B$ contains 5 white balls and 3 black balls. The experiment consists of drawing a ball from urn $U_A$ and, without looking at its colour, placing it into urn $U_B$. Next, two balls are drawn simultaneously from urn $U_B$.

If the two balls drawn from the second urn turn out to be white, what is the probability that the ball transferred from the first urn was black? Express the result as an irreducible fraction.

Solve

Reading the conditional probability from a contingency table

Contingency table for two social networks illustrating that conditional probability divides the intersection cell by the total of the condition's column. Instagram Total TikTok 60 120 200 100 P(T|I) = 60 / (Instagram total), not 60 / 200
Practice★☆☆Not started
In a Year 13 class, a survey was conducted on the use of glasses and the gender of students. The results are shown in the following contingency table: If a student is…

In a Year 13 class, a survey was conducted on the use of glasses and the gender of students. The results are shown in the following contingency table:

Glasses No Glasses Total Girls Boys Total 8 12 20 6 14 20 14 26 40

If a student is chosen at random, calculate:

  1. a) The probability that they are a boy, given that they wear glasses.
  2. b) The probability that they wear glasses, given that they are a girl.
Solve
Practice★★☆Not started
In a survey carried out on 200 students at a secondary school regarding social media use, it was observed that 120 use TikTok, 100 use Instagram and 60 use both…

In a survey carried out on 200 students at a secondary school regarding social media use, it was observed that 120 use TikTok, 100 use Instagram and 60 use both platforms. If a student is chosen at random, calculate:

  1. a) The probability that they use Instagram given that they already use TikTok.
  2. b) The probability that they do not use TikTok if we know that they use Instagram.
  3. c) Are the events "being a TikTok user" and "being an Instagram user" independent? Justify your answer mathematically.
Universal set (E) = 200 students TikTok (120) Instagram (100) 60 TikTok only 60 Both 40 Inst. only Neither 40
Solve
Practice★★☆Not started
A sports performance centre classifies its athletes according to their diet (Balanced or Deficient) and their performance in the last term (High or Low). The data are…

A sports performance centre classifies its athletes according to their diet (Balanced or Deficient) and their performance in the last term (High or Low). The data are gathered in the following contingency table:

High Performance ($R$) Low Performance ($\bar{R}$)
Balanced Diet ($D$) 45 15
Deficient Diet ($\bar{D}$) 10 30

Calculate:

  1. a) $P(R | D)$
  2. b) $P(\bar{D} | \bar{R})$
  3. c) Determine whether having a balanced diet and having a high performance are independent events.
Solve

Deducing probabilities by combining data

Exam questions rarely give you $P(A|B)$ directly: they usually give $P(A)$, $P(B)$ and the union or the complement, and ask you to deduce the rest.

Venn diagram with two overlapping events showing the relationship between the union, the intersection and the outside region according to De Morgan's laws. AB outside both circles: Ā∩B̄ = 1 − P(A∪B)
Practice★☆☆Not started
Let $A$ and $B$ be two events of a random experiment such that the probability of $A$ is $P(A) = 0,5$, that of $B$ is $P(B) = 0,3$, and the probability of their union is…

Let $A$ and $B$ be two events of a random experiment such that the probability of $A$ is $P(A) = 0,5$, that of $B$ is $P(B) = 0,3$, and the probability of their union is $P(A \cup B) = 0,65$.

From the following Venn diagram, identify the shaded region and calculate $P(A|B)$.

E A B
Solve
Practice★★☆Not started
Let $A$ and $B$ be two events of a random experiment such that $P(A) = 0,4$, $P(B) = 0,6$ and $P(A \cup B) = 0,8$. a) Calculate $P(A | B)$. b) Calculate…

Let $A$ and $B$ be two events of a random experiment such that $P(A) = 0,4$, $P(B) = 0,6$ and $P(A \cup B) = 0,8$.

  1. a) Calculate $P(A | B)$.
  2. b) Calculate $P(B | \bar{A})$.
  3. c) Are $A$ and $B$ mutually exclusive events? Are they independent?
Solve
Practice★★★Not started
Let $A$ and $B$ be two events in a sample space such that we know $P(A \cup B) = 0,9$, $P(B|A) = 0,4$ and $P(A|\overline{B}) = 0,8$, where $\overline{B}$ represents the…

Let $A$ and $B$ be two events in a sample space such that we know $P(A \cup B) = 0,9$, $P(B|A) = 0,4$ and $P(A|\overline{B}) = 0,8$, where $\overline{B}$ represents the complementary event of $B$.

Using the properties of the algebra of events and the definition of conditional probability, calculate:

  1. $P(A \cap B)$

  2. $P(A)$

  3. $P(B)$

Hint: Set up a system of equations using the definitions of conditional probability.

Solve

Back to the beginning: the overall probability of leaving the gym is $P(D)$, calculated over all members; if we know that the member has a monthly membership ($M$), the probability becomes $P(D|M) = \frac{P(D \cap M)}{P(M)}$, reducing the sample space to only those who have that type of membership.

Summary

See all the exercises in this section