Personalized Data-Driven Learning And Optimization: Theory And Applications To Healthcare