1. Home
  2. Explore
  3. Mathematics
  4. Bayes' Theorem Formulas

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Bayes' Theorem Formulas

  • 23Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Conditional Probability

State the formula for calculating the conditional probability of event A occurring given that event B has already occurred.

23 questions

  1. 1

    State the formula for calculating the conditional probability of event A occurring given that event B has already occurred.

    Model answer

    The probability of event A given B is P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​, where P(A∩B)P(A \cap B)P(A∩B) is the probability of both A and B occurring, and P(B)P(B)P(B) is the probability of event B occurring.

    Explanation

    This formula is fundamental to conditional probability. It states that to find the probability of A happening when B has already happened, you need to consider the probability that both A and B happen together (P(A∩B)P(A \cap B)P(A∩B)) and divide it by the total probability of B happening (P(B)P(B)P(B)). The intuition is that once B has occurred, the sample space for A is restricted to only those outcomes where B also occurs.

  2. 2

    How is the probability of events A and B occurring simultaneously, P(A∩B)P(A \cap B)P(A∩B), related to the conditional probability P(A∣B)P(A|B)P(A∣B) and the probability of event B, P(B)P(B)P(B)?

    Model answer

    The probability of A and B occurring simultaneously, P(A∩B)P(A \cap B)P(A∩B), is equal to the product of the probability of A given B, P(A∣B)P(A|B)P(A∣B), and the probability of B, P(B)P(B)P(B). That is, P(A∩B)=P(A∣B)×P(B)P(A \cap B) = P(A|B) \times P(B)P(A∩B)=P(A∣B)×P(B).

    Explanation

    This relationship is derived directly from the conditional probability formula. If P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​, multiplying both sides by P(B)P(B)P(B) isolates P(A∩B)P(A \cap B)P(A∩B), showing that the joint probability can be expressed using a conditional probability and a marginal probability. This is a crucial step in deriving Bayes' theorem.

  3. 3

    What is the core purpose of Bayes' Theorem?

    Model answer

    Bayes' Theorem helps calculate the conditional probability of an event, P(A∣B)P(A|B)P(A∣B), when the reverse conditional probability, P(B∣A)P(B|A)P(B∣A), and other probability values such as P(A)P(A)P(A) and P(B)P(B)P(B) are known.

    Explanation

    Bayes' Theorem provides a way to update our beliefs about an event's probability based on new evidence. For example, if we want to know the probability of having a disease given a positive test result (P(Disease∣PositiveTest)P(Disease|Positive Test)P(Disease∣PositiveTest)), Bayes' Theorem allows us to use information like the probability of a positive test given the disease (P(PositiveTest∣Disease)P(Positive Test|Disease)P(PositiveTest∣Disease)) and the general prevalence of the disease (P(Disease)P(Disease)P(Disease)).

  4. 4

    Write out the complete formula for Bayes' Theorem as presented.

    Model answer

    The formula for Bayes' Theorem is P(A∣B)=P(B∣A)×P(A)P(B)P(A|B) = \frac{P(B|A) \times P(A)}{P(B)}P(A∣B)=P(B)P(B∣A)×P(A)​.

    Explanation

    This formula connects the 'prior' probability of A (P(A)P(A)P(A)) and the 'likelihood' of B given A (P(B∣A)P(B|A)P(B∣A)) to calculate the 'posterior' probability of A given B (P(A∣B)P(A|B)P(A∣B)), normalized by the 'evidence' or marginal probability of B (P(B)P(B)P(B)). It's a powerful tool for inferential statistics.

  5. 5

    In the context of the example with numbers in a bottle, if event A is drawing numbers {1, 2, 3, 4, 5} and event B is drawing numbers {4, 5, 6, 7, 8, 9}, what is the sample space for this problem?

    Model answer

    The sample space consists of all natural numbers from 1 to 9, which are {1, 2, 3, 4, 5, 6, 7, 8, 9}.

    Explanation

    The sample space represents all possible outcomes in an experiment. In this case, since event A involves numbers up to 5 and event B involves numbers up to 9, and assuming these are the only numbers present, the union of these sets defines the complete set of possible outcomes.

  6. 6

    For the numbers in a bottle example (A={1,2,3,4,5}, B={4,5,6,7,8,9}), calculate the probability of event A, P(A)P(A)P(A).

    Model answer

    The probability of event A, P(A)P(A)P(A), is 59\frac{5}{9}95​ because there are 5 numbers in A and 9 total numbers in the sample space.

    Explanation

    Assuming each number has an equal chance of being drawn, the probability of an event is the number of favorable outcomes (elements in A) divided by the total number of possible outcomes (elements in the sample space). Event A has 5 numbers (1, 2, 3, 4, 5) out of a total of 9 numbers (1 to 9).

  7. 7

    For the numbers in a bottle example (A={1,2,3,4,5}, B={4,5,6,7,8,9}), calculate the probability of event B, P(B)P(B)P(B).

    Model answer

    The probability of event B, P(B)P(B)P(B), is 69\frac{6}{9}96​ (or 23\frac{2}{3}32​) because there are 6 numbers in B and 9 total numbers in the sample space.

    Explanation

    Similar to P(A)P(A)P(A), the probability of B is the number of elements in B divided by the total number of elements in the sample space. Event B has 6 numbers (4, 5, 6, 7, 8, 9) out of 9 total numbers.

  8. 8

    Using the numbers in a bottle example (A={1,2,3,4,5}, B={4,5,6,7,8,9}), determine the conditional probability P(B∣A)P(B|A)P(B∣A).

    Model answer

    The conditional probability P(B∣A)P(B|A)P(B∣A) is 25\frac{2}{5}52​, as there are 2 numbers common to A and B (4 and 5) out of the 5 numbers in A.

    Explanation

    To calculate P(B∣A)P(B|A)P(B∣A), we consider only the outcomes where A has occurred. Within event A (numbers 1, 2, 3, 4, 5), we count how many of those numbers are also in B. The numbers 4 and 5 are in both A and B. Since A has 5 elements, P(B∣A)=Number of elements in A and BNumber of elements in A=25P(B|A) = \frac{\text{Number of elements in A and B}}{\text{Number of elements in A}} = \frac{2}{5}P(B∣A)=Number of elements in ANumber of elements in A and B​=52​.

  9. 9

    Apply Bayes' Theorem to calculate P(A∣B)P(A|B)P(A∣B) for the numbers in a bottle example where P(A)=59P(A) = \frac{5}{9}P(A)=95​, P(B)=69P(B) = \frac{6}{9}P(B)=96​, and P(B∣A)=25P(B|A) = \frac{2}{5}P(B∣A)=52​.

    Model answer

    Using Bayes' Theorem, P(A∣B)=P(B∣A)×P(A)P(B)=(25)×(59)(69)=2969=26=13P(A|B) = \frac{P(B|A) \times P(A)}{P(B)} = \frac{(\frac{2}{5}) \times (\frac{5}{9})}{(\frac{6}{9})} = \frac{\frac{2}{9}}{\frac{6}{9}} = \frac{2}{6} = \frac{1}{3}P(A∣B)=P(B)P(B∣A)×P(A)​=(96​)(52​)×(95​)​=96​92​​=62​=31​.

    Explanation

    This calculation demonstrates the direct application of the Bayes' Theorem formula. By plugging in the pre-calculated probabilities, we simplify the expression to arrive at the conditional probability of A given B. The fives in the numerator cancel, and the nines also cancel, simplifying the fraction.

  10. 10

    Verify the result of P(A∣B)=13P(A|B) = \frac{1}{3}P(A∣B)=31​ from the numbers in a bottle example by using the direct conditional probability formula P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​.

    Model answer

    The intersection of A and B contains numbers {4, 5}, so P(A∩B)=29P(A \cap B) = \frac{2}{9}P(A∩B)=92​. Given P(B)=69P(B) = \frac{6}{9}P(B)=96​, then P(A∣B)=2969=26=13P(A|B) = \frac{\frac{2}{9}}{\frac{6}{9}} = \frac{2}{6} = \frac{1}{3}P(A∣B)=96​92​​=62​=31​, which confirms the Bayes' Theorem result.

    Explanation

    This step shows that Bayes' Theorem yields the same result as the basic conditional probability formula when all necessary components are available. The intersection of A and B includes numbers present in both sets, and its probability is found by dividing the count of common numbers by the total sample space size. Dividing this by P(B)P(B)P(B) gives the conditional probability.

  11. 11

    In a medical screening example, if 12% of men develop prostate cancer, what is the probability that a randomly selected man does not have prostate cancer?

    Model answer

    If 12% of men develop prostate cancer, then the probability that a man does not have prostate cancer is 1 - 0.12 = 0.88 or 88%.

    Explanation

    This is an application of the complement rule in probability. The probability of an event not occurring is 1 minus the probability of the event occurring. Since 'having cancer' and 'not having cancer' are mutually exclusive and exhaustive events, their probabilities must sum to 1.

  12. 12

    Given that a man has prostate cancer, what is the probability of a positive test result, and how is this written probabilistically?

    Model answer

    Given a man has prostate cancer, there is a 95% chance of a positive test result. This is written as P(Positive Test∣Cancer)=0.95P(\text{Positive Test} | \text{Cancer}) = 0.95P(Positive Test∣Cancer)=0.95.

    Explanation

    This is a direct conditional probability given in the problem statement. The condition 'given that the person has cancer' means that the probability space is restricted to only those individuals with cancer. The 95% represents the accuracy of the test for those who actually have the disease.

  13. 13

    A man without prostate cancer has a 6% chance of a false positive test result. How is this expressed using probability notation?

    Model answer

    This is expressed as P(Positive Test∣No Cancer)=0.06P(\text{Positive Test} | \text{No Cancer}) = 0.06P(Positive Test∣No Cancer)=0.06.

    Explanation

    This describes the rate of false positives: a positive test result occurring when the condition (cancer) is actually absent. The 'given that the person does not have prostate cancer' part makes it a conditional probability, focusing on the subset of the population without cancer.

  14. 14

    Using Bayes' Theorem, what is the formula to calculate the probability that a man has cancer given a positive test result, P(Cancer∣Positive Test)P(\text{Cancer} | \text{Positive Test})P(Cancer∣Positive Test)?

    Model answer

    The formula is P(Cancer∣Positive Test)=P(Positive Test∣Cancer)×P(Cancer)P(Positive Test)P(\text{Cancer} | \text{Positive Test}) = \frac{P(\text{Positive Test} | \text{Cancer}) \times P(\text{Cancer})}{P(\text{Positive Test})}P(Cancer∣Positive Test)=P(Positive Test)P(Positive Test∣Cancer)×P(Cancer)​.

    Explanation

    This is the direct application of Bayes' Theorem to the medical screening scenario. It allows us to reverse the conditioning: from knowing the test's accuracy given the true state (cancer or no cancer) to finding the probability of the true state given a test result.

  15. 15

    Explain how a tree diagram is useful in calculating the total probability of having a positive test result, P(Positive Test)P(\text{Positive Test})P(Positive Test), in the prostate cancer example.

    Model answer

    A tree diagram helps visualize the different paths leading to a positive test result: either having cancer and testing positive, or not having cancer and testing positive (a false positive). P(Positive Test)P(\text{Positive Test})P(Positive Test) is the sum of probabilities of these two mutually exclusive paths.

    Explanation

    The total probability of an event can often be found by summing the probabilities of all disjoint paths that lead to that event. In this case, P(Positive Test)=P(Positive Test and Cancer)+P(Positive Test and No Cancer)P(\text{Positive Test}) = P(\text{Positive Test and Cancer}) + P(\text{Positive Test and No Cancer})P(Positive Test)=P(Positive Test and Cancer)+P(Positive Test and No Cancer). Each of these joint probabilities can be calculated by multiplying along the branches of the tree diagram: P(Positive Test and Cancer)=P(Cancer)×P(Positive Test∣Cancer)P(\text{Positive Test and Cancer}) = P(\text{Cancer}) \times P(\text{Positive Test} | \text{Cancer})P(Positive Test and Cancer)=P(Cancer)×P(Positive Test∣Cancer) and P(Positive Test and No Cancer)=P(No Cancer)×P(Positive Test∣No Cancer)P(\text{Positive Test and No Cancer}) = P(\text{No Cancer}) \times P(\text{Positive Test} | \text{No Cancer})P(Positive Test and No Cancer)=P(No Cancer)×P(Positive Test∣No Cancer).

  16. 16

    Calculate P(Positive Test)P(\text{Positive Test})P(Positive Test) using the provided information: P(Cancer)=0.12P(\text{Cancer}) = 0.12P(Cancer)=0.12, P(Positive Test∣Cancer)=0.95P(\text{Positive Test} | \text{Cancer}) = 0.95P(Positive Test∣Cancer)=0.95, P(No Cancer)=0.88P(\text{No Cancer}) = 0.88P(No Cancer)=0.88, and P(Positive Test∣No Cancer)=0.06P(\text{Positive Test} | \text{No Cancer}) = 0.06P(Positive Test∣No Cancer)=0.06.

    Model answer

    P(Positive Test)=P(Positive Test∣Cancer)×P(Cancer)+P(Positive Test∣No Cancer)×P(No Cancer)=(0.95×0.12)+(0.06×0.88)=0.114+0.0528=0.1668P(\text{Positive Test}) = P(\text{Positive Test} | \text{Cancer}) \times P(\text{Cancer}) + P(\text{Positive Test} | \text{No Cancer}) \times P(\text{No Cancer}) = (0.95 \times 0.12) + (0.06 \times 0.88) = 0.114 + 0.0528 = 0.1668P(Positive Test)=P(Positive Test∣Cancer)×P(Cancer)+P(Positive Test∣No Cancer)×P(No Cancer)=(0.95×0.12)+(0.06×0.88)=0.114+0.0528=0.1668.

    Explanation

    This calculation uses the law of total probability. The probability of getting a positive test result is the sum of the probabilities of two scenarios: getting a positive result when one has cancer, and getting a positive result when one does not have cancer. These two scenarios cover all possibilities for a positive test result.

  17. 17

    Given P(Positive Test∣Cancer)=0.95P(\text{Positive Test} | \text{Cancer}) = 0.95P(Positive Test∣Cancer)=0.95, P(Cancer)=0.12P(\text{Cancer}) = 0.12P(Cancer)=0.12, and P(Positive Test)=0.1668P(\text{Positive Test}) = 0.1668P(Positive Test)=0.1668, calculate the probability that a man has cancer given a positive test result, P(Cancer∣Positive Test)P(\text{Cancer} | \text{Positive Test})P(Cancer∣Positive Test).

    Model answer

    P(Cancer∣Positive Test)=0.95×0.120.1668≈0.68345P(\text{Cancer} | \text{Positive Test}) = \frac{0.95 \times 0.12}{0.1668} \approx 0.68345P(Cancer∣Positive Test)=0.16680.95×0.12​≈0.68345, or approximately 68.3%.

    Explanation

    By substituting the calculated values into Bayes' Theorem, we find the posterior probability. This result shows that even with a positive test result, there's about a 68.3% chance of actually having cancer, not 95%. This difference highlights the importance of considering the base rate (prevalence) of the disease.

  18. 18

    If P(Cancer∣Positive Test)≈0.683P(\text{Cancer} | \text{Positive Test}) \approx 0.683P(Cancer∣Positive Test)≈0.683, what is the probability that a man does not have cancer given a positive test result?

    Model answer

    The probability that a man does not have cancer given a positive test result is 1−P(Cancer∣Positive Test)=1−0.683≈0.3171 - P(\text{Cancer} | \text{Positive Test}) = 1 - 0.683 \approx 0.3171−P(Cancer∣Positive Test)=1−0.683≈0.317, or approximately 31.7%.

    Explanation

    Similar to the complement rule for marginal probabilities, the complement rule also applies to conditional probabilities. If a person gets a positive test, they either have cancer or they don't. These are the only two possibilities. Therefore, the sum of their conditional probabilities, given a positive test, must be 1.

  19. 19

    Describe an alternative method, other than a formula, to solve the prostate cancer problem using a hypothetical population.

    Model answer

    An alternative method is to assume a large hypothetical population (e.g., 10,000 people) and use the given percentages to calculate the number of people in each category (e.g., with cancer, without cancer, positive test, negative test). Then, the conditional probability can be found by dividing the number of people with cancer and a positive test by the total number of people with a positive test.

    Explanation

    This 'frequency approach' or 'natural frequencies' method often makes Bayes' Theorem problems more intuitive. Instead of dealing with abstract probabilities, one deals with counts of individuals, which can be easier to conceptualize and calculate, especially for those less comfortable with direct probability formulas. The ratio of counts will still yield the correct probability.

  20. 20

    Using a hypothetical population of 10,000 people, how many would be expected to have cancer and test positive?

    Model answer

    Out of 10,000 people, 12% (1,200) would have cancer. Of those 1,200 with cancer, 95% (1,200 * 0.95 = 1,140) would test positive.

    Explanation

    This calculation follows the 'cancer' branch of the tree diagram. First, determine the number of people with the disease based on its prevalence. Then, from that subgroup, determine how many would get a positive test result based on the test's sensitivity (true positive rate).

  21. 21

    Using a hypothetical population of 10,000 people, how many would be expected to not have cancer but still test positive (false positives)?

    Model answer

    Out of 10,000 people, 88% (8,800) would not have cancer. Of those 8,800 without cancer, 6% (8,800 * 0.06 = 528) would test positive (false positive).

    Explanation

    This calculation follows the 'no cancer' branch of the tree diagram. First, determine the number of people without the disease. Then, from that subgroup, determine how many would get a positive test result due to false positives, based on the test's false positive rate.

  22. 22

    In the hypothetical population of 10,000, what is the total number of people who would receive a positive test result?

    Model answer

    The total number of people with a positive test result is the sum of those with cancer and a positive test (1,140) and those without cancer but with a positive test (528), totaling 1,140+528=1,6681,140 + 528 = 1,6681,140+528=1,668 people.

    Explanation

    This sum represents all individuals who would receive a positive test, regardless of their actual cancer status. It is the denominator when calculating the posterior probability in this method, analogous to P(Positive Test)P(\text{Positive Test})P(Positive Test) in the formula-based approach.

  23. 23

    Using the hypothetical population method, calculate P(Cancer∣Positive Test)P(\text{Cancer} | \text{Positive Test})P(Cancer∣Positive Test) based on 1,140 people having cancer and a positive test, and 1,668 total people having a positive test.

    Model answer

    The probability is Number with Cancer AND Positive TestTotal with Positive Test=11401668≈0.683\frac{\text{Number with Cancer AND Positive Test}}{\text{Total with Positive Test}} = \frac{1140}{1668} \approx 0.683Total with Positive TestNumber with Cancer AND Positive Test​=16681140​≈0.683, or 68.3%.

    Explanation

    This final step of the hypothetical population method directly yields the conditional probability by taking the ratio of the number of 'true positives' (people with cancer and a positive test) to the total number of positive test results. This matches the result obtained using the Bayes' Theorem formula, demonstrating the consistency of the methods.

1 of 23
Question 1 of 23

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent