Back to homeMathematics · High School Year 3 · Social Sciences · Change subject
Start for free
Prep 3 SS · Mathematics
Chance and probability · Probability

Conditional Probability

Before you start, make sure you know: Contingency tables (High School Year 2 (semesters 3 and 4))
Before you start, make sure you know: Events (High School Year 2 (semesters 3 and 4))

"What is the probability that a gym member cancels their membership?" is not the same question as "what is the probability that they cancel, given that they have a monthly plan?". Knowing something changes the set of possible cases: you no longer count all of them, only those compatible with what you know. That is the idea of this section.

What P(A|B) means

Venn diagram of the events novel and comic book: when conditioning on C, the sample space is reduced to circle C. entire sample space N (novel) C (comic book) 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 behavior 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 behavior 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
Practice★☆☆Not started
In a school basketball league, $40 \%$ of the participants are experienced players ($E$) and the rest are beginners ($P$). It is known that $80 \%$ of the experienced…

In a school basketball league, $40 \%$ of the participants are experienced players ($E$) and the rest are beginners ($P$). It is known that $80 \%$ of the experienced players reach the final ($F$), whereas only $20 \%$ of the beginners do so.

If we choose a participant at random and know that they are a beginner, what is the probability that they reach the final? Express the result using conditional probability notation.

Solve
Practice★☆☆Not started
A study has been conducted on the reading habits of a group of students. The probability that a student reads digital press is $P(L) = 0.45$. The probability that they…

A study has been conducted on the reading habits of a group of students. The probability that a student reads digital press is $P(L) = 0.45$. The probability that they read digital press and also listen to news podcasts is $P(L \cap S) = 0.18$.

Find the probability that a student listens to news podcasts, given that they read digital press.

Solve

The multiplication rule: P(A∩B) = P(A)·P(B|A)

If you solve the definition for the intersection, you get the formula used to calculate probabilities in two-stage processes, such as draws without replacement.

Two-stage tree illustrating the multiplication rule: the probability of the first stage is multiplied by the conditional probability of the second. 1st stage: P(A) 2nd stage: 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
In a track relay event, the first runner has a probability of $0.8$ of completing her leg without a penalty. The second runner, independently of the first, has a…

In a track relay event, the first runner has a probability of $0.8$ of completing her leg without a penalty. The second runner, independently of the first, has a probability of $0.7$.

  1. a) What is the probability that both complete their leg without a penalty?
  2. b) Given that at least one of the two has completed her leg without a penalty, what is the probability that the first runner succeeded?
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 color, 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 from a contingency table

Contingency table for TikTok and Instagram: the conditional probability divides the intersection cell by the total of the condition's column. Instagram No Instagram Total TikTok No TikTok Total 60 60 120 40 40 80 100 100 200 P(T|I) = 60 / 100 (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 conducted on 200 students at a high school regarding social media use, it was observed that 120 use TikTok, 100 use Instagram, and 60 use both platforms. If…

In a survey conducted on 200 students at a high 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 center 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 center 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

Problems 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 union, the intersection and the outside region from De Morgan's laws. AB outside both circles: 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
In a sports clothing shop, $60 \%$ of sales are running shoes ($Z$) and $40 \%$ are basketball shoes ($B$). $20 \%$ of buyers of running shoes also purchase technical…

In a sports clothing shop, $60 \%$ of sales are running shoes ($Z$) and $40 \%$ are basketball shoes ($B$). $20 \%$ of buyers of running shoes also purchase technical socks ($C$).

If a customer has bought running shoes, what is the probability that they have not bought technical socks? (Remember the complementary event property in conditional probability).

Solve
Practice★★☆Not started
In a book club, $70\%$ of the members read mystery novels and $45\%$ read essays. Furthermore, it is known that $30\%$ of the members read both types of books. If we…

In a book club, $70\%$ of the members read mystery novels and $45\%$ read essays. Furthermore, it is known that $30\%$ of the members read both types of books. If we select a member who we know does not read essays, what is the probability that they do read mystery novels?

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

Conditional probabilities in two stages

Many problems give the data the other way around: they tell you $P(B|A)$ and ask for $P(A|B)$. You solve this with a tree and the two previous formulas: first you obtain $P(B)$ by adding the paths that lead to $B$, and then you divide.

Practice★★☆Not started
A streetwear brand manufactures its hoodies in two different workshops. Workshop $A$ produces $60\%$ of the garments and workshop $B$ the rest. It is known that $5\%$ of…

A streetwear brand manufactures its hoodies in two different workshops. Workshop $A$ produces $60\%$ of the garments and workshop $B$ the rest. It is known that $5\%$ of the hoodies from workshop $A$ have a stitching defect, whereas in workshop $B$ the percentage of defects is $8\%$. A hoodie is chosen at random from the shop and turns out to be defective. Calculate the probability that it was manufactured in workshop $A$.

Solve
Practice★★☆Not started
A screening test for a rare disease, which affects $1\%$ of the population, gives a positive result in $96\%$ of patients with the disease (sensitivity). However, it…

A screening test for a rare disease, which affects $1\%$ of the population, gives a positive result in $96\%$ of patients with the disease (sensitivity). However, it also gives a "false positive" in $2\%$ of healthy people.

  1. a) Calculate the probability that a randomly chosen person tests positive.
  2. b) If a person's test result is positive, what is the actual probability that they have the disease?
