Online Course top-rated
Customer Analytics in Python

Blend retail marketing understanding with data analytics skills: Master customer segmentation and purchase behaviour modeling in Python

4.8

862 reviews on
8,309 students already enrolled
  • Institute of Analytics
  • The Association of Data Scientists
  • E-Learning Quality Network
  • European Agency for Higher Education and Accreditation
  • Global Association of Online Trainers and Examiners

Skill level:

Advanced

Duration:

10 hours
  • Lessons (5 hours)
  • Projects (5 hours)

CPE credits:

7.5
CPE stands for Continuing Professional Education and represents the mandatory credits a wide range of professionals must earn to maintain their licenses and stay current with regulations and best practices. One CPE credit typically equals 50 minutes of learning. For more details, visit NASBA's official website: www.nasbaregistry.org

Accredited

certificate

What you learn

  • Master K-means clustering to identify distinct customer groups accurately.
  • Combine PCA and K-means for improved customer segmentation.
  • Analyse purchase quantity elasticity to assess customer buying decisions.
  • Model purchase incidence using the probability of purchase elasticity.
  • Leverage deep learning to predict future customer behavior precisely.

Topics & tools

PythonFinancial AnalysisProgrammingData ProcessingMachine LearningData AnalysisCustomer AnalyticsK-Means ClusteringHierarchical ClusteringPrincipal Component Analysis (PCA)Deep LearningTensorflowIndustry SpecializationMachine and Deep Learning

Your instructor

Course OVERVIEW

Description

CPE Credits: 7.5 Field of Study: Information Technology
Delivery Method: QAS Self Study
Customer Analytics in Python is where marketing and data science meet. These are two of the key driving forces that help companies create value and stay on top in today’s fast-paced economy. In addition, this course is packed with knowledge and includes sections on customer and purchase analytics, as well as a deep-learning model, all implemented in Python.

Prerequisites

  • Python (version 3.8 or later), pandas library, and a code editor or IDE (e.g., Jupyter Notebook, Spyder, or VS Code)
  • Basic familiarity with Python programming is required.

Curriculum

