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

Regression analysis with Python

In this section, you will learn how to use the statsmodels package in Python to conduct regression analysis. For those readers that would like to use R instead of Python, for this exercise, you can skip to the next section. We will start this section by looking at the data more closely, using the pandas and matplotlib packages, and then we will discuss how to build regression models and interpret the results by using the statsmodels library.

For this exercise, we will be using one of the publicly available datasets from IBM Watson, which can be found at https://www.ibm.com/communities/analytics/watson-analytics-blog/marketing-customer-value-analysis/. You can follow the link and download the data file in a CSV format. In order to load this data into your Jupyter Notebook, you can run the following code:

import matplotlib.pyplot as plt
import pandas...