getPredictionDistribution function

Calculates the prediction distribution