SlideShare a Scribd company logo
1 of 18
Download to read offline
The Art and (Data) Science of Data Cleansing and Quality
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
Sr. Product Marketing Manager
Lisa Aguilar
Chief Scientist
Dan Putler
Today’s Speakers
Download a FREETrial: alteryx.com/trial© 2017 Alteryx, Inc. | Confidential
Agenda
• ThinkingThrough
Predictive Modeling
Use Cases
• Starting with the
Right Data
• The “gotchas” of data
hygiene in developing
predictive models
• Choosing the Right
ModelingTechnique
3
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
• What decision needs to be made?
• What information is needed to inform that decision?
• Typically developing a mental model of the process helps a great deal in terms of
determining all the potentially relevant information
• What type of analysis is going to be able to provide the exact information needed to
inform the decision?
4
Understanding the Business Issue
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
• How much electricity does a utility need to have the capacity to supply for any given
hour tomorrow?
• To which of its customers should an outdoor sports retailer send a paddling sports
catalog?
5
Two Specific Use Cases to Illustrate Business Issue Understanding
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
• The question “How much electricity does a utility need to have the capacity to supply
for any given hour tomorrow?” actually has two underlying decisions:
• Which of our existing power plants should we start to bring online or start to take offline?
• Should we purchase electricity from the spot market, and, if yes, how much?
• The critical information that needs to be known is how much electricity will be
demanded in each hour of the day tomorrow
• Unfortunately, this information is not known at the time decisions need to be made, but it
can be predicted using a predictive model
6
The Electricity Supply Use Case
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
• What factors are likely to drive the demand for electricity in a given hour tomorrow?
• This is where having a mental model of the process can be very handy
• Some factors that are likely to be important:
• Day of the week
• Hour of the day
• The temperature that hour and the preceding hour
• The month of the year
• One issue is that, like electricity demand, the temperature in that hour (or even the
preceding hour) tomorrow will not be known at the time decisions are made (today), but
the temperature in each hour tomorrow can be predicted using a model
7
The Electricity Supply Use Case
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Electricity Supply Use Case
• Available factors to predict hourly temperatures
• The forecast high and low for the day from the US National Weather Service or other
organization
• The number of minutes since sunrise or sunset at the start of each hour
• The temperature for the same hour on the previous day
• In this case two different predictive models are needed:
• Predict hourly temperatures for the next day
• Predict hourly electricity use given temperatures and other factors
8
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Paddle Sports Catalog Use Case
• The question “To which of its customers should an outdoor sports retailer send a
paddling sports catalog? ” has a definitive answer:
• Send it to any customer where the full cost of sending the catalog is less than the expected
margin dollars (item price less item cost) from the items a customer would purchase from
the catalog
• While the criteria for answering the question about whether a specific customer should
be sent a catalog is definitive, knowing whether that customer meets the criteria is
another matter
• Predictive models can help to provide the information needed on whether a particular
customer is expected to meet the criteria
• Two models would typically be used
• A model that predicts whether a customer will purchase anything from the catalog at all
• A model of the margin dollars a customer will generate conditional on using the catalog
9
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Paddle Sports Catalog Use Case
• In terms of selecting variables for the two models we have identified, we need to make
use of information that is known prior to sending a catalog to a customer.There are a
number of ready candidates to use
• Demographic and socioeconomic information: Age, income, family status
• Location information:The state of the store’s location; proximity to the sea, lakes, or rivers
• Past purchase behavior, typically measured using the concept of Recency, Frequency, and
MonetaryValue (or RFM)
• We also need to have observations on an appropriate target variable.There are two ways
to do this:
• Use appropriate historical data (i.e., the response to last year’s paddle sports catalog)
• Use of a “test” approach, where we send the catalog to a sample of our customers, and then
use this data to predict the behavior of all our customers
10
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Nitty-Gritty of Developing a Predictive Model: Modeling Method
• There are a large (overwhelming?) number of different modeling methods available
• There are two criteria for selecting the final modeling method to use:
• Selecting an appropriate modeling method, which is largely driven by the data type of the
target variable (categorical or numeric)
• Selecting the model (hence the method) with the greatest predictive efficacy for predicting
new data among a set of appropriate models
• Basic model types
• Classification models which predict the category into which a case (e.g., a customer) falls
• Regression models which predict numeric quantities
• Linking back to the use cases
• Classification: Whether a customer will respond to the paddling sports catalog
• Regression:The margin dollars from a customer who receives the catalog, hourly
temperature and electricity demand
11
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Nitty-Gritty of Developing a Predictive Model: Data Hygiene
• The data hygiene requirements for developing predictive models is more exacting than
for reporting and building BI dashboards
• The common data hygiene “gotchas” are:
• Fields with missing values. Some modeling methods can address missing values for predictor
variables, others cannot, and typically drop records that contain one or more missing values
from the selected set of predictor variables. No method can address records with a missing
target variable
• Categorical variables that have little variability (e.g., 99% of all records are in the same
category) or have categories with a small number of records (leading to reliability problems
and/or the possibility that new data cannot be predicted due to “unknown” categories)
• Categorical variables that are disguised as integers. For target variables it can mean that an
inappropriate modeling method is used, for predictors, it can mean the variable is used in an
inappropriate way
12
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Nitty-Gritty of Developing a Predictive Model: Data Hygiene
• Addressing fields with missing values
• For predictor variables it makes sense to impute missing values in most cases, but if there are
very few of them, then dropping records may be in order
• In the case of numeric variables, using a fixed value, such as the mean, median, or zero is
commonly used to address missing values. In addition, a categorical variable can be created
for each predictor to indicate whether its value has been imputed or not. My
recommendation is to use zero values along with a categorical variable to indicate if the
value of the variable has been imputed
• Missing values of categorical values can be replaced with a new category indicating the
value is missing (my recommendation) or the mode value for the variable
• There are model based methods that replace missing values with predicted values based on
other available data
• Records with missing values for the target variable should be filtered out of the data
13
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
The Nitty-Gritty of Developing a Predictive Model: Data Hygiene
• Addressing problematic categorical variables
• Addressing categorical variables which are dominated by a single category (e.g., have little
variability) depends on the amount of data available for creating a model. If there is a lot of
data, and there is a reasonable number of records (at least 20) in each of the non-dominant
categories, then including the field in the model is a viable choice. Otherwise, it makes sense
to not include these fields as predictors
• In the case of categorical variables with categories with few records, it makes sense to
combine categories together.The combination of categories should have a sound logical
basis, as opposed to being combined due to having a similar relationship with the target field
• Fields that use integer values to identify the different categories should have their data type
changed to a string type to indicate that the values are actually category labels
14
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
KeyTakeaways
• Clearly define the business issue – create a mental model
• Starting with the right data is critical to accuracy of predictive models
• Data hygiene requirements from predictive modeling are more stringent than for
BI/Reporting
• Data variable type – “numeric” or “categorical” – matter:
• For selecting an appropriate modeling method
• When imputing missing values
• The volume of data can be critical when addressing problematic categorical variables
15
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
A Leading Platform for Self-Service DataAnalytics
16
Enrich
Prep & Blend Analyze
Input All Relevant Data
Share
OutputAll Popular Formats
© 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial
What Makes the Alteryx Platform Different
N o C o d i n g
Drag & drop tools using an intuitive user
interface to prep, blend, and analyze data
U n l o c k a l l y o u r d a t a
Securely connect business users to all data
regardless of source or data type
E l i m i n a t e s i l o s
Bridge the gap between disparate teams and
departments by collaborating in a secure,
centralized analytic platform
A n a l y t i c g o v e r n a n c e
Ensure data quality by providing transparent
data management and auditability to data
sources, authors and transformation
E n t e r p r i s e s c a l a b i l i t y
Scale analytics to service users in the
systems/technologies they depend on
R e p e a t a b l e W o r k f l o w
Automate time-consuming, manual data
tasks, and adjust analytic queries easily
@alteryx
See what Alteryx can do for you!
Download a free trial ofAlteryx
alteryx.com/trial
or visit alteryx.com for more information
Thank you

