Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Data Science for Marketing Analytics
  • Table Of Contents Toc
Data Science for Marketing Analytics

Data Science for Marketing Analytics

By : Tommy Blanchard, Debasish Behera, Pranshu Bhatnagar
2.8 (5)
close
close
Data Science for Marketing Analytics

Data Science for Marketing Analytics

2.8 (5)
By: Tommy Blanchard, Debasish Behera, Pranshu Bhatnagar

Overview of this book

Data Science for Marketing Analytics covers every stage of data analytics, from working with a raw dataset to segmenting a population and modeling different parts of the population based on the segments. The book starts by teaching you how to use Python libraries, such as pandas and Matplotlib, to read data from Python, manipulate it, and create plots, using both categorical and continuous variables. Then, you'll learn how to segment a population into groups and use different clustering techniques to evaluate customer segmentation. As you make your way through the chapters, you'll explore ways to evaluate and select the best segmentation approach, and go on to create a linear regression model on customer value data to predict lifetime value. In the concluding chapters, you'll gain an understanding of regression techniques and tools for evaluating regression models, and explore ways to predict customer choice using classification algorithms. Finally, you'll apply these techniques to create a churn model for modeling customer product choices. By the end of this book, you will be able to build your own marketing reporting and interactive dashboard solutions.
Table of Contents (12 chapters)
close
close
Data Science for Marketing Analytics
Preface

Class Imbalanced Data


Class imbalance is the most common problem that a data scientist can encounter. Most real-world classification tasks involve classifying data, where one class or multiple classes are over-represented. This is called class imbalance. Common examples where class-imbalanced data is encountered is in fraud detection, anti-money laundering, spam detection, and cancer detection.

Exercise 47: Performing Classification on Imbalanced Data

For this exercise, we are going to use the mammography dataset from UCI. The dataset contains some attributes of patients, using which we need to build a model that can predict whether a patient will have cancer (that is, a malignant outcome, indicated by 1) or not (that is, a benign outcome, indicated by −1). 70% of the dataset has benign outcomes; hence, it is a highly imbalanced dataset. In this exercise, we will observe how imbalanced data affects the performance of a model:

  1. Import fetch_datasets, pandas, RandomForestClassifier, train_test_split...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Data Science for Marketing Analytics
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon