getPredictionDistribution_binary function

Calculates the prediction distribution