Aimathic
Login | English | Deutsch

Free math worksheets

Build your own math worksheets from 30,000+ problems for grades 3 to 12, from fractions to AP Calculus. Every problem comes with step-by-step solutions.

Conditional probability

Click problems to add them to your worksheet.

52207910
A movie-theater survey records whether a customer buys popcorn and whether the customer buys a drink. Let \(P\) be the event “the customer buys popcorn,” and let \(D\) be the event “the customer buys a drink.” Match each description with \(P(P\cap D)\), \(P(D\mid P)\), or \(P(P\mid D)\). 1. What is the probability that a randomly selected customer buys both popcorn and a drink? 2. Among customers who buy a drink, what proportion also buy popcorn? 3. What is the probability that a customer who buys popcorn also buys a drink?

Hints

- Decide whether each statement refers to all surveyed customers or only to a subgroup. - Words such as “both” indicate an intersection. - Phrases such as “among customers who” indicate a condition. - In \(P(A\mid B)\), the event after the vertical bar is the condition.

Solution

1. The question asks for the probability that both events occur, so the expression is \(P(P\cap D)\). 2. Buying a drink is the condition, and buying popcorn is the event of interest, so the expression is \(P(P\mid D)\). 3. Buying popcorn is the condition, and buying a drink is the event of interest, so the expression is \(P(D\mid P)\).

Answer

1. \(P(P\cap D)\) 2. \(P(P\mid D)\) 3. \(P(D\mid P)\)
55588510
In \(P(A\mid B)\), which event determines the group you restrict attention to: \(A\) or \(B\)? State what \(P(A\mid B)\) means in words.

Hints

- Look at the event written after the vertical bar. - Conditional probability changes the reference group rather than the event being counted.

Solution

1. The event after the vertical bar is the condition, so the restricted group is \(B\). 2. \(P(A\mid B)\) is the probability that \(A\) occurs among outcomes for which \(B\) has occurred.

Answer

The restricted group is \(B\). \(P(A\mid B)\) is the probability of \(A\) given that \(B\) has occurred.
55588610
A chess club has \(12\) members. Of those \(12\) chess-club members, \(3\) are also in the robotics club. Let \(C\) mean “in the chess club” and \(R\) mean “in the robotics club.” Find \(P(R\mid C)\).

Hints

- Use only the members in the group named after the vertical bar. - Within that group, count how many also satisfy the first event.

Solution

1. Conditioning on \(C\) means the reference group is the \(12\) chess-club members. 2. Within that group, \(3\) are also in \(R\), so \(P(R\mid C)=\frac{3}{12}=\frac{1}{4}\).

Answer

\(P(R\mid C)=\frac{1}{4}=0.25\).
52208010
At a high school, let \(I\) be the event “a student plays an instrument,” and let \(C\) be the event “a student sings in the choir.” A survey gives \(P(I)=0.45\), \(P(C)=0.30\), and \(P(I\cap C)=0.18\). a) Find \(P(C\mid I)\). b) Interpret your answer to part a in context. c) Find the probability that a choir member also plays an instrument.

Hints

- Use \(P(A\mid B)=\frac{P(A\cap B)}{P(B)}\). - For the interpretation, identify the group named by the condition and the portion of that group being measured. - In part c, pay attention to which event is the condition.

Solution

1. Use the definition of conditional probability: \(P(C\mid I)=\frac{P(I\cap C)}{P(I)}=\frac{0.18}{0.45}=0.40\). 2. This means that \(40\%\) of the students who play an instrument also sing in the choir. 3. Reverse the condition for part c: \(P(I\mid C)=\frac{P(I\cap C)}{P(C)}=\frac{0.18}{0.30}=0.60\).

Answer

a) \(P(C\mid I)=0.40\) b) Of the students who play an instrument, \(40\%\) also sing in the choir. c) \(P(I\mid C)=0.60\), or \(60\%\).
53753610
Use the tree diagram of counts to find all six branch probabilities.
Figure for problem 537536

Hints

- Divide each child count by its parent count. - The probabilities on branches from the same node must add to \(1\).

Solution

1. At the first stage, \(P(A)=\frac{300}{500}=0.60\) and \(P(A^c)=\frac{200}{500}=0.40\). 2. After \(A\), \(P(B\mid A)=\frac{180}{300}=0.60\) and \(P(B^c\mid A)=\frac{120}{300}=0.40\). 3. After \(A^c\), \(P(B\mid A^c)=\frac{50}{200}=0.25\) and \(P(B^c\mid A^c)=\frac{150}{200}=0.75\).