0.01 0.99 0.96 0.04 0.02 0.98 Diseased (E) Healthy (S) Positive (+) Negative (-) Positive (+) Negative (-) 0.01 · 0.96 = 0.0096 0.01 · 0.04 = 0.0004 0.99 · 0.02 = 0.0198 0.99 · 0.98 = 0.9702
Solve
Practice★★★Not started
In a gym, $60 \%$ of members have a "Monthly" membership ($S_1$) and the rest an "Annual" membership ($S_2$). It is known that $15 \%$ of members with a monthly…

In a gym, $60 \%$ of members have a "Monthly" membership ($S_1$) and the rest an "Annual" membership ($S_2$). It is known that $15 \%$ of members with a monthly membership cancel before the end of the first month, whereas among members with an annual membership only $5 \%$ cancel in that period.

If we randomly select a member who has cancelled before the first month, calculate the probability that they had a monthly membership.

0.60 0.40 0.15 0.85 0.05 0.95 Standard (S₁) Premium (S₂) Cancels (C) Continues (C') Cancels (C) Continues (C') P(S₁ ∩ C) = 0.09 P(S₁ ∩ C') = 0.51 P(S₂ ∩ C) = 0.02 P(S₂ ∩ C') = 0.38
Solve
Practice★★★Not started
A study on digital habits among teenagers reveals that $70 \%$ of the students at a school use a microblogging social network ($M$). It is known that $40 \%$ of the…

A study on digital habits among teenagers reveals that $70 \%$ of the students at a school use a microblogging social network ($M$). It is known that $40 \%$ of the users of that network have experienced digital fatigue ($F$), while among those who do not use it, the percentage of digital fatigue drops to $10 \%$.

The following tree diagram shows these data on each branch:

Tree diagram with social network use (M) and digital fatigue (F), with the probabilities of each branch0.700.300.400.600.100.90Uses network (M)Doesn't use (M')Fatigue (F)No fatigue (F')Fatigue (F)No fatigue (F')

Calculate the following probabilities:

  1. a) The probability that a randomly chosen student does not use the social network and does not have digital fatigue.
  1. b) If a student states that they have digital fatigue, what is the probability that they are not a user of that social network?
  1. c) Are the events «being a user of the social network» and «having digital fatigue» independent? Justify your answer mathematically.
Solve
Practice★★★Not started
A smartphone components factory uses three machines, $A$, $B$ and $C$, to produce a specific part. Machine $A$ produces $45 \%$ of the total, $B$ produces $30 \%$ and…

A smartphone components factory uses three machines, $A$, $B$ and $C$, to produce a specific part. Machine $A$ produces $45 \%$ of the total, $B$ produces $30 \%$ and $C$ the rest. It has been found that $2 \%$ of the parts from $A$ are defective, $3 \%$ of those from $B$, and $5 \%$ of those from $C$.

If a part is chosen at random and turns out to be defective, determine with reasons which machine is most likely to have manufactured it. To do so, calculate the three posterior probabilities using Bayes' Theorem.

Solve
Practice★★★Not started
In the selection process for a school exchange program, a student must pass two consecutive stages. The probability of passing the first stage is $0.7$. If they pass the…

In the selection process for a school exchange program, a student must pass two consecutive stages. The probability of passing the first stage is $0.7$. If they pass the first stage, the probability of passing the second is $0.6$. However, if they do not pass the first stage, they have a "second-chance" opportunity where the probability of passing the second stage drops to $0.2$.

  1. Calculate the probability that the student passes the second stage.

  2. Given that the student has passed the second stage, what is the probability that they had NOT passed the first stage originally?

Solve
Practice★★★Not started
A health center carries out a screening test for a food intolerance that affects $2 \%$ of the population. The test is not perfect: it tests positive in $98 \%$ of…

A health center carries out a screening test for a food intolerance that affects $2 \%$ of the population. The test is not perfect: it tests positive in $98 \%$ of people who actually suffer from the intolerance, but it also gives a "false positive" in $3 \%$ of healthy people.

If a teenager takes the test and the result is positive:

  1. What is the probability that they are actually intolerant?

  2. Interpret the result obtained in relation to the efficacy of the test for mass screening in populations where the prevalence of the condition is very low.

0.02 0.98 0.98 0.02 0.03 0.97 Population Intolerant Healthy Test (+) Test (-) Test (+) Test (-) P(I∩+) = 0.02 · 0.98 = 0.0196 (True Positive) P(I∩-) = 0.02 · 0.02 = 0.0004 P(S∩+) = 0.98 · 0.03 = 0.0294 (False Positive) P(S∩-) = 0.98 · 0.97 = 0.9506 Total Positive Cases
Solve
Practice★★★Not started
In a Year 13 class, $60 \%$ of the students are female. It is known that $80 \%$ of the female students passed the last mathematics exam, while the pass rate among male…

In a Year 13 class, $60 \%$ of the students are female. It is known that $80 \%$ of the female students passed the last mathematics exam, while the pass rate among male students was $x \%$.

If the probability that a randomly chosen person from the class passed the exam is $0.74$, calculate the value of $x$ (pass rate among male students). Then, calculate the probability that a randomly chosen person is male, given that they failed the exam.

Solve

Back to the beginning: the overall probability of canceling is $P(B)$, over all members. If we know the member has a monthly plan ($M$), it becomes $P(B|M) = \frac{P(B \cap M)}{P(M)}$: the sample space is reduced to those with that plan.

Summary

See all the exercises in this section