I\'m stuck with the following problem:
There are given n+1 discrete random variables:
X = {1,...,n} with P(x=i) = p_i Y_i = {1,...,n_i} with P(y_i = j)