Book Image

Hands-On Data Science for Marketing

By : Yoon Hyup Hwang
Book Image

Hands-On Data Science for Marketing

By: Yoon Hyup Hwang

Overview of this book

Regardless of company size, the adoption of data science and machine learning for marketing has been rising in the industry. With this book, you will learn to implement data science techniques to understand the drivers behind the successes and failures of marketing campaigns. This book is a comprehensive guide to help you understand and predict customer behaviors and create more effectively targeted and personalized marketing strategies. This is a practical guide to performing simple-to-advanced tasks, to extract hidden insights from the data and use them to make smart business decisions. You will understand what drives sales and increases customer engagements for your products. You will learn to implement machine learning to forecast which customers are more likely to engage with the products and have high lifetime value. This book will also show you how to use machine learning techniques to understand different customer segments and recommend the right products for each customer. Apart from learning to gain insights into consumer behavior using exploratory analysis, you will also learn the concept of A/B testing and implement it using Python and R. By the end of this book, you will be experienced enough with various data science and machine learning techniques to run and manage successful marketing campaigns for your business.
Table of Contents (20 chapters)
Free Chapter
1
Section 1: Introduction and Environment Setup
3
Section 2: Descriptive Versus Explanatory Analysis
7
Section 3: Product Visibility and Marketing
10
Section 4: Personalized Marketing
16
Section 5: Better Decision Making

Product analytics using Python

In this section, we are going to discuss how to conduct product analytics using the pandas and matplotlib packages in Python. For those readers who would like to use R, instead of Python, for this exercise, you can skip to the next section. We will start this section by analyzing the overall time series trends in the revenue and numbers of purchases, and the purchase patterns of repeat purchase customers, and then we will move on to analyze the trends in products being sold.

For this exercise, we will be using one of the publicly available datasets from the UCI Machine Learning Repository, which can be found using this link: http://archive.ics.uci.edu/ml/datasets/online+retail#. From this link, you can download the data in Microsoft Excel format, named Online Retail.xlsx. Once you have downloaded this data, you can load it into your Jupyter Notebook...