Bayes’ theorem
\[P(E_i\mid A)=\frac{P(E_i)P(A\mid E_i)}{\sum_jP(E_j)P(A\mid E_j)}\]
Probability
Events \(E_1,E_2,\dots,E_n\) form a partition of \(S\) if they are pairwise disjoint, have positive probabilities and their union is \(S\). For any event \(A\):
\[P(A)=\sum_{i=1}^nP(E_i)P(A\mid E_i)\qquad\text{(total probability)}\]\[P(E_i\mid A)=\frac{P(E_i)P(A\mid E_i)}{\sum_jP(E_j)P(A\mid E_j)}\qquad\text{(Bayes’ theorem)}\]
The \(P(E_i)\) are prior probabilities; \(P(E_i\mid A)\) are posterior probabilities, updated after observing \(A\).
Tip: draw a tree. Multiply along each branch, add the branches that end in \(A\) to get \(P(A)\), then divide the branch you want by that total.
\[P(E_i\mid A)=\frac{P(E_i)P(A\mid E_i)}{\sum_jP(E_j)P(A\mid E_j)}\]
Workshop X makes 60% of a firm’s chairs and workshop Y the rest. 3% of X’s chairs and 5% of Y’s chairs are faulty. A chair chosen at random is faulty. Find the probability that it came from Y.
\(P(F)=0.6(0.03)+0.4(0.05)=0.018+0.020=0.038\). \(P(Y\mid F)=\frac{0.020}{0.038}=\frac{10}{19}\).
A fresh set of questions from this topic. Change answers freely – solutions appear after you submit.
Start PracticeBayes’ theorem reverses a conditional probability: from P(effect | cause) to P(cause | effect).
Create a free account to take practice sessions and tests, see detailed explanations and track your progress.