SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
PREDICTING CUSTOMER BEHAVIOUR
S

AND MARKET BASKET ANALYSIS
YALIN YENE
R

September 04, 2020
Methodology
Results
Conclusions
Introduction
Future Work
Introduction Methodology Results Conclusions Future Work Appendix
Business Need: Predicting whether a customer will reorder a product.
Solution:
Using Instacart dataset,
fi
nding customer behaviour by using market
basket analysis techniques and try to predict next order.
Objective and
Goal:
CSV to PostgreSQL.


Join, Groupby, Having etc.


Connect PostgreSQL with Jupyter Notebook


Exploratory Data Analysis.


Building ML Algorithms


Feature Engineering.


Evaluate Model
3
4
–IGD Retail Analysis, 2019
“In 2019, U.S. supermarket and grocery store sales amounted to
about 1.5 trillion U.S. dollars.
Introduction Methodology Results Conclusions Future Work Appendix
5
Introduction Results Conclusions Future Work AppendixMethodology
ProductsDepartments Aisle
Orders
Order


Products
13413421
~3.5M ~34M
6
Introduction Results Conclusions Future Work AppendixMethodology
7
Introduction Methodology Results Conclusions Future Work Appendix
Exploratory Data Analysis
8
Introduction Methodology Results Conclusions Future Work Appendix
Exploratory Data Analysis
9
Introduction Methodology Results Conclusions Future Work Appendix
Exploratory Data Analysis
10
Introduction Methodology Results Conclusions Future Work Appendix
Exploratory Data Analysis
11
Introduction Methodology Results Conclusions Future Work Appendix
12
Introduction Methodology Results Future Work Appendix
Baseline Classi
fi
cation - V1


Product Features -V2


Product total orders

Product average add to cart order


User Features -V3


User total order


User average chart size


User total product


User average days since last order


User - Product - V4


User product average add to cart order


User product order frequency


Conclusions
Category - Dummy Variables -V5


Day of Week - Dummy Variables -V6


Features Importance -V7


Resampled -V8


Smoted - V9


Cross Validation - V10
13
Introduction Methodology Results Future Work Appendix
Baseline Classi
fi
cation - V1- Metrics Comparasion


Conclusions
14
Introduction Methodology Results Future Work Appendix
Baseline Classi
fi
cation - V1- Metrics Comparison


Conclusions
15
Introduction Methodology Results Future Work Appendix
Baseline Classi
fi
cation - V1 - Confusion Matrix


Conclusions
16
Introduction Methodology Results Future Work Appendix
Baseline Classi
fi
cation - V1


Product Features -V2


Product total orders

Product average add to cart order


User Features -V3


User total order


User average chart size


User total product


User average days since last order


User - Product - V4


User product average add to cart order


User product order frequency


Conclusions
Category - Dummy Variables -V5


Day of Week - Dummy Variables -V6


Features Importance -V7


Resampled -V8


Smoted - V9


Cross Validation - V10
17
Introduction Methodology Results Future Work Appendix
Dummy Variables - V5- Metrics Comparasion


Conclusions
18
Introduction Methodology Results Future Work Appendix
Category - Dummy Variables -V5 Confusion Matrix


Conclusions
19
Introduction Methodology Results Future Work Appendix
Features Importance -V7


Conclusions
20
Introduction Methodology Results Future Work Appendix
Resampled -V8


Conclusions
21
Introduction Methodology Results Future Work Appendix
SMOTE -V9


Conclusions
22
Introduction Methodology Results Future Work Appendix
SMOTE -V9


Conclusions
DecisionTree-CVKNN-CV RandomForest-CV
23
Introduction Methodology Results Future Work AppendixConclusions
24
Introduction Methodology Results Future Work AppendixConclusions
25
Introduction Methodology Results Conclusions Future Work Appendix
This project can be extended further by;


• Obtain Detail Data for clustering (customer classi
fi
cation).


• Using cloud & big data platform for implementing ML Algorithms with whole
data
THANK YOU
YALIN YENE
R

+44 7786 76155
9

yalinyener@gmail.com


https://github.com/yalinyener


https://medium.com/@yalinyener


https://www.linkedin.com/in/yalinyener

Contenu connexe

Similaire à Customer Behaviours

Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...
Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...
Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...QueBIT Consulting
 
Using predictive analytics to increase consumer response rate - PyCon Irelan...
 Using predictive analytics to increase consumer response rate - PyCon Irelan... Using predictive analytics to increase consumer response rate - PyCon Irelan...
Using predictive analytics to increase consumer response rate - PyCon Irelan...Conor Duke
 
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...Minitab, LLC
 
20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...
20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...
20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...Manu García Rodríguez
 
Applied Machine Learning for Ranking Products in an Ecommerce Setting
Applied Machine Learning for Ranking Products in an Ecommerce SettingApplied Machine Learning for Ranking Products in an Ecommerce Setting
Applied Machine Learning for Ranking Products in an Ecommerce SettingDatabricks
 
IFRS 9 automation and loan pricing
IFRS 9 automation and loan pricingIFRS 9 automation and loan pricing
IFRS 9 automation and loan pricingSohail_farooq
 
WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project (3)
WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project   (3)WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project   (3)
WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project (3)Matthew Hallowell Jr.
 
