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

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Recently uploaded (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Walmart sales