More Related Content

Viewers also liked

Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
DEEPASHRI HK
 
A tutorial on deep learning at icml 2013
A tutorial on deep learning at icml 2013A tutorial on deep learning at icml 2013
A tutorial on deep learning at icml 2013
Philip Zheng
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
lpaviglianiti
 

Viewers also liked (16)

Hadoop and Machine Learning
Hadoop and Machine LearningHadoop and Machine Learning
Hadoop and Machine Learning
 
Tips for data science competitions
Tips for data science competitionsTips for data science competitions
Tips for data science competitions
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
10 Lessons Learned from Building Machine Learning Systems
10 Lessons Learned from Building Machine Learning Systems10 Lessons Learned from Building Machine Learning Systems
10 Lessons Learned from Building Machine Learning Systems
 
An Introduction to Supervised Machine Learning and Pattern Classification: Th...
An Introduction to Supervised Machine Learning and Pattern Classification: Th...An Introduction to Supervised Machine Learning and Pattern Classification: Th...
An Introduction to Supervised Machine Learning and Pattern Classification: Th...
 
Machine Learning and Data Mining: 12 Classification Rules
Machine Learning and Data Mining: 12 Classification RulesMachine Learning and Data Mining: 12 Classification Rules
Machine Learning and Data Mining: 12 Classification Rules
 
