SlideShare a Scribd company logo
1 of 13
Download to read offline
Kaggle Walmart sales prediction
Data Science General Assembly in DC
19 May 2014
Yifan Li
Contents
The problem
The data
The model
The result
Conclusion
The problem
To predict the Walmart sales number
Regression problem
1. Given past sales, markdown(sales) events
2. Given associated CPI, temperature,
unemployment, fuel_price, store type, store
size
The data
• The weekly sales data corresponding to store
line plot 		 	 	 	 	 	 	 histogram
The data(cont.)
Which feature to choose?
type vs. size
Training data 	 	 	 	 Test data
The data(cont.)
Handling missing Markdown data
1. Fill it with zero
Handling missing CPI, temperature data
1. (CPI)Fill it with linear prediction of
Temperature and Fuel Price
2. (Unemployment)Fill it with linear prediction
of CPI and Temperature
The model
linear regression: lm{stats}
regularization: glmnet{glmnet}
least absolute deviation: rq{quantreg}
linear regression
The result
regularization(result is not improved)
The result(cont.)
The result(cont.)!
linear regression with weight(1 for normal
week, 5 for holiday week)
The result(cont.)!
least absolute deviation with weight
The result(cont.)
first Kaggle experience
44 submissions(maximum 5 submissions per
day)
592nd/694(18416.22852 points)
beat the all zero benchmark(647th,22265.71813
points)
Conclusion
Linear regression is a good starting point for feature
selection(which takes a lot of time)
Using model that corresponding to the evaluation method
may improve score
The best five on leaderboard uses Autoregression,
Random Forest:
With limited data, more sophisticated algorithm would be
beneficial

More Related Content

What's hot

Vendor evaluation config details
Vendor evaluation config detailsVendor evaluation config details
Vendor evaluation config detailsNilesh Tawade
 
COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...
COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...
COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...Zahid Gondal
 
Market Access, Marketing Behavior And Efficiency Among Farming Households
Market Access, Marketing Behavior And Efficiency Among Farming HouseholdsMarket Access, Marketing Behavior And Efficiency Among Farming Households
Market Access, Marketing Behavior And Efficiency Among Farming HouseholdsKnowledge Mupanda
 
Calculating cost of goods sold in manufacturing
Calculating cost of goods sold in manufacturingCalculating cost of goods sold in manufacturing
Calculating cost of goods sold in manufacturingMRPeasy
 

What's hot (6)

ABC analysis
ABC analysisABC analysis
ABC analysis
 
Vendor evaluation config details
Vendor evaluation config detailsVendor evaluation config details
Vendor evaluation config details
 
COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...
COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...
COST OF GOODS MANUFACTURED & MIXED COST & Contribution Margin Income Statemen...
 
Market Access, Marketing Behavior And Efficiency Among Farming Households
Market Access, Marketing Behavior And Efficiency Among Farming HouseholdsMarket Access, Marketing Behavior And Efficiency Among Farming Households
Market Access, Marketing Behavior And Efficiency Among Farming Households
 
The ABC analysis
The ABC analysis The ABC analysis
The ABC analysis
 
Calculating cost of goods sold in manufacturing
Calculating cost of goods sold in manufacturingCalculating cost of goods sold in manufacturing
Calculating cost of goods sold in manufacturing
 

Viewers also liked

Final Project Report - Walmart Sales
Final Project Report - Walmart SalesFinal Project Report - Walmart Sales
Final Project Report - Walmart SalesDeepti Bahel
 
MIS in Walmart
MIS in Walmart MIS in Walmart
MIS in Walmart SZABIST
 
Walmart Makes Big Data Part of Its DNA - Keynote Presentation
Walmart Makes Big Data Part of Its DNA - Keynote PresentationWalmart Makes Big Data Part of Its DNA - Keynote Presentation
Walmart Makes Big Data Part of Its DNA - Keynote PresentationMark van Rijmenam
 
Wal-Mart Analysis (Strategic Management)
Wal-Mart Analysis (Strategic Management)Wal-Mart Analysis (Strategic Management)
Wal-Mart Analysis (Strategic Management)Oscar Vadillo
 
Organizational Communication-CMN 212-Overview of Course
Organizational Communication-CMN 212-Overview of CourseOrganizational Communication-CMN 212-Overview of Course
Organizational Communication-CMN 212-Overview of Coursemspoole
 