How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...
How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...
How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...AtScale
 
DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...
DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...
DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...DataBench
 
Improving OHS & Productivity of RMG Industries By Analyzing Various KPIs
Improving OHS & Productivity of RMG Industries By Analyzing Various  KPIsImproving OHS & Productivity of RMG Industries By Analyzing Various  KPIs
Improving OHS & Productivity of RMG Industries By Analyzing Various KPIsKarina Islam
 
Benchmark Your Costs and Transform Your Source-to-Pay Process
Benchmark Your Costs and Transform Your Source-to-Pay ProcessBenchmark Your Costs and Transform Your Source-to-Pay Process
Benchmark Your Costs and Transform Your Source-to-Pay ProcessSAP Ariba
 
Optimal management presentation for investors about supply chains optimization
Optimal management presentation for investors about supply chains optimizationOptimal management presentation for investors about supply chains optimization
Optimal management presentation for investors about supply chains optimizationAndrey Sukhobokov
 
Strategic value assessment (sva) web
Strategic value assessment (sva)   webStrategic value assessment (sva)   web
Strategic value assessment (sva) webCharles Novak
 
Business analytics -Abhay Mahalley
Business analytics -Abhay MahalleyBusiness analytics -Abhay Mahalley
Business analytics -Abhay MahalleyAbhay Mahalley
 
Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019
Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019
Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019DataBench
 
Indirect Plan
Indirect PlanIndirect Plan
Indirect Planrfucci
 
Assessment of smart grid initiatives: the ISGAN smartgrideval toolkit
Assessment of smart grid initiatives: the ISGAN smartgrideval toolkitAssessment of smart grid initiatives: the ISGAN smartgrideval toolkit
Assessment of smart grid initiatives: the ISGAN smartgrideval toolkitLeonardo ENERGY
 

Similaire à Customer Behaviours (20)

Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...
Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...
Integrating IBM SPSS Predictive Modeling and Forecasting with IBM Cognos TM1 ...
 
Using predictive analytics to increase consumer response rate - PyCon Irelan...
 Using predictive analytics to increase consumer response rate - PyCon Irelan... Using predictive analytics to increase consumer response rate - PyCon Irelan...
Using predictive analytics to increase consumer response rate - PyCon Irelan...
 
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
Maximize Efficiency with Minitab Workspace and Minitab Statistical Software -...
 
20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...
20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...
20150620 Meetup U-Qasar - Obtaining an integrated and objective overview of t...
 
Applied Machine Learning for Ranking Products in an Ecommerce Setting
Applied Machine Learning for Ranking Products in an Ecommerce SettingApplied Machine Learning for Ranking Products in an Ecommerce Setting
Applied Machine Learning for Ranking Products in an Ecommerce Setting
 
IFRS 9 automation and loan pricing
IFRS 9 automation and loan pricingIFRS 9 automation and loan pricing
IFRS 9 automation and loan pricing
 
Betta Strutt1
Betta Strutt1Betta Strutt1
Betta Strutt1
 
WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project (3)
WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project   (3)WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project   (3)
WK 6 - Consulting Project, Part 3 - Final Nine West SAP Project (3)
 
How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...
How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...
How to Build Business Forecasts With Microsoft Excel Using 10x the Data at 20...
 
DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...
DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...
DataBench Virtual BenchLearning "Big Data - Benchmark your way to Excellent B...
 
Improving OHS & Productivity of RMG Industries By Analyzing Various KPIs
Improving OHS & Productivity of RMG Industries By Analyzing Various  KPIsImproving OHS & Productivity of RMG Industries By Analyzing Various  KPIs
Improving OHS & Productivity of RMG Industries By Analyzing Various KPIs
 
Benchmark Your Costs and Transform Your Source-to-Pay Process
Benchmark Your Costs and Transform Your Source-to-Pay ProcessBenchmark Your Costs and Transform Your Source-to-Pay Process
Benchmark Your Costs and Transform Your Source-to-Pay Process
 
Optimal management presentation for investors about supply chains optimization
Optimal management presentation for investors about supply chains optimizationOptimal management presentation for investors about supply chains optimization
Optimal management presentation for investors about supply chains optimization
 
Strategic value assessment (sva) web
Strategic value assessment (sva)   webStrategic value assessment (sva)   web
Strategic value assessment (sva) web
 
Business analytics -Abhay Mahalley
Business analytics -Abhay MahalleyBusiness analytics -Abhay Mahalley
Business analytics -Abhay Mahalley
 
Business analytics !!
Business analytics !!Business analytics !!
Business analytics !!
 
Business analytics
Business analytics Business analytics
Business analytics
 
Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019
Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019
Big Data Benchmarking, Tomas Pariente Lobo, Open Expo Europe, 20/06/2019
 
Indirect Plan
Indirect PlanIndirect Plan
Indirect Plan
 
Assessment of smart grid initiatives: the ISGAN smartgrideval toolkit
Assessment of smart grid initiatives: the ISGAN smartgrideval toolkitAssessment of smart grid initiatives: the ISGAN smartgrideval toolkit
Assessment of smart grid initiatives: the ISGAN smartgrideval toolkit
 

Dernier

VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 

Dernier (20)

VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 

Customer Behaviours