60 lessons 18 exercises 1 project 1 exam
  • 1. A Brief Marketing Introduction
    37 min
    In this course, you’ll get to learn theory, as well as acquire practical skills, applicable to a variety of customer analytics areas. You’ll get to meet your instructors and learn about the topics we’ll discuss during the course. This is the place where we’ll discuss the marketing fundamentals, such as the STP framework and Marketing Mix. They will provide us with motivation as to why we take advantage of certain models in the following sections of the course.
    37 min
    In this course, you’ll get to learn theory, as well as acquire practical skills, applicable to a variety of customer analytics areas. You’ll get to meet your instructors and learn about the topics we’ll discuss during the course. This is the place where we’ll discuss the marketing fundamentals, such as the STP framework and Marketing Mix. They will provide us with motivation as to why we take advantage of certain models in the following sections of the course.
    Course Introduction Free
    Segmentation, Targeting, Positioning Free
    Exercise Free
    Marketing Mix Free
    Exercise Free
    Physical and Online Retailers: Similarities and Differences. Free
    Exercise Free
    Price Elasticity Free
    Exercise Free
  • 2. Setting up the environment
    2 min
    Here you will learn how to set up Python 3 and load up Jupyter. We’ll also show you what the Anaconda Prompt is and how you can use it to download and import new modules.
    2 min
    Here you will learn how to set up Python 3 and load up Jupyter. We’ll also show you what the Anaconda Prompt is and how you can use it to download and import new modules.
    Setting up the environment Free
    Installing the relevant packages Free
  • 3. Segmentation Data
    16 min
    We will begin with customer analytics, which is a major part of the course. We will perform some initial exploration of our segmentation data set. Using Python, we’ll visualize our data and standardize it to aid in future analysis.
    16 min
    We will begin with customer analytics, which is a major part of the course. We will perform some initial exploration of our segmentation data set. Using Python, we’ll visualize our data and standardize it to aid in future analysis.
    Getting to know the Segmentation Dataset Free
    Importing and Exploring Segmentation Data Free
    Standardizing Segmentation Data Free
  • 4. Hierarchical Clustering
    11 min
    Here, we discuss the theory behind hierarchical and flat clustering. Throughout the course we’ll implement both approaches. In this section, we’ll focus on hierarchical clustering and use it to determine the number of clusters in our data set.
    11 min
    Here, we discuss the theory behind hierarchical and flat clustering. Throughout the course we’ll implement both approaches. In this section, we’ll focus on hierarchical clustering and use it to determine the number of clusters in our data set.
    Hierarchical Clustering: Background
    Hierarchical Clustering: Implementation and Results
  • 5. K-means Clustering
    18 min
    We continue with segmentation, this time focusing on a flat clustering technique, namely K-means. We’ll divide our customers into clusters using K-means and determine the customer segments. This is a crucial part of the customer analysis, as it is where we discover the most important characteristics, which define our customer groups.
    18 min
    We continue with segmentation, this time focusing on a flat clustering technique, namely K-means. We’ll divide our customers into clusters using K-means and determine the customer segments. This is a crucial part of the customer analysis, as it is where we discover the most important characteristics, which define our customer groups.
    K-Means Clustering: Background
    K-Means Clustering: Application
    K-Means Clustering: Results
  • 6. K-Means Clustering based on Principal Component Analysis
    23 min
    In our final section of customer analytics, we’ll introduce a dimensionality reduction algorithm: Principal Components Analysis (PCA). We’ll combine K-means and PCA to obtain even better clustering results and gain insight about our customers. In addition, we’ll perform the model deployment, which we’ll need in the following sections of our course
    23 min
    In our final section of customer analytics, we’ll introduce a dimensionality reduction algorithm: Principal Components Analysis (PCA). We’ll combine K-means and PCA to obtain even better clustering results and gain insight about our customers. In addition, we’ll perform the model deployment, which we’ll need in the following sections of our course
    Principal Component Analysis: Background
    Principal Component Analysis: Application
    Principal Component Analysis: Results
    K-Means Clustering with Principal Components: Application
    K-Means Clustering with Principal Components: Results
    Saving the Models
    Customer Segmentation in Marketing with Python Project
  • 7. Purchase Data
    14 min
    It’s time for purchase analytics. This is the second major part of the course. We’ll examine our purchase data set and see similarities and differences with the segmentation data. We’ll analyze and preprocess our data and ultimately segment the purchase customers into groups.
    14 min
    It’s time for purchase analytics. This is the second major part of the course. We’ll examine our purchase data set and see similarities and differences with the segmentation data. We’ll analyze and preprocess our data and ultimately segment the purchase customers into groups.
    Purchase Analytics - Introduction
    Getting to know the Purchase Dataset
    Importing and Exploring Purchase Data
    Applying the Segmentation Model
  • 8. Descriptive Analyses by Segments
    26 min
    We’ll analyze our customers by filtering our data by brand and segment, and we’ll visualize the findings. In addition, we’ll compute the revenues by brand and total revenues for each segment. Through the descriptive analysis, we will form our hypotheses about our segments, thus ultimately setting the ground for subsequent modeling.
    26 min
    We’ll analyze our customers by filtering our data by brand and segment, and we’ll visualize the findings. In addition, we’ll compute the revenues by brand and total revenues for each segment. Through the descriptive analysis, we will form our hypotheses about our segments, thus ultimately setting the ground for subsequent modeling.
    Purchase Analytics Descriptive Statistics: Segment Proportions
    Purchase Analytics Descriptive Statistics: Purchase occasion and Purchase Incidence
    Brand Choice
    Dissecting the revenue by segment
  • 9. Modeling Purchase Incidence
    36 min
    We’re ready to create our first prediction model. We’ll use logistic regression and model purchase probability of our clients. We’ll compute the price elasticity of purchase probability and use it to gain insight into our average customers, as well as each of our customer segments. Furthermore, we’ll explore the effects of promotion on our clients’ purchase behavior.
    36 min
    We’re ready to create our first prediction model. We’ll use logistic regression and model purchase probability of our clients. We’ll compute the price elasticity of purchase probability and use it to gain insight into our average customers, as well as each of our customer segments. Furthermore, we’ll explore the effects of promotion on our clients’ purchase behavior.
    Purchase Incidence Models. The Model: Binomial Logistic Regression
    Prepare the Dataset for Logistic Regression
    Model Estimation
    Calculating Price Elasticity of Purchase Probability
    Price Elasticity of Purchase Probability: Results
    Exercise
    Purchase Probability by Segments
    Purchase Probability Model with Promotion
    Calculating Price Elasticities with Promotion
    Comparing Price Elasticities with and without Promotion
  • 10. Modeling Brand Choice
    34 min
    Our goal is to understand the brand preferences of our clients. We’ll imagine we work for one of the brands and create marketing strategies for targeting customers to attract them to our own brand. We’ll compute price elasticity of brand choice for our brand, as well as calculate cross price elasticities for a competitor brand to try to stay ahead of the competition.
    34 min
    Our goal is to understand the brand preferences of our clients. We’ll imagine we work for one of the brands and create marketing strategies for targeting customers to attract them to our own brand. We’ll compute price elasticity of brand choice for our brand, as well as calculate cross price elasticities for a competitor brand to try to stay ahead of the competition.
    Brand Choice Models. The Model: Multinomial Logistic Regression
    Prepare Data and Fit the Model
    Interpreting the Coefficients
    Own Price Brand Choice Elasticity
    Cross Price Brand Choice Elasticity
    Own and Cross-Price Elasticity by Segment
    Own and Cross-Price Elasticity by Segment - Comparison
  • 11. Modeling Purchase Quantity
    19 min
    We conclude the purchase analytics part of the course with a model for purchase quantity. Here, we’ll use linear regression to determine how many units of our product the customer likes to buy. We’ll examine the effects of promotion on purchase quantity and determine price elasticity of demand.
    19 min
    We conclude the purchase analytics part of the course with a model for purchase quantity. Here, we’ll use linear regression to determine how many units of our product the customer likes to buy. We’ll examine the effects of promotion on purchase quantity and determine price elasticity of demand.
    Purchase Quantity Models. The Model: Linear Regression
    Preparing the Data and Fitting the Model
    Calculating Price Elasticity of Purchase Quantity
    Own Price Brand Choice Elasticity
  • 12. Deep Learning for Conversion Prediction
    55 min
    Machine learning and artificial intelligence are at the forefront of the data science revolution. We will take advantage of the TensorFlow 2.0 framework to create a feedforward neural network. This is the part where we will build a black-box model, essentially helping us reach 90%+ accuracy in our predictions about the future behavior of our customers.
    55 min
    Machine learning and artificial intelligence are at the forefront of the data science revolution. We will take advantage of the TensorFlow 2.0 framework to create a feedforward neural network. This is the part where we will build a black-box model, essentially helping us reach 90%+ accuracy in our predictions about the future behavior of our customers.
    Introduction to Deep Learning for Customer Analytics
    Exploring the Dataset
    How Are We Going to Tackle the Business Case
    Why do We Need to Balance a Dataset
    Preprocessing the Data for Deep Learning
    Outlining the Deep Learning Model
    Training the Deep Learning Model
    Testing the Model
    Obtaining the Probability of a Customer to Convert
    Saving the Model and Preparing for Deployment
    Predicting on New Data
  • 13. Course exam
    75 min
    75 min
    Course exam