Proyecto hacu walmart presentación grupal feb.
Proyecto hacu walmart presentación grupal feb.Proyecto hacu walmart presentación grupal feb.
Proyecto hacu walmart presentación grupal feb.glcolon
 
Big Data and Big Law at Walmart - StampedeCon 2013
Big Data and Big Law at Walmart - StampedeCon 2013Big Data and Big Law at Walmart - StampedeCon 2013
Big Data and Big Law at Walmart - StampedeCon 2013StampedeCon
 
The 50 Craziest Things That Ever Happened At Walmart
The 50 Craziest Things That Ever Happened At WalmartThe 50 Craziest Things That Ever Happened At Walmart
The 50 Craziest Things That Ever Happened At WalmartInstant Checkmate
 
Insurance marketing
Insurance marketingInsurance marketing
Insurance marketingHARSH JAIN
 
Case study Walmart v1
Case study Walmart v1Case study Walmart v1
Case study Walmart v1mbartugs
 
Chapter 12 & 14 depreciation of non current assets clc
Chapter 12 & 14 depreciation of non current assets clcChapter 12 & 14 depreciation of non current assets clc
Chapter 12 & 14 depreciation of non current assets clcLyLy Tran
 
Walmart marketing
Walmart marketing Walmart marketing
Walmart marketing Bushra Khan
 
A Study on 21st Century Business Intelligence
A Study on 21st Century Business Intelligence A Study on 21st Century Business Intelligence
A Study on 21st Century Business Intelligence Anit Thapaliya
 

Viewers also liked (20)

Walmart sales forecast
Walmart sales forecastWalmart sales forecast
Walmart sales forecast
 
Final Project Report - Walmart Sales
Final Project Report - Walmart SalesFinal Project Report - Walmart Sales
Final Project Report - Walmart Sales
 
MIS in walmart
MIS in walmartMIS in walmart
MIS in walmart
 
MIS in Walmart
MIS in Walmart MIS in Walmart
MIS in Walmart
 
Presentation on Walmart
Presentation on WalmartPresentation on Walmart
Presentation on Walmart
 
Walmart Makes Big Data Part of Its DNA - Keynote Presentation
Walmart Makes Big Data Part of Its DNA - Keynote PresentationWalmart Makes Big Data Part of Its DNA - Keynote Presentation
Walmart Makes Big Data Part of Its DNA - Keynote Presentation
 
WalMart Analysis
WalMart AnalysisWalMart Analysis
WalMart Analysis
 
Operation Management for Walmart
Operation Management for WalmartOperation Management for Walmart
Operation Management for Walmart
 
Wal-Mart Analysis (Strategic Management)
Wal-Mart Analysis (Strategic Management)Wal-Mart Analysis (Strategic Management)
Wal-Mart Analysis (Strategic Management)
 
Organizational Communication-CMN 212-Overview of Course
Organizational Communication-CMN 212-Overview of CourseOrganizational Communication-CMN 212-Overview of Course
Organizational Communication-CMN 212-Overview of Course
 
Proyecto hacu walmart presentación grupal feb.
Proyecto hacu walmart presentación grupal feb.Proyecto hacu walmart presentación grupal feb.
Proyecto hacu walmart presentación grupal feb.
 
Big Data and Big Law at Walmart - StampedeCon 2013
Big Data and Big Law at Walmart - StampedeCon 2013Big Data and Big Law at Walmart - StampedeCon 2013
Big Data and Big Law at Walmart - StampedeCon 2013
 
The 50 Craziest Things That Ever Happened At Walmart
The 50 Craziest Things That Ever Happened At WalmartThe 50 Craziest Things That Ever Happened At Walmart
The 50 Craziest Things That Ever Happened At Walmart
 
Insurance marketing
Insurance marketingInsurance marketing
Insurance marketing
 
Case study Walmart v1
Case study Walmart v1Case study Walmart v1
Case study Walmart v1
 
Walmart
Walmart Walmart
Walmart
 
Walmart Presentation
Walmart PresentationWalmart Presentation
Walmart Presentation
 
Chapter 12 & 14 depreciation of non current assets clc
Chapter 12 & 14 depreciation of non current assets clcChapter 12 & 14 depreciation of non current assets clc
Chapter 12 & 14 depreciation of non current assets clc
 
