Customer Analytics - Course Notes
Customer Analytics - Course Notes
You are here because you want to learn the fundamentals of Customer analytics. The course provides
insight into the fundamental marketing modeling theory: segmentation, targeting, positioning,
marketing mix, price elasticity, and neural networks.
Customer Analytics: The first part of the course focuses on how to perform customer segmentation,
using a hands-on approach. It involves the application of hierarchical and flat clustering techniques for
dividing customers into groups. It also features applying the Principal Components Analysis (PCA) to
reduce the dimensionality of the problem, as well as combining PCA and K-means for an even more
professional customer segmentation.
Purchase Analytics: The second part of the course explores both the descriptive and predictive
analysis of the purchase behaviour of customers, including models for purchase incidence, brand
choice, and purchase quantity. Not only that, but it also covers the application of state-of-the-art deep
learning techniques to make predictions using real-world data.
Segmentation
STP is a fundamental marketing
Targeting framework. It can be applied to all areas
of business and marketing activities.
Positioning
B2C The clients of our business are individuals rather than organizations.
The advantage of a B2C model in terms of data science is that we have much
(business-to-customer) more data points.
The process of dividing a population
of customers into groups that share
Segmentation similar characteristics.
Marketing
Mix In fact, this process is so important, that it
has a framework of its own called:
Marketing Mix.
Develop the best product or service and offer it at the right price through the right channels.
Product
Product features;
Branding; Packaging
Price
Product cost;
Long term price changes
Promotion
26% Price reduction,
display and feature
Place
Distribution:
intensive, selective, exclusive
Retailers
Physical Online
Characteristics
Location Many locations, returning customers. One location, many customers.
Data -- Fewer customers at a particular store, ++ More data points and more diverse
due to the physical restriction. customer information.
Returns ++ In physical stores, customers can see -- Products are returned more often, as
the product itself. Returns are less likely. customers cannot see and test an item.
Purchase history Gather information through loyalty cards. Database with all past purchases of customers.
Brand choice -- Unavailable in physical stores. We ++ We may have data for all products that the
assume the customer has considered all customer has looked at and which competing
competitor brands. products a customer has considered.
Ratings and reviews -- Unavailable in physical stores. ++ Different items could be reviewed and rated
(significant features for predictive modeling).
Price elasticity measures how a variable of interest changes when the price changes.
Q: quantity
P: price
01 Choose the number of clusters
Dimensionality reduction
technique
2D Plane
3D Plane
01 Reduce Dimensionality with PCA
A layer
A unit (a neuron)
Depth
Our neural network has 10 features; therefore the input layer size is 10.
The hidden layer size is a hyperparameter. We can adjust it during the
learning process. In the lectures we start from 50 nodes, but its size hidden_layer_size hidden_layer_size
could be any integer number.
The output layer contains the two possibilities for the targets (0 and
1), therefore it has a size of 2.