Conditional Probability

Let's look at conditional probability, with some calculations and examples.

Get started

Millions of flashcards designed to help you ace your studies

Sign up for free

Need help?
Meet our AI Assistant

Upload Icon

Create flashcards automatically from your own documents.

   Upload Documents
Upload Dots

FC Phone Screen

Need help with
Conditional Probability?
Ask our AI Assistant

Review generated flashcards

Sign up for free
You have reached the daily AI limit

Start learning or create your own AI flashcards

StudySmarter Editorial Team

Team Conditional Probability Teachers

  • 11 minutes reading time
  • Checked by StudySmarter Editorial Team
Save Article Save Article
Contents
Contents

Jump to a key chapter

    Conditional probability can be defined as the likelihood of an event B happening given the fact that an event A has already happened. It means that event B is dependent on event A, or that event A is a condition for event B to happen.

    What is Conditional Probability?

    The probability for the occurrence of events that have some kind of condition is a conditional probability. Here one of the events is usually dependent on the other event. The event happening later is dependent on the occurrence of the first event So to find the probability of the latter event the probability of the first event. Hence the first event is a normal probability, but the second event is the conditional probability.

    The likelihood of an event B happening, given the fact that an event A has already happened is known as conditional probability.

    So event A is considered as a condition for event B to happen. Or in other words, the probability of event B is dependent on the probability of event A. We denote this conditional probability as \(P(B|A)\).

    Also, note that it is not stated that both events occur simultaneously nor do both the events always have casual relationships.

    A box contains 3 balls - red, white and black. And if it is asked to find the probability of getting a black ball after getting a red ball.

    Then here event A will be getting the red ball. And event B will be getting a black ball which is dependent on event A.

    Independent events are the events in which the probability of event A and event B does not have any effects on each other. So the outcome of both the events has no influence on each other. Therefore, the probability of independent events is the product of the probability of individual events A and B.

    \[P(A \text{ and } B) = P(A) \cdot P(B)\]

    And, if the probability of event B is dependent on the happening of event A, then events A and B are called dependent events. As there is some condition applied to finding the probability, the formula of dependent events has a conditional probability term.

    \[P (A \text{ and } B) = P(A) \cdot P(B|A)\]

    How to calculate conditional probability

    There is a formula we can use to find the probability of B given A has already occurred:

    \[P(B|A) = \frac{P(A\cap B)}{P(A)}\]

    Where:

    P(B|A) is the probability of B given A

    P(A∩B) is the probability of both A and B occurring and

    P(A) is the probability of A occurring

    In an international school, there are 32 pupils in one particular class. 5 of them are Italian. 3 of the Italian students are boys. A student is picked at random from the class. What is the probability of that student being a boy given that the student is Italian?

    In this case, we are looking for P(boy | Italian). Using the formula above,

    \(P(\text{boy | Italian})= \frac{P(\text{Italian and boy})}{P(\text{Italian})}\)

    The probability that a student is Italian and is a boy is \(\frac{3}{32} = 0.09375\)

    The probability that a student is Italian is \(\frac{5}{32} = 0.15635\)

    Therefore, the probability that a student is a boy and is Italian is:

    \(P(\text{boy | Italian})= \frac{0.09375}{0.15625} = 0.6 \text{ or } 60\%\).

    Conditional probability tree diagram

    A Tree Diagram can be a useful way to visualise and solve problems that contain conditional probabilities. What we need to do is draw the first two branches for event A and then the 4 branches for event B.

    For example, let's imagine we had a bag containing 10 sweets that were either strawberry or lemon flavoured. We then picked one random sweet from the bag, ate it and then picked another one. If we knew that there were 6 strawberry sweets at the start, we could start drawing a tree diagram showing the probabilities of picking either lemon or strawberry sweets. The first time we picked, the probability of picking a strawberry sweet would be 6/10 or 0.6 and hence the probability of picking a lemon sweet has to be \(1-0.6=0.4\). From this, we can draw the first branches of our tree diagram.

    probability conditional probability tree diagram studysmarterFirst branches of tree diagram showing the probability of picking a strawberry or lemon sweet from a bag

    Now, what happens for the second sweet we pick? Remember that the first sweet we picked was not put back into the bag so the total number of sweets in the bag is now 9 and the flavour picked on the second draw is dependent on the flavour picked in the first draw. If on the first pick, we took a strawberry sweet, there will only be 5 strawberry sweets left in the bag so the probability of picking a strawberry sweet now would be 5/9=0.556 and the probability of picking a lemon sweet would be \(1 - 0.556= 0.444\)

    However, if in the first pick we took a lemon sweet, there will now be 6 strawberry and 3 lemon sweets left. So the probability of picking a strawberry sweet in this situation is \(\frac{6}{9} =0.667\) and the probability of picking a lemon sweet is \(1-0.667 = 0.333\). We can now draw the next four branches in our tree diagram:

    probability conditional probability tree diagram studysmarterTree diagram showing the probability of picking 2 sweets from a bag containing strawberry and lemon sweets

    The four branches we drew represent the conditional probabilities of different events. The first one from the top gives the probability of picking strawberry (S) given that strawberry was already picked the first time, so \(P(S_2 | S_1) = 0.556\). This same logic can be applied to all the following branches, giving \(P(L |S) = 0.444, \space P(S|L) = 0.667 \text{ and } P(L_2 | L_1) = 0.333\).

    Conditional Probability Properties

    The conditional probability properties mentioned here are all based on the formula above.

    Here P(S) is the probability of the sample space and P(A) and P(B) are the probabilities of events A and B respectively.

    • \(P(S|A) = P(A|A) = 1\)

    • If P(X) is any event such that \(P(E) ≠ 0\), then \(P((A \cup B)|X) = P(A|X) + P(B|X) - P((A \cap B)|X)\)

    • \(P(B'|A) = 1 -P(B|A)\). Here B’ is the complement set of B.

    Conditional probability Venn diagram

    Venn diagrams are another method we can use to solve conditional probability problems. To draw a Venn diagram, we need to know the probability of event A, the probability of event B and the probability of A and B. For example, a survey was conducted on 65 people asking about the flavours of ice cream they liked. 30 people said they like only chocolate (C), 20 people said they liked only vanilla (V), 10 people liked both and the rest liked neither.

    From this, we know that the probability that someone only likes chocolate is \(\frac{30}{65}=0.462\). The probability that someone likes both vanilla and chocolate is \(P(C\cap V)=\frac{10}{65}=0.154\). The probability that someone likes neither is \(65-\frac{(30+20+10)}{65} = 0.0769\). We can draw the following Venn diagram:

     probability conditional probability venn diagram studysmarterVenn diagram showing the probability of people liking chocolate and vanilla ice cream.

    Note that adding all the probabilities on a Venn diagram should always equal 1.

    From this, we can use the formula \(P(B |A) = \frac{P(A \cap B)}{P(A)}\) to find the probability that someone likes chocolate ice cream given that they like vanilla:

    \(P(C |V) = \frac{P(C \cap V)}{P(V)}\).

    We already know that \(P(C\cap V)= 0.154\). P(V) will be the sum of the probabilities of someone liking just vanilla and someone likes both vanilla and chocolate. \(P(V)=0.308+0.154=0.462\). So,

    \(P(C|V) = \frac{0.154}{0.462} = 0.333\).

    The probability that Tom starts to smoke is 0.2. The probability that he starts smoking and then develops lung cancer is 0.15. What is the probability that he develops lung cancer given that he started smoking?

    From this, we already know that P(A)=0.2 and \(P(A \cap B) = 0.15\). The question asks for the probability that Tom develops lung cancer given that he has started smoking, so that is \(P(B|A)\). Using the conditional probability formula, we can work out that \(P(B|A) = \frac{P(A \cap B)}{P(A)} = \frac{0.15}{0.2} = 0.75\). So the probability that Tom develops lung cancer if he starts smoking is 75%.

    Bayes theorem for conditional probability

    Bayes theorem states that \(P(B|A) = \frac{P(A|B)}{P(A)}P(B)\)

    This theorem can be proved by using the equations we used before. We know that \(P(B|A) = \frac{P(A \cap B)}{P(A)}\) and \(P(A|B) = \frac{P(A \cap B)}{P(B)}\).

    If we rearrange both equations to find expressions for \(P(A \cap B)\), we get \(P(A \cap B) = P(B|A)P(A)\) and \(P(A \cap B) = P(A|B)P(B)\) . We can now equate the right-hand side of both of these expressions, so \(P(B|A)P(A) = P(A|B)P(B)\), therefore, \(P(B|A) = \frac{P(A|B)}{P(A)} P(B)\)

    50% of rainy days start off cloudy. 40% of all days start cloudy. In a particular month, it rains 3 out of 30 days. What is the probability that for a day during this month it rains given that the day starts cloudy?

    We know that \(P(cloud | rain) = 0.5, \space P(cloud) = 0.4 \text{ and } P(rain) = \frac{3}{30} = 0.1\)

    From Bayes theorem, we know that \(P(B|A) = \frac{P(A|B)}{P(A)}P(B)\). Therefore,

    \(P(rain|cloud) = \frac{P(cloud|rain)}{P(cloud)}P(rain) = \frac{0.5}{0.4} \cdot 0.1 = 0.125\)

    So the probability that it rains given that it's cloudy is 12.5%.

    A professor gives an A to 20% of their students. Of those, 70% got an A on the midterm exam. And of those students who didn't get a final grade of A, 10% earned an A on the midterm exam. Find the probability that a student with an A on the midterm exam will obtain a final grade of A.

    Let Af represent obtaining an A on the final exam and Amobtaining an A on the midterm exam. From the question, we can deduce that \(P(A_f) = 0.2\) and \(P(A_m|A_f) = 0.7\)

    The question asks us to calculate \(P(A_f|A_m)\), which we can find with the formula \(P(A_f |A_m) = \frac{P(A_m |A_f)}{P(A_m)}P(A_f)\). We still however need to find to solve this equation. We know that 70% of the 20% of students that obtained A on the final exam also got an A on the midterm. This corresponds to \(0.2 \cdot 0.7 = 0.14 = 14\%\) of students. And from the 80% of students that did not get an A on the final exam, 10% still got an A on the midterm. This is \(0.8 \cdot 0.1 = 0.08 = 8\%\) of students. So the total percentage of students that obtained an A on the midterm exam is \(14\%+8\% = 22\%\). Therefore, \(P(A_m) = 0.22\). We can now plug in all the numbers in the equation above, which gives \(P(A_f|A_m) = \frac{0.7}{0.22} \cdot 0.2 = 0.64\)

    Conditional Probability - Key takeaways

    • Conditional probability is the probability of an event B occurring given that another event A has already occurred.

    • In conditional probability, event B is dependent on event A

    • The formula for the probability of B occurring given A is \(P(B|A) = \frac{P(A \cap B)}{P(A)}\)

    • Tree diagrams and Venn diagrams can also be used to find conditional probability

    • Bayes theorem states that \(P(B|A) = \frac{P(A|B)}{P(A)}P(B)\)

    Conditional Probability Conditional Probability
    Learn with 0 Conditional Probability flashcards in the free StudySmarter app

    We have 14,000 flashcards about Dynamic Landscapes.

    Sign up with Email

    Already have an account? Log in

    Frequently Asked Questions about Conditional Probability

    What is conditional probability?

    Conditional probability is the probability of an event B occurring given that another event A has already occurred.

    Can conditional probability be greater than 1?

    No, conditional probability can never be greater than 1. In fact, no probability can ever be greater than 1.

    How do you calculate conditional probability?

    Conditional probability can be calculated using the following formula: P(B|A)=P(A∩B)/P(A)

    Save Article

    Discover learning materials with the free StudySmarter app

    Sign up for free
    1
    About StudySmarter

    StudySmarter is a globally recognized educational technology company, offering a holistic learning platform designed for students of all ages and educational levels. Our platform provides learning support for a wide range of subjects, including STEM, Social Sciences, and Languages and also helps students to successfully master various tests and exams worldwide, such as GCSE, A Level, SAT, ACT, Abitur, and more. We offer an extensive library of learning materials, including interactive flashcards, comprehensive textbook solutions, and detailed explanations. The cutting-edge technology and tools we provide help students create their own learning materials. StudySmarter’s content is not only expert-verified but also regularly updated to ensure accuracy and relevance.

    Learn more
    StudySmarter Editorial Team

    Team Math Teachers

    • 11 minutes reading time
    • Checked by StudySmarter Editorial Team
    Save Explanation Save Explanation

    Study anywhere. Anytime.Across all devices.

    Sign-up for free

    Sign up to highlight and take notes. It’s 100% free.

    Join over 22 million students in learning with our StudySmarter App

    The first learning app that truly has everything you need to ace your exams in one place

    • Flashcards & Quizzes
    • AI Study Assistant
    • Study Planner
    • Mock-Exams
    • Smart Note-Taking
    Join over 22 million students in learning with our StudySmarter App
    Sign up with Email