Update a belief using two likelihoods
Keep the numerator and denominator in the stated order. · 163 words
Two sorting machines fill equal numbers of envelopes for a stationery shop. Machine A adds a blue seal to three quarters of its envelopes, while machine B adds one to a quarter of its envelopes. An envelope is drawn at random from their combined production and has a blue seal. Imagine a representative batch of eighty envelopes. Forty come from each machine. About thirty blue seals would come from A and ten would come from B under the stated proportions.
Among the forty envelopes expected to have blue seals, thirty came from machine A. The chance of A given a blue seal is therefore three quarters under this model. The calculation used the machines' equal contributions as well as their different seal rates. If one machine supplied many more envelopes, the posterior could change even with the same two seal rates. Writing a small count table before dividing helps keep the observed feature in the denominator and the candidate source in the numerator.
Check your recall
What probability does the blue seal give for machine A under equal production?
Check your answer
Three quarters, since thirty of the forty expected blue-sealed envelopes come from A.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.