Answer

First stage: \(0.60\), \(0.40\) After \(A\): \(0.60\), \(0.40\) After \(A^c\): \(0.25\), \(0.75\)
55588710
The Venn diagram shows counts for two events \(A\) and \(B\). a) Find \(P(A\mid B)\). b) Find \(P(B\mid A)\). c) Explain why the two probabilities are different even though both use the same overlap.
Figure for problem 555887

Hints

- For each part, identify the circle named after the vertical bar. - The overlap supplies the favorable outcomes in both directions. - Compare the sizes of the two conditioned groups.

Solution

1. Event \(B\) contains \(6+14=20\) outcomes, of which \(6\) are also in \(A\). Thus, \(P(A\mid B)=\frac{6}{20}=0.30\). 2. Event \(A\) contains \(10+6=16\) outcomes, of which \(6\) are also in \(B\). Thus, \(P(B\mid A)=\frac{6}{16}=0.375\). 3. The numerator is the same overlap count, but the conditioned groups have different sizes, so the denominators differ.

Answer

a) \(P(A\mid B)=0.30\) b) \(P(B\mid A)=0.375\) c) Both use the overlap count \(6\), but \(B\) has \(20\) outcomes while \(A\) has \(16\).
51475810
At a high school, students enroll in world-language courses. Let event \(S\) mean “a student studies Spanish,” and let event \(F\) mean “a student studies French.” Suppose \(P(S)=0.8\), \(P(F\mid S)=0.25\), and \(P(S\mid F)=1\). a) Find \(P(S\cap F)\) and \(P(F)\). b) Interpret \(P(S\mid F)=1\) in this context.

Hints

- What does a conditional probability of \(1\) tell you about the relationship between two events? - How are a joint probability, a conditional probability, and a marginal probability related? - Look for a formula that contains three of the given or unknown quantities.

Solution

1. Use the multiplication rule: \(P(S\cap F)=P(F\mid S)\cdot P(S)=0.25\cdot 0.8=0.20\). 2. Since \(P(S\mid F)=\frac{P(S\cap F)}{P(F)}\), substitute the known values: \(1=\frac{0.20}{P(F)}\). Therefore, \(P(F)=0.20\). 3. A conditional probability of \(1\) means that every student who studies French also studies Spanish.

Answer

a) \(P(S\cap F)=0.20\) and \(P(F)=0.20\). b) Every student who studies French also studies Spanish.
52208410
A smartphone quality check records two types of defects: a display defect \((D)\) and a case scratch \((S)\). The data show that \(12\%\) of phones have a display defect, \(8\%\) have a case scratch, and \(85\%\) have neither defect. a) Find the probability that a randomly selected phone has both defects. b) Given that a phone has a case scratch, find the probability that it also has a display defect.

Hints

- Use the probability of neither defect to find the probability of at least one defect. - Apply the addition rule for two events. - In part b, the scratched phones form the denominator.

Solution

1. The probability of at least one defect is \(P(D\cup S)=1-0.85=0.15\). 2. By the addition rule, \(P(D\cap S)=P(D)+P(S)-P(D\cup S)=0.12+0.08-0.15=0.05\). 3. Therefore, \(P(D\mid S)=\frac{P(D\cap S)}{P(S)}=\frac{0.05}{0.08}=0.625\).

Answer

a) \(0.05\), or \(5\%\). b) \(P(D\mid S)=0.625\), or \(62.5\%\).
52208510
A fair six-sided die is rolled twice. a) Find the probability that the sum is \(10\). b) Given that the sum is even, find the probability that the sum is \(10\). c) Given that both rolls are even, find the probability that the sum is \(10\).

Hints

- How many ordered outcomes are possible when a die is rolled twice? - List the ordered pairs whose sum is \(10\). - For a conditional probability, restrict the sample space to outcomes that satisfy the condition. - Determine systematically which outcomes satisfy “the sum is even” and “both rolls are even.”

Solution

