Efficient sampling of a mixture modelIntegrating both sides, I think you need $ \sum_i w_i - \sum_j w_j = 1$. But this doesn't guarantee that total $f_X(x)>0 \forall x$. We'll just assumethat this is true.