Math and science::INF ML AI
The urns
Problem statement
There are 11 urns labeled by , each
containing ten balls. Urn contains black balls and
white balls. Fred selects an urn uniformly at random and draws
times with replacement from that urn, obtaining blacks and
whites. Fred's friend, Bill, looks on. If after draws
blacks have been drawn, what is the probability that the urn Fred is using is
urn from Bill's point of view?
Solution
Firstly, we know how to express the probability distribution of the number of
blacks given the urn and the total ball count:
Where we define [ ].
Adding the dimension creates the joint probability distribution of
the random variables and , . It can be
written as:
[ ]
Notices how appears, the probability that Fred selects a given
urn, which is uniform at as per the question.
From here, we need Bayes Theorem, which is:
[ ]
From the joint probability of and we can obtain the
conditional distribution of given using Bayes Theorem:
We so far know 2 of the 3 expressions in that quotient. The third, the
denominator, , is the marginal probability of which we
can obtain using the sum rule:
So the conditional probability of given is:
We must calculate and sum all probabilities of the form (1) above, then p the
sum by the probabilities from (1) for the given urn.
By the way, the sum for when is 3 is: .
Todo: compare this to the bent coin.