Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Data Science for Marketing

You're reading from   Hands-On Data Science for Marketing Improve your marketing strategies with machine learning using Python and R

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789346343
Length 464 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Yoon Hyup Hwang Yoon Hyup Hwang
Author Profile Icon Yoon Hyup Hwang
Yoon Hyup Hwang
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Introduction and Environment Setup FREE CHAPTER
2. Data Science and Marketing 3. Section 2: Descriptive Versus Explanatory Analysis
4. Key Performance Indicators and Visualizations 5. Drivers behind Marketing Engagement 6. From Engagement to Conversion 7. Section 3: Product Visibility and Marketing
8. Product Analytics 9. Recommending the Right Products 10. Section 4: Personalized Marketing
11. Exploratory Analysis for Customer Behavior 12. Predicting the Likelihood of Marketing Engagement 13. Customer Lifetime Value 14. Data-Driven Customer Segmentation 15. Retaining Customers 16. Section 5: Better Decision Making
17. A/B Testing for Better Marketing Strategy 18. What's Next? 19. Other Books You May Enjoy

Product analytics using R

In this section, we are going to discuss how to conduct product analytics using the dplyr and ggplot2 libraries in R. For those readers who would like to use Python, instead of R, you can ignore this section and move to the following section. We will start this section by analyzing the overall time series trends in the revenue, numbers of purchases, and purchasing patterns of repeat purchase customers, and then we will move on to analyzing 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 at: http://archive.ics.uci.edu/ml/datasets/online+retail#. You can follow this link and download the data in Microsoft Excel format, named Online Retail.xlsx. Once you have downloaded this data, you can load it by running the following code:

# install...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime