Finished auxiliary function simulatePredictions