Free lessons

Course Introduction

1.1 Course Introduction

7 min

Segmentation, Targeting, Positioning

1.2 Segmentation, Targeting, Positioning

7 min

Marketing Mix

1.3 Marketing Mix

8 min

Physical and Online Retailers: Similarities and Differences.

1.4 Physical and Online Retailers: Similarities and Differences.

7 min

Price Elasticity

1.5 Price Elasticity

8 min

Setting up the environment

2.1 Setting up the environment

1 min

Start for free

9 in 10

people walk away career-ready

with practical data and AI skills.

9 in 10

of our graduates landed a new AI & data job

after enrollment

94%

of AI and data science graduates

successfully change

or advance their careers.

ACCREDITED certificates

Craft a resume and LinkedIn profile you’re proud of—featuring certificates recognized by leading global institutions.

Earn CPE-accredited credentials that showcase your dedication, growth, and essential skills—the qualities employers value most.

  • Institute of Analytics
  • The Association of Data Scientists
  • E-Learning Quality Network
  • European Agency for Higher Education and Accreditation
  • Global Association of Online Trainers and Examiners

Certificates are included with the Self-study learning plan.

A LinkedIn profile mockup on a mobile screen showing Parker Maxwell, a Certified Data Analyst, with credentials from 365 Data Science listed under Licenses & Certification. A 365 Data Science Certificate of Achievement awarded to Parker Maxwell for completing the Data Analyst career track, featuring accreditation badges and a gold “Verified Certificate” seal.

How it WORKS

  • Lessons
  • Exercises
  • Projects
  • Practice exams
  • AI mock interviews

Lessons

Learn through short, simple lessons—no prior experience in AI or data science needed.

Try for free

Exercises

Reinforce your learning with mini recaps, hands-on coding, flashcards, fill-in-the-blank activities, and other engaging exercises.

Try for free

Projects

Tackle real-world AI and data science projects—just like those faced by industry professionals every day.

Try for free

Practice exams

Track your progress and solidify your knowledge with regular practice exams.

Try for free

AI mock interviews

Prep for interviews with real-world tasks, popular questions, and real-time feedback.

Try for free

Student REVIEWS

A collage of student testimonials from 365 Data Science learners, featuring profile photos, names, job titles, and quotes or video play icons, showcasing diverse backgrounds and successful career transitions into AI and data science roles.