The Science Behind Intelligent Dynamic Pricing