SlideShare a Scribd company logo
Customer Choice Probability Prediction
Machine Learning: Process Walkthrough
June 2019
2
3
Who Are We
4
Walkthrough of Production Modeling Solution
5
5
Machine Learning is a “Process”
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
6
6
Case Study – B2C Modeling
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
7
7
Problem Formulation
Challenges of This Problem:
• Class imbalance
• Definition of churn can vary for predictive purposes.
• Data evolves dynamically, time series events.
• Data is sparse and noisy.
Binary classification problem: let 𝑦𝑖 represent the product status of customer.
1: Churn
0: Customer
Which customers are going to renew less, and what can we do?
𝑦𝑖 =
What is the best channel to acquire?
Which customer has upsell potential, why and what product?
8
8
Machine Learning is a “Process”
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
9
9
Label Preparation
Label: Close/Renew
• Negative – 1: Customer churned
• Positive – 0: Customer renewed
10
10
Machine Learning is a “Process”
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
11
11
Feature Collecting
• Feature is an individual measurable property or characteristic of a phenomenon being observed.
Demographic Features
• Demographics
• Personal interests
• Professional interests
Etc.
Behavioral Features
• Pageviews
• Account behavior
• Campaign behavior
• Professional interests
12
12
Feature Engineering
• Numeric values:
• Compute basic statistics such as: sum/avg/coverage/percentiles
• Define anomaly with context: seasonal, product evolvement, etc.
• Approach: percentage change, Z-score, etc -> aware of any statistical assumption restrictions.
• Outlier in usage data: eg 25 kwh, 30,000 kwh.
• Categorical values:
• Convert to number
• One-hot-encoding: binary indicator for each categorical value
• Ordered categorical (ordinal) 1-10 -> 5, 20-30 -> 25
• Too many levels in marketing channel data which is a categorical data.
o Ex. product channel product_channel_is_ptc : {0,1}
product_channel_is_energyorgre: {0,1}
Interactions
• Cross-products of feature types, ex.
o {𝑒𝑛𝑒𝑟𝑔𝑦𝑟𝑎𝑡𝑒𝑆𝐹𝐻} X {𝑢𝑠𝑎𝑔𝑒 𝑎𝑚𝑜𝑢𝑛𝑡𝐵𝑟𝑎𝑛𝑑}
13
13
Machine Learning is a “Process”
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
14
14
Model Learning
• Stable model, so we chose Gradient Boosting Machines (GMB).
• GBM is unique compared to other decision tree algorithms because it builds models sequentially with higher weights given to those
cases that were poorly predicted in previous models.
• Giving higher weights to poorly predicted cases improves accuracy incrementally instead of simply taking an average of all models
like a random forest algorithm.
• By reducing the error iteratively to produce what will become the final model, GBM is an efficient and powerful algorithm for
classification and regression problems.
• Hyperparameter tips:
o Number of trees:
❑ Large data needs many trees.
❑ Many features needs many trees.
❑ More trees will reduce bias but also comes with more computational costs.
• Compare error rate in training set and in the validation set to catch possible overfitting/bias.
15
15
Model Learning - Evaluation
• Standard AUC: 0.74
o Diagonal line: random guess
o Above diagonal line
❑ Normal prediction
❑ Curves close to the perfect prediction have a better performance level than the ones close to the baseline.
o Below diagonal line
❑ Poor prediction
• Check feature importance to see if they pass the smell test.
• Renewal/Recontract rate comparison between models.
• Voluntary/Involuntary rate comparison between models.
16
16
Performance Summary
17
Methods to Predict Our Churners
• Random Forest - Robust for outliers and have good
performance but was slow for large dataset and did not
produce as accurate predictions.
• L2 (Ridge) Regression / Elasticnet – Minimizes
multicollinearity while also reducing variance of the
model.
• Artificial Neural Network – Deep Learning that acquires
knowledge through learning (nodes). Performs best for
tasks like clustering, classification, and pattern
recognition.
• Extreme Gradient Boosting Trees – decision-tree based
machine learning technique that optimizes fit by
modifying the remaining error of multiple prior
weaker/simpler models.
18
18
Machine Learning is a “Process”
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
19
Spark ML Pipelines
20
20
Model Deployment Paths
Mleap
• Better for real-time prediction of a small number of
records
• Doesn't require Spark session, portable to apps/devices
that support JVM
Spark ML Persistence
•Appropriate for batch jobs, scoring lots of records at
once
•Requires Spark session
21
21
Model Deployment Paths
Towards a better deployment story
Data Scientist: Hey this logistic regression churn model is ready to go! Here is the parquet file, and here is the documentation you need to
use it.
Big Data Engineer: Awesome! We won't need to write a bazillion if-else statements to recreate the model!
When the model needs updating...
Data Scientist: We decided to use a GBM instead for better log loss error, here's the updated bundle file.
Big Data Engineer: Fantabulous! All we need to do is update the model directory!
Source: https://sais2018.netlify.com/#39
22
22
22
Streams of Work
• Data: Bring in (link to modelling data-set)
remaining items on Data Sources List.
• Modelling :
• New ML approaches
• Model non-linearities (eg. cubic
spline) in key continuous vars
• Model factor interactions
• Further tuning of models
• Combination/ensemble models
• Time-Series models for precision tuning of portfolio-level predictions
• Extended Problem (2019 H2+ start): Estimate effects of main factors on choice probabilities (customer
specific factors, DE-controlled factors & external factors)
23
23
23
Goal and Success Criteria
Probability Forecasting for Customer Choice (i.e. stay, churn, re-contract and
renew) at individual level, all ERCOT customers over 30-day and 120-day
windows.
Models will be judged and selected based on both cross-sectional out-of-sample
performance and (monthly) time-series performance against actual choice
events.
Final model will have to have the best discrimination power between customers
and will have to roll into an accurate aggregated portfolio choice predictor ( by
business segment). A proper model scoring rule is required. We will use:
• Log-Loss (a.k.a. Cross Entropy) – principal scoring rule (proper)
• Brier (a.k.a. Mean Sq Loss) – secondary use (proper for binary event prediction only)
• ROC AUC (area under the curve) – ranking accuracy rule (not proper but informative on
discrimination power)
• Decile Band Prediction Matching (not proper but informative on distributional match of predicted
probabilities to realized choice events)
24 DO NOT FORWARD | CONFIDENTIAL
Machine Learning is a “Process”
Problem
Formulation
Model
Management
Feature
Engineering
Model Learning
Label
Preparation
Model
Deployment
25
25
Model Deployment - Management
• Schedule and run the scoring weekly.
• Need to score customer accounts as well as “new” customer accounts for completeness. Do customers with invoice
score higher?
• After each scoring do some sniff test, ex. Are early tenure customers lining up as expected?
• Monitor model/feature performance.
• Refresh model as needed.
• Weekly review new wins/losses by segment.
26
26
Model Interpretation
Voluntary Score = 0.6
Roxanne
Score = 0.9
Aimee
Score = 0.9
Involuntary Score = 0.2
Recontract Score = 0.1
Voluntary Score = 0.1
Involuntary Score = 0.3
Renewal Score = 0.5
…Take advantage of our summer savings with a X$ bill discount. … Do you know about DE’s new Echo Dot plan?
27
27
Common Pitfalls and Challenges
Problem
Formulation
Model
Management
Feature
Engineering
Model
Learning
Label
Preparation
Model
Deployment
-Label Quality/ Noise
-Class Imbalance
-Model Degradation
-Feature quality monitoring
-Data quality
-Categorical Data
-Missing Data
-Outliers
-High Dimensionality
-Overfitting
-Scalability, speed, fast iteration
-Model Interpretation
-A/B testing
-Dependencies
28
Wrap Up
Inspirations/other talks to check out
•“Big data analytics and machine learning techniques to drive and grow
business" BigDataAnalyticwsandMLTechniques Micheal Lie, Chi-Yi Kuan, Wei Di, Burcu Baran
•“From Prototyping to Deployment at Scale with R and sparklyr" https://sais2018.netlify.com/#1 Kevin Kuo
•"MLeap and Combust ML" https://youtu.be/MGZDF6E41r4 Hollin Wilkins and Mikhail Semeniuk

