2. Bayes' Theorem. Let P(B)
be the probability that B
defaults. The following variables have been defined for you in R
.
$$P(B) = \text{prB} = 0.05$$
$$P(A) = \text{prA} = 0.10$$
Compute P(A|B) under the following two assumptions:
1. P(B|A) = 0.45.
2. A and B are independent.