Walmart marketing
Walmart marketing Walmart marketing
Walmart marketing
 
A Study on 21st Century Business Intelligence
A Study on 21st Century Business Intelligence A Study on 21st Century Business Intelligence
A Study on 21st Century Business Intelligence
 

Similar to Walmart sales

Promotion Analytics in Consumer Electronics - Module 1: Data
Promotion Analytics in Consumer Electronics - Module 1: DataPromotion Analytics in Consumer Electronics - Module 1: Data
Promotion Analytics in Consumer Electronics - Module 1: DataMinha Hwang
 
[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...
[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...
[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...DataScienceConferenc1
 
IRJET- Retail Chain Sales Analysis and Forecasting
IRJET-  	  Retail Chain Sales Analysis and ForecastingIRJET-  	  Retail Chain Sales Analysis and Forecasting
IRJET- Retail Chain Sales Analysis and ForecastingIRJET Journal
 
Kaggle winning solutions: Retail Sales Forecasting
Kaggle winning solutions: Retail Sales ForecastingKaggle winning solutions: Retail Sales Forecasting
Kaggle winning solutions: Retail Sales ForecastingYan Xu
 
Promotion Analytics - Module 2: Model and Estimation
Promotion Analytics - Module 2: Model and EstimationPromotion Analytics - Module 2: Model and Estimation
Promotion Analytics - Module 2: Model and EstimationMinha Hwang
 
Webinar_DemandPlanning_Forecasting.pdf
Webinar_DemandPlanning_Forecasting.pdfWebinar_DemandPlanning_Forecasting.pdf
Webinar_DemandPlanning_Forecasting.pdfssuser252a1f
 
Kingpin: Fast. Factual. Full-picture FMCG Forecasting
Kingpin: Fast. Factual. Full-picture FMCG ForecastingKingpin: Fast. Factual. Full-picture FMCG Forecasting
Kingpin: Fast. Factual. Full-picture FMCG ForecastingKeng Yong Quek
 
The Proaction Group 9 box Workshop
The Proaction Group 9 box WorkshopThe Proaction Group 9 box Workshop
The Proaction Group 9 box WorkshopThe Proaction Group
 
schuster_econometricsWritingSample
schuster_econometricsWritingSampleschuster_econometricsWritingSample
schuster_econometricsWritingSampleRoman Schuster
 

Similar to Walmart sales (9)

Promotion Analytics in Consumer Electronics - Module 1: Data
Promotion Analytics in Consumer Electronics - Module 1: DataPromotion Analytics in Consumer Electronics - Module 1: Data
Promotion Analytics in Consumer Electronics - Module 1: Data
 
[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...
[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...
[DSC Europe 22] Using AI to solve complex business problems: optimizing markd...
 
IRJET- Retail Chain Sales Analysis and Forecasting
IRJET-  	  Retail Chain Sales Analysis and ForecastingIRJET-  	  Retail Chain Sales Analysis and Forecasting
IRJET- Retail Chain Sales Analysis and Forecasting
 
Kaggle winning solutions: Retail Sales Forecasting
Kaggle winning solutions: Retail Sales ForecastingKaggle winning solutions: Retail Sales Forecasting
Kaggle winning solutions: Retail Sales Forecasting
 
Promotion Analytics - Module 2: Model and Estimation
Promotion Analytics - Module 2: Model and EstimationPromotion Analytics - Module 2: Model and Estimation
Promotion Analytics - Module 2: Model and Estimation
 
Webinar_DemandPlanning_Forecasting.pdf
Webinar_DemandPlanning_Forecasting.pdfWebinar_DemandPlanning_Forecasting.pdf
Webinar_DemandPlanning_Forecasting.pdf
 
Kingpin: Fast. Factual. Full-picture FMCG Forecasting
Kingpin: Fast. Factual. Full-picture FMCG ForecastingKingpin: Fast. Factual. Full-picture FMCG Forecasting
Kingpin: Fast. Factual. Full-picture FMCG Forecasting
 
The Proaction Group 9 box Workshop
The Proaction Group 9 box WorkshopThe Proaction Group 9 box Workshop
The Proaction Group 9 box Workshop
 
schuster_econometricsWritingSample
schuster_econometricsWritingSampleschuster_econometricsWritingSample
schuster_econometricsWritingSample
 

Recently uploaded

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Walmart sales