More Related Content

Similar to Customer choice probabilities

Experimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles BakerExperimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles Baker
Databricks
 
BMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist DeckBMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist Deck
Sasha Lazarevic
 
1440 track 2 boire_using our laptop
1440 track 2 boire_using our laptop1440 track 2 boire_using our laptop
1440 track 2 boire_using our laptop
Rising Media, Inc.
 
Apache Spark Model Deployment
Apache Spark Model Deployment Apache Spark Model Deployment
Apache Spark Model Deployment
Databricks
 
Robotics
RoboticsRobotics
Robotics
UnknownOp10
 
Past Experiences and Future Challenges using Automatic Performance Modelling ...
Past Experiences and Future Challenges using Automatic Performance Modelling ...Past Experiences and Future Challenges using Automatic Performance Modelling ...
Past Experiences and Future Challenges using Automatic Performance Modelling ...
Paul Brebner
 
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdfES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
Minh Nguyen
 
Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Production model lifecycle management 2016 09
Production model lifecycle management 2016 09
Greg Makowski
 
Practical data science
Practical data sciencePractical data science
Practical data science
Ding Li
 
laptop price prediction presentation
laptop price prediction presentationlaptop price prediction presentation
laptop price prediction presentation
NeerajNishad4
 
AutoML for user segmentation: how to match millions of users with hundreds of...
AutoML for user segmentation: how to match millions of users with hundreds of...AutoML for user segmentation: how to match millions of users with hundreds of...
AutoML for user segmentation: how to match millions of users with hundreds of...
Institute of Contemporary Sciences
 
Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...
Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...
Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...
Project Controls Expo
 