1. There are \(6\cdot 6=36\) equally likely ordered outcomes. A sum of \(10\) occurs for \((4, 6)\), \((5, 5)\), and \((6, 4)\), so the probability is \(\frac{3}{36}=\frac{1}{12}\). 2. An even sum occurs when both rolls have the same parity, giving \(18\) outcomes. All three outcomes with sum \(10\) are included, so the conditional probability is \(\frac{3}{18}=\frac{1}{6}\). 3. If both rolls are even, the restricted sample space has \(3\cdot 3=9\) outcomes. Only \((4, 6)\) and \((6, 4)\) have sum \(10\), so the conditional probability is \(\frac{2}{9}\).

Answer

a) \(\frac{1}{12}\) b) \(\frac{1}{6}\) c) \(\frac{2}{9}\)
52208610
A bag contains eight tokens labeled \(1\) through \(8\). Two tokens are drawn in order without replacement. a) Find the probability that the sum of the two numbers is \(9\). b) Given that the sum is odd, find the probability that the sum is \(9\). c) Given that the first token shows a prime number, find the probability that the sum is \(9\).

Hints

- Without replacement, the same label cannot appear twice. - How many ordered pairs are possible? - When is the sum of two integers odd? - Which numbers from \(1\) through \(8\) are prime? - Once the first token is fixed, how many choices remain for the second token?

Solution

1. There are \(8\cdot 7=56\) equally likely ordered outcomes. The outcomes with sum \(9\) are \((1, 8)\), \((2, 7)\), \((3, 6)\), \((4, 5)\), \((5, 4)\), \((6, 3)\), \((7, 2)\), and \((8, 1)\). Thus, the probability is \(\frac{8}{56}=\frac{1}{7}\). 2. An odd sum occurs when one number is odd and the other is even. There are \(4\cdot 4+4\cdot 4=32\) such ordered outcomes. All \(8\) outcomes with sum \(9\) satisfy the condition, so the conditional probability is \(\frac{8}{32}=\frac{1}{4}\). 3. The prime labels are \(2, 3, 5, 7\), so there are \(4\cdot 7=28\) outcomes in which the first token is prime. The favorable outcomes are \((2, 7)\), \((3, 6)\), \((5, 4)\), and \((7, 2)\). Therefore, the conditional probability is \(\frac{4}{28}=\frac{1}{7}\).

Answer

a) \(\frac{1}{7}\) b) \(\frac{1}{4}\) c) \(\frac{1}{7}\)
52211510
A company is studying a screening test for an allergy. Let \(A\) be the event “the allergy is present,” and let \(T\) be the event “the screening test is positive.” a) Describe each conditional probability in context. (1) \(P(T\mid A)\) (2) \(P(T^c\mid A)\) (3) \(P(T^c\mid A^c)\) (4) \(P(A\mid T)\) (5) \(P(A^c\mid T)\) (6) \(P(A^c\mid T^c)\) b) A person has received a test result. Which probability from part a should be large for the person to have confidence in a positive result? Which should be large for confidence in a negative result? Explain.

Hints

- In \(P(X\mid Y)\), first identify what is already known: the event after the vertical bar. - A superscript \(^c\) denotes an event's complement. - For part b, focus on the actual condition after the test result is known. - Ask what the person wants to know about the true allergy status after seeing the result.

Solution

1. \(P(T\mid A)\) is the probability of a positive test when the allergy is present. 2. \(P(T^c\mid A)\) is the probability of a negative test even though the allergy is present. 3. \(P(T^c\mid A^c)\) is the probability of a negative test when the allergy is absent. 4. \(P(A\mid T)\) is the probability that the allergy is present when the test is positive. 5. \(P(A^c\mid T)\) is the probability that the allergy is absent even though the test is positive. 6. \(P(A^c\mid T^c)\) is the probability that the allergy is absent when the test is negative. 7. For confidence in a positive result, \(P(A\mid T)\) should be large. For confidence in a negative result, \(P(A^c\mid T^c)\) should be large.

Answer

a) (1) A positive test given that the allergy is present. (2) A negative test given that the allergy is present. (3) A negative test given that the allergy is absent. (4) The allergy is present given a positive test. (5) The allergy is absent given a positive test. (6) The allergy is absent given a negative test. b) For a positive result, \(P(A\mid T)\) should be large. For a negative result, \(P(A^c\mid T^c)\) should be large.
52211610
At a glass-bottle factory, a sensor checks each bottle for cracks. Let \(C\) be the event “the bottle has a crack,” and let \(S\) be the event “the sensor reports a defect.” Write each conditional probability using \(P(X\mid Y)\). a) A cracked bottle is reported acceptable. b) A bottle without a crack is reported defective. c) A bottle reported defective actually has a crack. d) A bottle reported acceptable actually has no crack. e) A cracked bottle is reported defective. f) A bottle reported defective actually has no crack. g) Which two probabilities above are the sensor's error rates? State whether each error rate should be small or large. h) Explain why \(P(C\mid S)\) and \(P(S\mid C)\) answer different questions.

