added predictive probability of function