ICPE2015
ICPE2015ICPE2015
ICPE2015
swy351
 
Expert sizing & methods of sizing validation
Expert sizing & methods of sizing validationExpert sizing & methods of sizing validation
Expert sizing & methods of sizing validation
Jaleel Ahmed Gulammohiddin
 
Barga Galvanize Sept 2015
Barga Galvanize Sept 2015Barga Galvanize Sept 2015
Barga Galvanize Sept 2015
Roger Barga
 
1710 track3 zhu
1710 track3 zhu1710 track3 zhu
1710 track3 zhu
Rising Media, Inc.
 
AI-900 - Fundamental Principles of ML.pptx
AI-900 - Fundamental Principles of ML.pptxAI-900 - Fundamental Principles of ML.pptx
AI-900 - Fundamental Principles of ML.pptx
kprasad8
 
Supply Chain Analytics with Simulation
Supply Chain Analytics with SimulationSupply Chain Analytics with Simulation
Supply Chain Analytics with Simulation
Steve Haekler
 
Supply Chain Analytics with Simulation
Supply Chain Analytics with SimulationSupply Chain Analytics with Simulation
Supply Chain Analytics with Simulation
ProModel Corporation
 
Deep learning
Deep learningDeep learning
Deep learning
Arun Shukla
 

Similar to Customer choice probabilities (20)

Experimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles BakerExperimental Design for Distributed Machine Learning with Myles Baker
Experimental Design for Distributed Machine Learning with Myles Baker
 
BMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist DeckBMDSE v1 - Data Scientist Deck
BMDSE v1 - Data Scientist Deck
 
1440 track 2 boire_using our laptop
1440 track 2 boire_using our laptop1440 track 2 boire_using our laptop
1440 track 2 boire_using our laptop
 
Apache Spark Model Deployment
Apache Spark Model Deployment Apache Spark Model Deployment
Apache Spark Model Deployment
 
Robotics
RoboticsRobotics
Robotics
 
Past Experiences and Future Challenges using Automatic Performance Modelling ...
Past Experiences and Future Challenges using Automatic Performance Modelling ...Past Experiences and Future Challenges using Automatic Performance Modelling ...
Past Experiences and Future Challenges using Automatic Performance Modelling ...
 
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdfES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
 
Production model lifecycle management 2016 09
Production model lifecycle management 2016 09Production model lifecycle management 2016 09
Production model lifecycle management 2016 09
 
Practical data science
Practical data sciencePractical data science
Practical data science
 
laptop price prediction presentation
laptop price prediction presentationlaptop price prediction presentation
laptop price prediction presentation
 
AutoML for user segmentation: how to match millions of users with hundreds of...
AutoML for user segmentation: how to match millions of users with hundreds of...AutoML for user segmentation: how to match millions of users with hundreds of...
AutoML for user segmentation: how to match millions of users with hundreds of...
 
Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...
Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...
Project Controls Expo - 31st Oct 2012 - Accurate Management Reports on 1me, e...
 
ICPE2015
ICPE2015ICPE2015
ICPE2015
 
Expert sizing & methods of sizing validation
Expert sizing & methods of sizing validationExpert sizing & methods of sizing validation
Expert sizing & methods of sizing validation
 
Barga Galvanize Sept 2015
Barga Galvanize Sept 2015Barga Galvanize Sept 2015
Barga Galvanize Sept 2015
 
1710 track3 zhu
1710 track3 zhu1710 track3 zhu
1710 track3 zhu
 
AI-900 - Fundamental Principles of ML.pptx
AI-900 - Fundamental Principles of ML.pptxAI-900 - Fundamental Principles of ML.pptx
AI-900 - Fundamental Principles of ML.pptx
 
