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

  • 24Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Conditional Probability
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the formula for the conditional probability of event A occurring given that event B has already occurred?

Tap to flipClick to flipspace

The probability of event A given event B is P(A∣B)=P(A and B)P(B)P(A|B) = \frac{P(A \text{ and } B)}{P(B)}P(A∣B)=P(B)P(A and B)​.

Or swipe the card

24 cards

  1. What is the formula for the conditional probability of event A occurring given that event B has already occurred?

    The probability of event A given event B is P(A∣B)=P(A and B)P(B)P(A|B) = \frac{P(A \text{ and } B)}{P(B)}P(A∣B)=P(B)P(A and B)​.

  2. What is the formula for the conditional probability of event B occurring given that event A has already occurred?

    The probability of event B given event A is P(B∣A)=P(B and A)P(A)P(B|A) = \frac{P(B \text{ and } A)}{P(A)}P(B∣A)=P(A)P(B and A)​.

  3. What is the relationship between P(A and B)P(A \text{ and } B)P(A and B) and P(B and A)P(B \text{ and } A)P(B and A)?

    The probability that event A and B will occur is equal to the probability that event B and A will occur: P(A and B)=P(B and A)P(A \text{ and } B) = P(B \text{ and } A)P(A and B)=P(B and A).

  4. Derive the expression for P(A and B)P(A \text{ and } B)P(A and B) using the conditional probability P(A∣B)P(A|B)P(A∣B) and P(B)P(B)P(B).

    From P(A∣B)=P(A and B)P(B)P(A|B) = \frac{P(A \text{ and } B)}{P(B)}P(A∣B)=P(B)P(A and B)​, we can derive P(A and B)=P(A∣B)×P(B)P(A \text{ and } B) = P(A|B) \times P(B)P(A and B)=P(A∣B)×P(B).

  5. Derive the expression for P(B and A)P(B \text{ and } A)P(B and A) using the conditional probability P(B∣A)P(B|A)P(B∣A) and P(A)P(A)P(A).

    From P(B∣A)=P(B and A)P(A)P(B|A) = \frac{P(B \text{ and } A)}{P(A)}P(B∣A)=P(A)P(B and A)​, we can derive P(B and A)=P(B∣A)×P(A)P(B \text{ and } A) = P(B|A) \times P(A)P(B and A)=P(B∣A)×P(A).

  6. State the formula for Bayes' Theorem.

    Bayes' Theorem states: 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)​.

  7. What is the primary purpose of Bayes' Theorem?

    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 (P(A)P(A)P(A) and P(B)P(B)P(B)) are known.

  8. In a given example, event A represents drawing numbers {1, 2, 3, 4, 5} and event B represents drawing numbers {4, 5, 6, 7, 8, 9}. What is the sample space for this scenario?

    The sample space represents all possible numbers, which are the natural numbers from 1 to 9: {1, 2, 3, 4, 5, 6, 7, 8, 9}.

  9. For event A = {1, 2, 3, 4, 5} and a sample space of {1, 2, 3, 4, 5, 6, 7, 8, 9}, what is the probability of event A occurring?

    The probability of event A occurring is P(A)=5/9P(A) = 5/9P(A)=5/9.

  10. For event B = {4, 5, 6, 7, 8, 9} and a sample space of {1, 2, 3, 4, 5, 6, 7, 8, 9}, what is the probability of event B occurring?

    The probability of event B occurring is P(B)=6/9P(B) = 6/9P(B)=6/9.

  11. Given event A = {1, 2, 3, 4, 5} and event B = {4, 5, 6, 7, 8, 9}, what is the probability of event B occurring given that event A has already occurred (P(B∣A)P(B|A)P(B∣A))?

    The probability of event B given A is P(B∣A)=2/5P(B|A) = 2/5P(B∣A)=2/5.

  12. Using Bayes' Theorem, calculate P(A∣B)P(A|B)P(A∣B) given P(B∣A)=2/5P(B|A) = 2/5P(B∣A)=2/5, P(A)=5/9P(A) = 5/9P(A)=5/9, and P(B)=6/9P(B) = 6/9P(B)=6/9.

    P(A∣B)=(2/5)×(5/9)6/9=2/96/9=2/6=1/3P(A|B) = \frac{(2/5) \times (5/9)}{6/9} = \frac{2/9}{6/9} = 2/6 = 1/3P(A∣B)=6/9(2/5)×(5/9)​=6/92/9​=2/6=1/3.

  13. Confirm the value of P(A∣B)P(A|B)P(A∣B) calculated using Bayes' Theorem by directly using the conditional probability formula P(A∣B)=P(A and B)P(B)P(A|B) = \frac{P(A \text{ and } B)}{P(B)}P(A∣B)=P(B)P(A and B)​.

    The intersection of A and B is {4, 5}, so P(A and B)=2/9P(A \text{ and } B) = 2/9P(A and B)=2/9. Given P(B)=6/9P(B) = 6/9P(B)=6/9, then P(A∣B)=2/96/9=2/6=1/3P(A|B) = \frac{2/9}{6/9} = 2/6 = 1/3P(A∣B)=6/92/9​=2/6=1/3.

  14. A study shows that 12% of men develop prostate cancer. How is this expressed probabilistically?

    P(C)=0.12P(C) = 0.12P(C)=0.12, where CCC represents having cancer.

  15. What does a 'man with prostate cancer has a 95% chance of a positive test result' mean in terms of conditional probability?

    P(+∣C)=0.95P(+|C) = 0.95P(+∣C)=0.95, where +++ represents a positive test result and CCC represents having cancer.

  16. What does a 'man without prostate cancer has a 6% chance of getting a false positive test result' mean in terms of conditional probability?

    P(+∣C′)=0.06P(+|C') = 0.06P(+∣C′)=0.06, where +++ represents a positive test result and C′C'C′ represents not having cancer.

  17. In the prostate cancer example, what probability do we need to calculate using Bayes' Theorem?

    We need to calculate the probability that a man has cancer given that he has a positive test result, i.e., P(C∣+)P(C|+)P(C∣+).

  18. Write down the Bayes' Theorem formula specifically for calculating P(C∣+)P(C|+)P(C∣+) in the prostate cancer example.

    P(C∣+)=P(+∣C)×P(C)P(+)P(C|+) = \frac{P(+|C) \times P(C)}{P(+)}P(C∣+)=P(+)P(+∣C)×P(C)​

  19. Given P(C)=0.12P(C) = 0.12P(C)=0.12, what is the probability that a man does not have cancer, P(C′)P(C')P(C′)?

    P(C′)=1−P(C)=1−0.12=0.88P(C') = 1 - P(C) = 1 - 0.12 = 0.88P(C′)=1−P(C)=1−0.12=0.88.

  20. Explain how to calculate P(+)P(+)P(+), the overall probability of a positive test result, using a tree diagram or total probability rule, given P(C)=0.12P(C) = 0.12P(C)=0.12, P(+∣C)=0.95P(+|C) = 0.95P(+∣C)=0.95, and P(+∣C′)=0.06P(+|C') = 0.06P(+∣C′)=0.06.

    P(+)=P(+ and C)+P(+ and C′)=(P(+∣C)×P(C))+(P(+∣C′)×P(C′))=(0.95×0.12)+(0.06×0.88)P(+) = P(+ \text{ and } C) + P(+ \text{ and } C') = (P(+|C) \times P(C)) + (P(+|C') \times P(C')) = (0.95 \times 0.12) + (0.06 \times 0.88)P(+)=P(+ and C)+P(+ and C′)=(P(+∣C)×P(C))+(P(+∣C′)×P(C′))=(0.95×0.12)+(0.06×0.88).

  21. Calculate the overall probability of a positive test result, P(+)P(+)P(+), given the values: P(C)=0.12P(C) = 0.12P(C)=0.12, P(+∣C)=0.95P(+|C) = 0.95P(+∣C)=0.95, and P(+∣C′)=0.06P(+|C') = 0.06P(+∣C′)=0.06.

    P(+)=(0.95×0.12)+(0.06×0.88)=0.114+0.0528=0.1668P(+) = (0.95 \times 0.12) + (0.06 \times 0.88) = 0.114 + 0.0528 = 0.1668P(+)=(0.95×0.12)+(0.06×0.88)=0.114+0.0528=0.1668.

  22. Calculate the probability that a man has cancer given a positive test result, P(C∣+)P(C|+)P(C∣+), using Bayes' Theorem with the following values: P(+∣C)=0.95P(+|C) = 0.95P(+∣C)=0.95, P(C)=0.12P(C) = 0.12P(C)=0.12, and P(+)=0.1668P(+) = 0.1668P(+)=0.1668.

    P(C∣+)=0.95×0.120.1668=0.1140.1668≈0.68345P(C|+) = \frac{0.95 \times 0.12}{0.1668} = \frac{0.114}{0.1668} \approx 0.68345P(C∣+)=0.16680.95×0.12​=0.16680.114​≈0.68345.

  23. What is the probability that a man does not have cancer given that he has a positive test result, P(C′∣+)P(C'|+)P(C′∣+), based on P(C∣+)≈0.68345P(C|+) \approx 0.68345P(C∣+)≈0.68345?

    P(C′∣+)=1−P(C∣+)=1−0.68345=0.31655P(C'|+) = 1 - P(C|+) = 1 - 0.68345 = 0.31655P(C′∣+)=1−P(C∣+)=1−0.68345=0.31655. Approximately 31.7%.

  24. Describe an alternative method to calculate P(C∣+)P(C|+)P(C∣+) using a hypothetical population (e.g., 10,000 people) and absolute numbers.

    1. Calculate the number of people with cancer (NCN_CNC​) and without cancer (NC′N_{C'}NC′​). 2. For each group, calculate the number of people with a positive test (N+ and CN_{+ \text{ and } C}N+ and C​ and N+ and C′N_{+ \text{ and } C'}N+ and C′​). 3. Sum these to get the total number of positive test results (N+N_+N+​). 4. P(C∣+)=N+ and CN+P(C|+) = \frac{N_{+ \text{ and } C}}{N_+}P(C∣+)=N+​N+ and C​​.
Card 1 of 24
Card 1 of 24

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent