Using simulation for predictive and prescriptive analytics