Skip to Content
Data Science Using Python and R
book

Data Science Using Python and R

by Chantal D. Larose, Daniel T. Larose
April 2019
Beginner to intermediate
240 pages
6h 47m
English
Wiley
Content preview from Data Science Using Python and R

Chapter 3DATA PREPARATION

3.1 THE BANK MARKETING DATA SET

We will illustrate how to perform the first two phases of the Data Science Methodology using the bank_marketing_training and bank_marketing_test data sets. Readers may download these data sets from the book series web site: www.dataminingconsultant.com. These data sets are adapted from the bank‐additional‐full.txt data set1 from the UCI Machine Learning Repository.2 We use only four predictors (age, educations, previous_outcome, and days_since_previous), plus the target, response. The data relate to a phone‐based direct marketing campaign conducted by a bank in Portugal. The bank was interested in whether or not the contacts would subscribe to a term deposit account with the bank. The bank_marketing_training data set contains 26,874 records, while bank_marketing_test contains 10,255 records.

3.2 THE PROBLEM UNDERSTANDING PHASE

We begin with the Problem Understanding Phase, in order to make sure that the ladder we are working so hard to climb is not leaning against the wrong wall.

3.2.1 Clearly Enunciate the Project Objectives

The objectives of this analysis are as follows:

  1. Learn about our potential customers. That is, learn the characteristics of those who choose to bank with us, as well as those who do not.
  2. Develop a profitable method of identifying likely positive responders, so that we may save time and money. That is, develop a model or models that will identify likely positive responders. Quantify the expected ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python and R for the Modern Data Scientist

Python and R for the Modern Data Scientist

Rick J. Scavetta, Boyan Angelov
Python Machine Learning Blueprints - Second Edition

Python Machine Learning Blueprints - Second Edition

Alexander Combs, Saurabh Chhajed, Michael Roman

Publisher Resources

ISBN: 9781119526810Purchase book