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

Study methods

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

Bayes Theorem

  • 18Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Fundamental Concepts

State Bayes' theorem and the law of total probability. Write the formulas.

18 questions

  1. 1

    State Bayes' theorem and the law of total probability. Write the formulas.

    Model answer

    If B1,B2,…,BnB_1, B_2, \ldots, B_nB1​,B2​,…,Bn​ are mutually exclusive and exhaustive events with P(Bi)≠0P(B_i) \neq 0P(Bi​)=0, then for any event AAA, the law of total probability is P(A)=∑i=1nP(Bi)P(A∣Bi)P(A) = \sum_{i=1}^n P(B_i) P(A|B_i)P(A)=∑i=1n​P(Bi​)P(A∣Bi​), and Bayes' theorem states P(Bi∣A)=P(Bi)P(A∣Bi)P(A)P(B_i|A) = \frac{P(B_i) P(A|B_i)}{P(A)}P(Bi​∣A)=P(A)P(Bi​)P(A∣Bi​)​.

    Explanation

    Bayes' theorem gives the inverse probability P(Bi∣A)P(B_i|A)P(Bi​∣A) in terms of P(A∣Bi)P(A|B_i)P(A∣Bi​) and the prior probabilities P(Bi)P(B_i)P(Bi​).

  2. 2

    What conditions must the events B1,B2,…,BnB_1, B_2, \ldots, B_nB1​,B2​,…,Bn​ satisfy for Bayes' theorem to apply?

    Model answer

    The events B1,B2,…,BnB_1, B_2, \ldots, B_nB1​,B2​,…,Bn​ must be mutually exclusive, their union must be the entire sample space (exhaustive), and each P(Bi)≠0P(B_i) \neq 0P(Bi​)=0.

    Explanation

    These conditions ensure that the events form a partition of the sample space, allowing the use of total probability.

  3. 3

    Derive Bayes' theorem from the definition of conditional probability.

    Model answer

    By definition, P(Bi∣A)=P(Bi∩A)P(A)P(B_i|A) = \frac{P(B_i \cap A)}{P(A)}P(Bi​∣A)=P(A)P(Bi​∩A)​. And P(Bi∩A)=P(Bi)P(A∣Bi)P(B_i \cap A) = P(B_i)P(A|B_i)P(Bi​∩A)=P(Bi​)P(A∣Bi​). Also, by the law of total probability, P(A)=∑jP(Bj)P(A∣Bj)P(A) = \sum_j P(B_j)P(A|B_j)P(A)=∑j​P(Bj​)P(A∣Bj​). Substituting gives P(Bi∣A)=P(Bi)P(A∣Bi)∑jP(Bj)P(A∣Bj)P(B_i|A) = \frac{P(B_i)P(A|B_i)}{\sum_j P(B_j)P(A|B_j)}P(Bi​∣A)=∑j​P(Bj​)P(A∣Bj​)P(Bi​)P(A∣Bi​)​.

    Explanation

    This derivation shows that Bayes' theorem follows directly from the definition of conditional probability and the law of total probability.

  4. 4

    When would you use the law of total probability versus Bayes' theorem?

    Model answer

    Use the law of total probability to find the probability of an event AAA when it can occur through several mutually exclusive pathways. Use Bayes' theorem to find the probability that a particular pathway was responsible given that AAA occurred (inverse probability).

    Explanation

    Total probability computes P(A)P(A)P(A); Bayes' theorem updates the probability of each BiB_iBi​ given AAA.

  5. 5

    In the bolt vendor example, what is the total probability that a randomly selected bolt is defective?

    Model answer

    P(D)=0.3×0.02+0.4×0.03+0.3×0.05=0.033P(D) = 0.3 \times 0.02 + 0.4 \times 0.03 + 0.3 \times 0.05 = 0.033P(D)=0.3×0.02+0.4×0.03+0.3×0.05=0.033.

    Explanation

    The total probability sums the contributions from each vendor: P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C)P(A)P(D|A) + P(B)P(D|B) + P(C)P(D|C)P(A)P(D∣A)+P(B)P(D∣B)+P(C)P(D∣C).

  6. 6

    Given that a randomly selected bolt is defective, what is the probability it came from vendor A?

    Model answer

    P(A∣D)=0.3×0.020.033=0.0060.033=633P(A|D) = \frac{0.3 \times 0.02}{0.033} = \frac{0.006}{0.033} = \frac{6}{33}P(A∣D)=0.0330.3×0.02​=0.0330.006​=336​.

    Explanation

    Using Bayes' theorem: P(A∣D)=P(A)P(D∣A)P(D)P(A|D) = \frac{P(A)P(D|A)}{P(D)}P(A∣D)=P(D)P(A)P(D∣A)​ with P(D)=0.033P(D)=0.033P(D)=0.033.

  7. 7

    Given that a randomly selected bolt is defective, what is the probability it came from vendor B?

    Model answer

    P(B∣D)=0.4×0.030.033=0.0120.033=1233P(B|D) = \frac{0.4 \times 0.03}{0.033} = \frac{0.012}{0.033} = \frac{12}{33}P(B∣D)=0.0330.4×0.03​=0.0330.012​=3312​.

    Explanation

    Using Bayes' theorem: P(B∣D)=P(B)P(D∣B)P(D)P(B|D) = \frac{P(B)P(D|B)}{P(D)}P(B∣D)=P(D)P(B)P(D∣B)​.

  8. 8

    Given that a randomly selected bolt is defective, what is the probability it came from vendor C?

    Model answer

    P(C∣D)=0.3×0.050.033=0.0150.033=1533P(C|D) = \frac{0.3 \times 0.05}{0.033} = \frac{0.015}{0.033} = \frac{15}{33}P(C∣D)=0.0330.3×0.05​=0.0330.015​=3315​.

    Explanation

    Using Bayes' theorem: P(C∣D)=P(C)P(D∣C)P(D)P(C|D) = \frac{P(C)P(D|C)}{P(D)}P(C∣D)=P(D)P(C)P(D∣C)​.

  9. 9

    In the professor promotion example, what is the total probability that a new subject will be introduced?

    Model answer

    P(N)=49×0.35+29×0.52+39×0.80=4.849P(N) = \frac{4}{9} \times 0.35 + \frac{2}{9} \times 0.52 + \frac{3}{9} \times 0.80 = \frac{4.84}{9}P(N)=94​×0.35+92​×0.52+93​×0.80=94.84​.

    Explanation

    The total probability of introducing a new subject is the sum of the probabilities of each candidate being selected times the probability they introduce a new subject.

  10. 10

    In the bridge collapse example, what is the total probability that the bridge collapses?

    Model answer

    P(C)=0.1×0.95+0.9×0.45=0.095+0.405=0.5P(C) = 0.1 \times 0.95 + 0.9 \times 0.45 = 0.095 + 0.405 = 0.5P(C)=0.1×0.95+0.9×0.45=0.095+0.405=0.5.

    Explanation

    The total probability of collapse is the sum of probabilities for each cause: wrong design or inferior material.

  11. 11

    If the bridge collapses, what is the probability it was due to wrong designing?

    Model answer

    P(WD∣C)=0.1×0.950.5=0.0950.5=0.19P(WD|C) = \frac{0.1 \times 0.95}{0.5} = \frac{0.095}{0.5} = 0.19P(WD∣C)=0.50.1×0.95​=0.50.095​=0.19.

    Explanation

    Using Bayes' theorem: P(WD∣C)=P(WD)P(C∣WD)P(C)P(WD|C) = \frac{P(WD)P(C|WD)}{P(C)}P(WD∣C)=P(C)P(WD)P(C∣WD)​.

  12. 12

    In the boxes problem, what is the probability of drawing one red and one white ball from Box 1?

    Model answer

    Box 1 has 1 white, 2 red, 3 black balls. Total balls = 6. Number of ways to choose 2 balls: (62)=15\binom{6}{2}=15(26​)=15. Ways to get one red and one white: (11)(21)=2\binom{1}{1}\binom{2}{1}=2(11​)(12​)=2. So P(RW∣Box1)=215P(RW|Box1)=\frac{2}{15}P(RW∣Box1)=152​.

    Explanation

    The probability is the number of favorable combinations divided by total combinations.

  13. 13

    In the boxes problem, what is the probability of drawing one red and one white ball from Box 2?

    Model answer

    Box 2 has 2 white, 3 red, 1 black balls. (62)=15\binom{6}{2}=15(26​)=15. Ways: (21)(31)=6\binom{2}{1}\binom{3}{1}=6(12​)(13​)=6. So P(RW∣Box2)=615P(RW|Box2)=\frac{6}{15}P(RW∣Box2)=156​.

    Explanation

    Count favorable outcomes using combinations.

  14. 14

    In the boxes problem, what is the probability of drawing one red and one white ball from Box 3?

    Model answer

    Box 3 has 3 white, 1 red, 2 black balls. (62)=15\binom{6}{2}=15(26​)=15. Ways: (31)(11)=3\binom{3}{1}\binom{1}{1}=3(13​)(11​)=3. So P(RW∣Box3)=315P(RW|Box3)=\frac{3}{15}P(RW∣Box3)=153​.

    Explanation

    Count favorable outcomes using combinations.

  15. 15

    In the boxes problem, if one red and one white ball are drawn, what is the probability they came from Box 1?

    Model answer

    By Bayes' theorem: P(Box1∣RW)=13×21513×215+13×615+13×315=2/4511/45=211P(Box1|RW) = \frac{\frac{1}{3} \times \frac{2}{15}}{\frac{1}{3} \times \frac{2}{15} + \frac{1}{3} \times \frac{6}{15} + \frac{1}{3} \times \frac{3}{15}} = \frac{2/45}{11/45} = \frac{2}{11}P(Box1∣RW)=31​×152​+31​×156​+31​×153​31​×152​​=11/452/45​=112​.

    Explanation

    Each box is equally likely to be chosen (probability 1/31/31/3). The denominator is the total probability of drawing one red and one white.

  16. 16

    In the coin problem, what is the probability of getting four heads if the coin is true (fair)?

    Model answer

    For a fair coin, probability of heads on one toss is 1/21/21/2. For four independent tosses: P(4H∣True)=(1/2)4=1/16P(4H|True) = (1/2)^4 = 1/16P(4H∣True)=(1/2)4=1/16.

    Explanation

    The tosses are independent, so multiply the probabilities.

  17. 17

    In the coin problem, what is the probability of getting four heads if the coin is false (two heads)?

    Model answer

    A false coin has heads on both sides, so every toss results in heads. Thus P(4H∣False)=1P(4H|False) = 1P(4H∣False)=1.

    Explanation

    Since the coin always lands heads, the probability of four heads is certain.

  18. 18

    In the coin problem, if four heads are observed in four tosses, what is the probability that the false coin was used?

    Model answer

    Let TTT be true coin, FFF be false coin. P(T)=3/4P(T)=3/4P(T)=3/4, P(F)=1/4P(F)=1/4P(F)=1/4. P(4H∣T)=1/16P(4H|T)=1/16P(4H∣T)=1/16, P(4H∣F)=1P(4H|F)=1P(4H∣F)=1. By Bayes: P(F∣4H)=(1/4)⋅1(3/4)⋅(1/16)+(1/4)⋅1=1/43/64+1/4=1/419/64=1619P(F|4H) = \frac{(1/4)\cdot 1}{(3/4)\cdot(1/16)+(1/4)\cdot 1} = \frac{1/4}{3/64+1/4} = \frac{1/4}{19/64} = \frac{16}{19}P(F∣4H)=(3/4)⋅(1/16)+(1/4)⋅1(1/4)⋅1​=3/64+1/41/4​=19/641/4​=1916​.

    Explanation

    The denominator is the total probability of observing four heads, using the law of total probability.

1 of 18
Question 1 of 18

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent