distributed histogram computation with distributed probability distributions