Optimizing marketing with predictive analytics