How to Interview a Data Scientist
How to Interview a Data ScientistHow to Interview a Data Scientist
How to Interview a Data Scientist
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networks
 
How to Become a Data Scientist
How to Become a Data ScientistHow to Become a Data Scientist
How to Become a Data Scientist
 
A Statistician's View on Big Data and Data Science (Version 1)
A Statistician's View on Big Data and Data Science (Version 1)A Statistician's View on Big Data and Data Science (Version 1)
A Statistician's View on Big Data and Data Science (Version 1)
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Myths and Mathemagical Superpowers of Data Scientists
Myths and Mathemagical Superpowers of Data ScientistsMyths and Mathemagical Superpowers of Data Scientists
Myths and Mathemagical Superpowers of Data Scientists
 
A tutorial on deep learning at icml 2013
A tutorial on deep learning at icml 2013A tutorial on deep learning at icml 2013
A tutorial on deep learning at icml 2013
 
Artificial Intelligence Presentation
Artificial Intelligence PresentationArtificial Intelligence Presentation
Artificial Intelligence Presentation
 
Introduction to Big Data/Machine Learning
Introduction to Big Data/Machine LearningIntroduction to Big Data/Machine Learning
Introduction to Big Data/Machine Learning
 
Big Data [sorry] & Data Science: What Does a Data Scientist Do?
Big Data [sorry] & Data Science: What Does a Data Scientist Do?Big Data [sorry] & Data Science: What Does a Data Scientist Do?
Big Data [sorry] & Data Science: What Does a Data Scientist Do?
 

More from DATAVERSITY

The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
DATAVERSITY
 
Data Strategy Best Practices
Data Strategy Best PracticesData Strategy Best Practices
Data Strategy Best Practices
DATAVERSITY
 

More from DATAVERSITY (20)

Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
 
Data at the Speed of Business with Data Mastering and Governance
Data at the Speed of Business with Data Mastering and GovernanceData at the Speed of Business with Data Mastering and Governance
Data at the Speed of Business with Data Mastering and Governance
 
Exploring Levels of Data Literacy
Exploring Levels of Data LiteracyExploring Levels of Data Literacy
Exploring Levels of Data Literacy
 
Building a Data Strategy – Practical Steps for Aligning with Business Goals
Building a Data Strategy – Practical Steps for Aligning with Business GoalsBuilding a Data Strategy – Practical Steps for Aligning with Business Goals
Building a Data Strategy – Practical Steps for Aligning with Business Goals
 
Make Data Work for You
Make Data Work for YouMake Data Work for You
Make Data Work for You
 
Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?
 
Data Catalogs Are the Answer – What Is the Question?
Data Catalogs Are the Answer – What Is the Question?Data Catalogs Are the Answer – What Is the Question?
Data Catalogs Are the Answer – What Is the Question?
 
Data Modeling Fundamentals
Data Modeling FundamentalsData Modeling Fundamentals
Data Modeling Fundamentals
 
Showing ROI for Your Analytic Project
Showing ROI for Your Analytic ProjectShowing ROI for Your Analytic Project
Showing ROI for Your Analytic Project
 
How a Semantic Layer Makes Data Mesh Work at Scale
How a Semantic Layer Makes  Data Mesh Work at ScaleHow a Semantic Layer Makes  Data Mesh Work at Scale
How a Semantic Layer Makes Data Mesh Work at Scale
 
Is Enterprise Data Literacy Possible?
Is Enterprise Data Literacy Possible?Is Enterprise Data Literacy Possible?
Is Enterprise Data Literacy Possible?
 
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
 
Emerging Trends in Data Architecture – What’s the Next Big Thing?
Emerging Trends in Data Architecture – What’s the Next Big Thing?Emerging Trends in Data Architecture – What’s the Next Big Thing?
Emerging Trends in Data Architecture – What’s the Next Big Thing?
 
Data Governance Trends - A Look Backwards and Forwards
Data Governance Trends - A Look Backwards and ForwardsData Governance Trends - A Look Backwards and Forwards
Data Governance Trends - A Look Backwards and Forwards
 