Supply Chain Analytics with Simulation
Supply Chain Analytics with SimulationSupply Chain Analytics with Simulation
Supply Chain Analytics with Simulation
 
Supply Chain Analytics with Simulation
Supply Chain Analytics with SimulationSupply Chain Analytics with Simulation
Supply Chain Analytics with Simulation
 
Deep learning
Deep learningDeep learning
Deep learning
 

Recently uploaded

Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
pchutichetpong
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
nscud
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
ahzuo
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
u86oixdj
 

Recently uploaded (20)

Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
Data Centers - Striving Within A Narrow Range - Research Report - MCG - May 2...
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
一比一原版(CBU毕业证)卡普顿大学毕业证成绩单
 
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
一比一原版(UIUC毕业证)伊利诺伊大学|厄巴纳-香槟分校毕业证如何办理
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
SOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape ReportSOCRadar Germany 2024 Threat Landscape Report
SOCRadar Germany 2024 Threat Landscape Report
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
原版制作(Deakin毕业证书)迪肯大学毕业证学位证一模一样
 

Customer choice probabilities

  • 1. Customer Choice Probability Prediction Machine Learning: Process Walkthrough June 2019
  • 2. 2
  • 4. 4 Walkthrough of Production Modeling Solution
  • 5. 5 5 Machine Learning is a “Process” Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 6. 6 6 Case Study – B2C Modeling Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 7. 7 7 Problem Formulation Challenges of This Problem: • Class imbalance • Definition of churn can vary for predictive purposes. • Data evolves dynamically, time series events. • Data is sparse and noisy. Binary classification problem: let 𝑦𝑖 represent the product status of customer. 1: Churn 0: Customer Which customers are going to renew less, and what can we do? 𝑦𝑖 = What is the best channel to acquire? Which customer has upsell potential, why and what product?
  • 8. 8 8 Machine Learning is a “Process” Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 9. 9 9 Label Preparation Label: Close/Renew • Negative – 1: Customer churned • Positive – 0: Customer renewed
  • 10. 10 10 Machine Learning is a “Process” Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 11. 11 11 Feature Collecting • Feature is an individual measurable property or characteristic of a phenomenon being observed. Demographic Features • Demographics • Personal interests • Professional interests Etc. Behavioral Features • Pageviews • Account behavior • Campaign behavior • Professional interests
  • 12. 12 12 Feature Engineering • Numeric values: • Compute basic statistics such as: sum/avg/coverage/percentiles • Define anomaly with context: seasonal, product evolvement, etc. • Approach: percentage change, Z-score, etc -> aware of any statistical assumption restrictions. • Outlier in usage data: eg 25 kwh, 30,000 kwh. • Categorical values: • Convert to number • One-hot-encoding: binary indicator for each categorical value • Ordered categorical (ordinal) 1-10 -> 5, 20-30 -> 25 • Too many levels in marketing channel data which is a categorical data. o Ex. product channel product_channel_is_ptc : {0,1} product_channel_is_energyorgre: {0,1} Interactions • Cross-products of feature types, ex. o {𝑒𝑛𝑒𝑟𝑔𝑦𝑟𝑎𝑡𝑒𝑆𝐹𝐻} X {𝑢𝑠𝑎𝑔𝑒 𝑎𝑚𝑜𝑢𝑛𝑡𝐵𝑟𝑎𝑛𝑑}
  • 13. 13 13 Machine Learning is a “Process” Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 14. 14 14 Model Learning • Stable model, so we chose Gradient Boosting Machines (GMB). • GBM is unique compared to other decision tree algorithms because it builds models sequentially with higher weights given to those cases that were poorly predicted in previous models. • Giving higher weights to poorly predicted cases improves accuracy incrementally instead of simply taking an average of all models like a random forest algorithm. • By reducing the error iteratively to produce what will become the final model, GBM is an efficient and powerful algorithm for classification and regression problems. • Hyperparameter tips: o Number of trees: ❑ Large data needs many trees. ❑ Many features needs many trees. ❑ More trees will reduce bias but also comes with more computational costs. • Compare error rate in training set and in the validation set to catch possible overfitting/bias.
  • 15. 15 15 Model Learning - Evaluation • Standard AUC: 0.74 o Diagonal line: random guess o Above diagonal line ❑ Normal prediction ❑ Curves close to the perfect prediction have a better performance level than the ones close to the baseline. o Below diagonal line ❑ Poor prediction • Check feature importance to see if they pass the smell test. • Renewal/Recontract rate comparison between models. • Voluntary/Involuntary rate comparison between models.
  • 17. 17 Methods to Predict Our Churners • Random Forest - Robust for outliers and have good performance but was slow for large dataset and did not produce as accurate predictions. • L2 (Ridge) Regression / Elasticnet – Minimizes multicollinearity while also reducing variance of the model. • Artificial Neural Network – Deep Learning that acquires knowledge through learning (nodes). Performs best for tasks like clustering, classification, and pattern recognition. • Extreme Gradient Boosting Trees – decision-tree based machine learning technique that optimizes fit by modifying the remaining error of multiple prior weaker/simpler models.
  • 18. 18 18 Machine Learning is a “Process” Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 20. 20 20 Model Deployment Paths Mleap • Better for real-time prediction of a small number of records • Doesn't require Spark session, portable to apps/devices that support JVM Spark ML Persistence •Appropriate for batch jobs, scoring lots of records at once •Requires Spark session
  • 21. 21 21 Model Deployment Paths Towards a better deployment story Data Scientist: Hey this logistic regression churn model is ready to go! Here is the parquet file, and here is the documentation you need to use it. Big Data Engineer: Awesome! We won't need to write a bazillion if-else statements to recreate the model! When the model needs updating... Data Scientist: We decided to use a GBM instead for better log loss error, here's the updated bundle file. Big Data Engineer: Fantabulous! All we need to do is update the model directory! Source: https://sais2018.netlify.com/#39
  • 22. 22 22 22 Streams of Work • Data: Bring in (link to modelling data-set) remaining items on Data Sources List. • Modelling : • New ML approaches • Model non-linearities (eg. cubic spline) in key continuous vars • Model factor interactions • Further tuning of models • Combination/ensemble models • Time-Series models for precision tuning of portfolio-level predictions • Extended Problem (2019 H2+ start): Estimate effects of main factors on choice probabilities (customer specific factors, DE-controlled factors & external factors)
  • 23. 23 23 23 Goal and Success Criteria Probability Forecasting for Customer Choice (i.e. stay, churn, re-contract and renew) at individual level, all ERCOT customers over 30-day and 120-day windows. Models will be judged and selected based on both cross-sectional out-of-sample performance and (monthly) time-series performance against actual choice events. Final model will have to have the best discrimination power between customers and will have to roll into an accurate aggregated portfolio choice predictor ( by business segment). A proper model scoring rule is required. We will use: • Log-Loss (a.k.a. Cross Entropy) – principal scoring rule (proper) • Brier (a.k.a. Mean Sq Loss) – secondary use (proper for binary event prediction only) • ROC AUC (area under the curve) – ranking accuracy rule (not proper but informative on discrimination power) • Decile Band Prediction Matching (not proper but informative on distributional match of predicted probabilities to realized choice events)
  • 24. 24 DO NOT FORWARD | CONFIDENTIAL Machine Learning is a “Process” Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment
  • 25. 25 25 Model Deployment - Management • Schedule and run the scoring weekly. • Need to score customer accounts as well as “new” customer accounts for completeness. Do customers with invoice score higher? • After each scoring do some sniff test, ex. Are early tenure customers lining up as expected? • Monitor model/feature performance. • Refresh model as needed. • Weekly review new wins/losses by segment.
  • 26. 26 26 Model Interpretation Voluntary Score = 0.6 Roxanne Score = 0.9 Aimee Score = 0.9 Involuntary Score = 0.2 Recontract Score = 0.1 Voluntary Score = 0.1 Involuntary Score = 0.3 Renewal Score = 0.5 …Take advantage of our summer savings with a X$ bill discount. … Do you know about DE’s new Echo Dot plan?
  • 27. 27 27 Common Pitfalls and Challenges Problem Formulation Model Management Feature Engineering Model Learning Label Preparation Model Deployment -Label Quality/ Noise -Class Imbalance -Model Degradation -Feature quality monitoring -Data quality -Categorical Data -Missing Data -Outliers -High Dimensionality -Overfitting -Scalability, speed, fast iteration -Model Interpretation -A/B testing -Dependencies
  • 28. 28 Wrap Up Inspirations/other talks to check out •“Big data analytics and machine learning techniques to drive and grow business" BigDataAnalyticwsandMLTechniques Micheal Lie, Chi-Yi Kuan, Wei Di, Burcu Baran •“From Prototyping to Deployment at Scale with R and sparklyr" https://sais2018.netlify.com/#1 Kevin Kuo •"MLeap and Combust ML" https://youtu.be/MGZDF6E41r4 Hollin Wilkins and Mikhail Semeniuk