Hints

- In \(P(X\mid Y)\), first identify the group described after words such as “among,” “given,” or “reported.” - Decide which event describes the group being restricted and place that event after the vertical bar. - For the error-rate question, distinguish an incorrect sensor report from a correct one.

Solution

1. In a conditional probability \(P(X\mid Y)\), the event after the vertical bar identifies the group being considered. 2. For a), the group is cracked bottles, and the event of interest is being reported acceptable. This gives \(P(S^c\mid C)\). 3. For b), the group is bottles without cracks, and the event of interest is being reported defective. This gives \(P(S\mid C^c)\). 4. For c), the group is bottles reported defective, and the event of interest is actually having a crack. This gives \(P(C\mid S)\). 5. For d), the group is bottles reported acceptable, and the event of interest is actually having no crack. This gives \(P(C^c\mid S^c)\). 6. For e), the group is cracked bottles, and the event of interest is being reported defective. This gives \(P(S\mid C)\). 7. For f), the group is bottles reported defective, and the event of interest is actually having no crack. This gives \(P(C^c\mid S)\). 8. The sensor's two error rates are \(P(S^c\mid C)\), the false-negative rate, and \(P(S\mid C^c)\), the false-positive rate. Both should be small. 9. \(P(C\mid S)\) asks what proportion of defect reports correspond to cracked bottles. \(P(S\mid C)\) asks what proportion of cracked bottles are reported defective. Their conditioned groups are different, so the probabilities need not be equal.

Answer

a) \(P(S^c\mid C)\) b) \(P(S\mid C^c)\) c) \(P(C\mid S)\) d) \(P(C^c\mid S^c)\) e) \(P(S\mid C)\) f) \(P(C^c\mid S)\) g) The error rates are \(P(S^c\mid C)\) and \(P(S\mid C^c)\). Both should be small. h) \(P(C\mid S)\) conditions on bottles reported defective, while \(P(S\mid C)\) conditions on cracked bottles. They answer different questions and need not be equal.
53753810
Given \(P(A)=0.4\), \(P(B\mid A)=0.7\), and \(P(B)=0.52\), find \(P(B\mid A^c)\).
Figure for problem 537538

Hints

- Split the total probability of \(B\) according to whether \(A\) occurs. - Find the known contribution through \(A\). - Use the remaining contribution and \(P(A^c)\) to find the missing conditional probability.

Solution

1. The contribution to \(P(B)\) through event \(A\) is \(P(A\cap B)=P(A)P(B\mid A)=0.4\cdot 0.7=0.28\). 2. The contribution through \(A^c\) is \(0.52-0.28=0.24\). 3. Since \(P(A^c)=0.6\), \(P(B\mid A^c)=0.24\div 0.6=0.4\).

Answer

\(P(B\mid A^c)=0.4\)
55588810
In a survey of \(60\) commuters, \(18\) ride a bicycle to work. Of those \(18\) bicycle commuters, \(12\) also leave home before \(7{:}00\) a.m. Let \(B\) mean “rides a bicycle” and \(E\) mean “leaves before \(7{:}00\) a.m.” Taylor writes \(P(E\mid B)=\frac{12}{60}\). Identify the error and find the correct value of \(P(E\mid B)\).

Hints

- Which group remains after the condition \(B\) is imposed? - The denominator in a conditional probability is the size of the conditioned group. - Compare the denominator Taylor used with the number of bicycle commuters.

Solution

1. Conditioning on \(B\) restricts the reference group to the \(18\) bicycle commuters, not all \(60\) commuters. 2. Within that group, \(12\) leave before \(7{:}00\) a.m., so \(P(E\mid B)=\frac{12}{18}=\frac{2}{3}\). 3. Taylor used the original sample size as the denominator instead of the size of the conditioned group.

Answer

Taylor used the wrong denominator. \(P(E\mid B)=\frac{12}{18}=\frac{2}{3}\approx 0.6667\).

All problems may be used, copied and printed free of charge for school and tutoring, including paid tutoring. Commercial adaptations as well as publication or redistribution on the internet are not permitted.