Data Governance Trends and Best Practices To Implement Today
Data Governance Trends and Best Practices To Implement TodayData Governance Trends and Best Practices To Implement Today
Data Governance Trends and Best Practices To Implement Today
 
2023 Trends in Enterprise Analytics
2023 Trends in Enterprise Analytics2023 Trends in Enterprise Analytics
2023 Trends in Enterprise Analytics
 
Data Strategy Best Practices
Data Strategy Best PracticesData Strategy Best Practices
Data Strategy Best Practices
 
Who Should Own Data Governance – IT or Business?
Who Should Own Data Governance – IT or Business?Who Should Own Data Governance – IT or Business?
Who Should Own Data Governance – IT or Business?
 
Data Management Best Practices
Data Management Best PracticesData Management Best Practices
Data Management Best Practices
 
MLOps – Applying DevOps to Competitive Advantage
MLOps – Applying DevOps to Competitive AdvantageMLOps – Applying DevOps to Competitive Advantage
MLOps – Applying DevOps to Competitive Advantage
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 

The Art and (Data) Science of Data Cleansing and Quality

  • 1. The Art and (Data) Science of Data Cleansing and Quality
  • 2. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial Sr. Product Marketing Manager Lisa Aguilar Chief Scientist Dan Putler Today’s Speakers
  • 3. Download a FREETrial: alteryx.com/trial© 2017 Alteryx, Inc. | Confidential Agenda • ThinkingThrough Predictive Modeling Use Cases • Starting with the Right Data • The “gotchas” of data hygiene in developing predictive models • Choosing the Right ModelingTechnique 3
  • 4. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial • What decision needs to be made? • What information is needed to inform that decision? • Typically developing a mental model of the process helps a great deal in terms of determining all the potentially relevant information • What type of analysis is going to be able to provide the exact information needed to inform the decision? 4 Understanding the Business Issue
  • 5. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial • How much electricity does a utility need to have the capacity to supply for any given hour tomorrow? • To which of its customers should an outdoor sports retailer send a paddling sports catalog? 5 Two Specific Use Cases to Illustrate Business Issue Understanding
  • 6. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial • The question “How much electricity does a utility need to have the capacity to supply for any given hour tomorrow?” actually has two underlying decisions: • Which of our existing power plants should we start to bring online or start to take offline? • Should we purchase electricity from the spot market, and, if yes, how much? • The critical information that needs to be known is how much electricity will be demanded in each hour of the day tomorrow • Unfortunately, this information is not known at the time decisions need to be made, but it can be predicted using a predictive model 6 The Electricity Supply Use Case
  • 7. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial • What factors are likely to drive the demand for electricity in a given hour tomorrow? • This is where having a mental model of the process can be very handy • Some factors that are likely to be important: • Day of the week • Hour of the day • The temperature that hour and the preceding hour • The month of the year • One issue is that, like electricity demand, the temperature in that hour (or even the preceding hour) tomorrow will not be known at the time decisions are made (today), but the temperature in each hour tomorrow can be predicted using a model 7 The Electricity Supply Use Case
  • 8. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Electricity Supply Use Case • Available factors to predict hourly temperatures • The forecast high and low for the day from the US National Weather Service or other organization • The number of minutes since sunrise or sunset at the start of each hour • The temperature for the same hour on the previous day • In this case two different predictive models are needed: • Predict hourly temperatures for the next day • Predict hourly electricity use given temperatures and other factors 8
  • 9. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Paddle Sports Catalog Use Case • The question “To which of its customers should an outdoor sports retailer send a paddling sports catalog? ” has a definitive answer: • Send it to any customer where the full cost of sending the catalog is less than the expected margin dollars (item price less item cost) from the items a customer would purchase from the catalog • While the criteria for answering the question about whether a specific customer should be sent a catalog is definitive, knowing whether that customer meets the criteria is another matter • Predictive models can help to provide the information needed on whether a particular customer is expected to meet the criteria • Two models would typically be used • A model that predicts whether a customer will purchase anything from the catalog at all • A model of the margin dollars a customer will generate conditional on using the catalog 9
  • 10. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Paddle Sports Catalog Use Case • In terms of selecting variables for the two models we have identified, we need to make use of information that is known prior to sending a catalog to a customer.There are a number of ready candidates to use • Demographic and socioeconomic information: Age, income, family status • Location information:The state of the store’s location; proximity to the sea, lakes, or rivers • Past purchase behavior, typically measured using the concept of Recency, Frequency, and MonetaryValue (or RFM) • We also need to have observations on an appropriate target variable.There are two ways to do this: • Use appropriate historical data (i.e., the response to last year’s paddle sports catalog) • Use of a “test” approach, where we send the catalog to a sample of our customers, and then use this data to predict the behavior of all our customers 10
  • 11. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Nitty-Gritty of Developing a Predictive Model: Modeling Method • There are a large (overwhelming?) number of different modeling methods available • There are two criteria for selecting the final modeling method to use: • Selecting an appropriate modeling method, which is largely driven by the data type of the target variable (categorical or numeric) • Selecting the model (hence the method) with the greatest predictive efficacy for predicting new data among a set of appropriate models • Basic model types • Classification models which predict the category into which a case (e.g., a customer) falls • Regression models which predict numeric quantities • Linking back to the use cases • Classification: Whether a customer will respond to the paddling sports catalog • Regression:The margin dollars from a customer who receives the catalog, hourly temperature and electricity demand 11
  • 12. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Nitty-Gritty of Developing a Predictive Model: Data Hygiene • The data hygiene requirements for developing predictive models is more exacting than for reporting and building BI dashboards • The common data hygiene “gotchas” are: • Fields with missing values. Some modeling methods can address missing values for predictor variables, others cannot, and typically drop records that contain one or more missing values from the selected set of predictor variables. No method can address records with a missing target variable • Categorical variables that have little variability (e.g., 99% of all records are in the same category) or have categories with a small number of records (leading to reliability problems and/or the possibility that new data cannot be predicted due to “unknown” categories) • Categorical variables that are disguised as integers. For target variables it can mean that an inappropriate modeling method is used, for predictors, it can mean the variable is used in an inappropriate way 12
  • 13. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Nitty-Gritty of Developing a Predictive Model: Data Hygiene • Addressing fields with missing values • For predictor variables it makes sense to impute missing values in most cases, but if there are very few of them, then dropping records may be in order • In the case of numeric variables, using a fixed value, such as the mean, median, or zero is commonly used to address missing values. In addition, a categorical variable can be created for each predictor to indicate whether its value has been imputed or not. My recommendation is to use zero values along with a categorical variable to indicate if the value of the variable has been imputed • Missing values of categorical values can be replaced with a new category indicating the value is missing (my recommendation) or the mode value for the variable • There are model based methods that replace missing values with predicted values based on other available data • Records with missing values for the target variable should be filtered out of the data 13
  • 14. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial The Nitty-Gritty of Developing a Predictive Model: Data Hygiene • Addressing problematic categorical variables • Addressing categorical variables which are dominated by a single category (e.g., have little variability) depends on the amount of data available for creating a model. If there is a lot of data, and there is a reasonable number of records (at least 20) in each of the non-dominant categories, then including the field in the model is a viable choice. Otherwise, it makes sense to not include these fields as predictors • In the case of categorical variables with categories with few records, it makes sense to combine categories together.The combination of categories should have a sound logical basis, as opposed to being combined due to having a similar relationship with the target field • Fields that use integer values to identify the different categories should have their data type changed to a string type to indicate that the values are actually category labels 14
  • 15. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial KeyTakeaways • Clearly define the business issue – create a mental model • Starting with the right data is critical to accuracy of predictive models • Data hygiene requirements from predictive modeling are more stringent than for BI/Reporting • Data variable type – “numeric” or “categorical” – matter: • For selecting an appropriate modeling method • When imputing missing values • The volume of data can be critical when addressing problematic categorical variables 15
  • 16. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial A Leading Platform for Self-Service DataAnalytics 16 Enrich Prep & Blend Analyze Input All Relevant Data Share OutputAll Popular Formats
  • 17. © 2017 Alteryx, Inc. | Confidential Download a FREETrial: alteryx.com/trial What Makes the Alteryx Platform Different N o C o d i n g Drag & drop tools using an intuitive user interface to prep, blend, and analyze data U n l o c k a l l y o u r d a t a Securely connect business users to all data regardless of source or data type E l i m i n a t e s i l o s Bridge the gap between disparate teams and departments by collaborating in a secure, centralized analytic platform A n a l y t i c g o v e r n a n c e Ensure data quality by providing transparent data management and auditability to data sources, authors and transformation E n t e r p r i s e s c a l a b i l i t y Scale analytics to service users in the systems/technologies they depend on R e p e a t a b l e W o r k f l o w Automate time-consuming, manual data tasks, and adjust analytic queries easily
  • 18. @alteryx See what Alteryx can do for you! Download a free trial ofAlteryx alteryx.com/trial or visit alteryx.com for more information Thank you