Principles of Mathematical Economics applied to a Physical-Stores Retail Business

Ashwin Rao
Ashwin RaoVice President, Data Science & Optimization at Target à Target
Principles of Mathematical Economics applied to a
Physical-Stores Retail Business
Ashwin Rao
ICME, Stanford University
March 15, 2019
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 1 / 24
Mathematical Economics and Retail Business
Mathematical Economics is a vast and diverse area, consisting of
different flavors of Optimization and Prediction problems
We focus on a subset of these problems which are pertinent to
running a real-world Retail Business
In particular, many Retail problems involve Stochastic Optimization
... that can be viewed from the abstract lens of Mathematical Econ.
We can model these as Markov Decision Processes, eg:
How to Supply optimally given random demand and cost structures
How to Price optimally given random demand and supply
Retail also involves forecasting problems, eg: Demand Forecasting
... as well as optimization problems on strategy/planning/scheduling
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 2 / 24
Inventory Control
A fundamental problem in Retail is Inventory Control
How to move inventory optimally from suppliers to shoppers
Let us view this from the lens of Mathematical Economics
Abstracting to a Supply ⇒ Demand optimization problem
Nirvana is when Supply appears “just in time” to satisfy demand
We start with an exposition of two classical simple problems:
Economic Order Quantity (EOQ) problem
Newsvendor problem
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 3 / 24
Economic Order Quantity (EOQ)
Assumption: Demand for an item is at a constant rate of µ units/year
Note the big assumption of deterministic demand
A new order is delivered in full when inventory reaches 0
Fixed cost K for each order of non-zero units
Holding cost h/unit/year for storage in store
What is the optimal number of units to order?
To minimize the annual cost of ordering + storage
Note: Deterministic Demand is often an unreasonable assumption
But EOQ is a useful foundation to build intuition
Many extensions to EOQ (eg: EOQ for Perishables)
EOQ concept goes beyond Retail (foundation in Mathematical Econ.)
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 4 / 24
Solving EOQ
Assume Q is the order quantity (Q∗ is optimal order quantity)
Then we order at annual frequency µ
Q (Period Q
µ )
Annual Ordering Cost is µK
Q
Annual Holding Cost is hQ
2 (note: average inventory during year is Q
2 )
Annual Total Cost is:
µK
Q
+
hQ
2
Taking derivative w.r.t. Q and setting it to 0 yields:
Q∗
=
2µK
h
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 5 / 24
Newsvendor Problem
Daily demand for newspapers is a random variable x
The newsvendor has an estimate of the PDF f (x) of daily demand
For each newspaper that stays unsold, we suffer a Holding Cost h
Think of h as the purchase price minus salvage price
For each newspaper we’re short on, we suffer a Stockout Cost p
Think of p as the missed profits (sale price minus purchase price)
But p should also include potential loss of future customers
What is the optimum # of newspapers to bring in the morning?
To minimize the expected cost (function of f , h and p)
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 6 / 24
Newsvendor Problem
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 7 / 24
Solution to the Newsvendor problem
For tractability, we assume newspapers are a continuous variable x
Then, we need to solve for the optimal supply S that maximizes
g(S) = h
S
0
(S − x) · f (x) · dx + p
∞
S
(x − S) · f (x) · dx
Setting g (S) = 0, we get:
Optimal Supply S∗
= F−1
(
p
p + h
)
where F(y) =
y
0 f (x)dx is the CDF of daily demand
p
p+h is known as the critical fractile
It is the fraction of days when the newsvendor goes “out-of-stock”
Assuming the newsvendor always brings this optimal supply S∗
Solution details and connections with Financial Options Pricing here
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 8 / 24
Single-store, Single-item Inventory Control
The store experiences random daily demand given by PDF f (x)
The store can order daily from a supplier carrying infinite inventory
There’s a cost associated with ordering, and order arrives in L days
Like newsvendor, there’s a Holding Cost h and Stockout Cost p
This is an MDP where State is current Inventory Level at the store
State also includes current in-transit inventory (from supplier)
Action is quantity to order in any given State
Reward function has h, p (just like newsvendor), and ordering cost
Transition probabilities are governed by demand distribution f (x)
This has a closed-form solution, similar to newsvendor fomula
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 9 / 24
Optimal Ordering Policy
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 10 / 24
The Core of Textbook Problem has this Pictorial Intuition
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 11 / 24
Costs viewed against End-of-Day Inventory
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 12 / 24
UnderCapacity and OverCapacity Costs
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 13 / 24
UnderCapacity Cost: Customer Psychology and Economics
Retail Mantra: “Stack it high and watch it fly”
Customers like to see shelves well stocked
Visual emptiness is known to be a sales deterrent
So, full-looking shelves are part of presentation strategy
At a certain level of emptiness, the deterrent rises sharply
Hence the convex nature of this cost curve
Note that this curve varies from item to item
It also varies from regular season to end of season
Modeling/calibrating this is tricky!
However, getting a basic model in place is vital
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 14 / 24
OverCapacity Cost: Backroom Space Constraints
Retail store backrooms have limited capacity
Typically tens of thousands of items compete for this space
Retailers like to have clean and organized backrooms
A perfect model is when all your inventory is on store shelves
With backroom used purely as a hub for home deliveries
Practically, some overflow from shelves is unavoidable
Hence, the convex nature of this curve
Modeling this is hard because it’s a multi-item cost/constraint
Again, getting a basic model in place is vital
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 15 / 24
What other costs are involved?
Holding Cost: Interest on Inventory, Superficial Damage, Maintenance
Stockout Cost: Lost Sales, sometimes Lost Customers
Labor Cost: Replenishment involves movement from truck to shelf
Spoilage Cost: Food & Beverages can have acute perishability
End-of-Season/Obsolescence Cost: Intersects with Clearance Pricing
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 16 / 24
Practical Inventory Control as a Markov Decision Process
The store experiences random daily demand
The store can place a replenishment order in casepack mutiples
This is an MDP where State is current Inventory Level at the store
State also includes current in-transit inventory (from warehouse)
Action is the multiple of casepack to order (or not order)
Reward function involves all of the costs we went over earlier
State transitions governed by demand probability distribution
Solve: Dynamic Programming or Reinforcement Learning Algorithms
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 17 / 24
Multi-node and Multi-item Inventory Control
In practice, Inventory flows through a network of warehouses
From source (suppliers) to destination (stores or homes)
So, we have to solve a multi-“node” Inventory Control problem
State is joint inventory across all nodes (and between nodes)
Action is recommended movements of inventory between nodes
Reward is the aggregate of daily costs across the network
Space and Throughput constraints are multi-item costs/constraints
So, real-world problem is multi-node and multi-item (giant MDP)
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 18 / 24
Clearance Pricing
You are a few weeks away from end-of-season (eg: Christmas Trees)
Assume you have too much inventory in your store
What is the optimal sequence of price markdowns?
Under (uncertain) demand responding to markdowns
So as to maximize your total profit (sales revenue minus costs)
Note: There is a non-trivial cost of performing a markdown
If price markdowns are small, we end up with surplus at season-end
Surplus often needs to be disposed at poor salvage price
If price reductions are large, we run out of Christmas trees early
“Stockout” cost is considered to be large during holiday season
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 19 / 24
MDP for Clearance Pricing
State is [Days Left, Current Inventory, Current Price, Market Info]
Action is Price Markdown
Reward includes Sales revenue, markdown cost, stockout cost, salvage
Reward & State-transitions governed by Price Elasticity of Demand
Real-world Model can be quite complex (eg: competitor pricing)
Ambitious Idea: Blend Inventory and Price Control into one MDP
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 20 / 24
Perspective from the Trenches (to solve real-world MDPs)
I always start with a simple version of problem to develop intuition
My first line of attack is DP customized to the problem structure
RL Algorithms that are my personal favorites (links to lectures):
Deep Q-Network (DQN): Experience Replay, 2nd Target Network
Least Squares Policy Iteration (LSPI) - Batch Linear System
Exact Gradient Temporal-Difference (GTD)
Policy Gradient (esp. Natural Gradient, TRPO)
Separate Model Estimation from Policy Optimization
So we could customize RL algorithms to take advantage of:
Knowledge of transition probabilities
Knowledge of reward function
Any problem-specific structure that simplifies the algorithm
Feature Engineering based on known closed-form approximations
Many real-world, large-scale problems ultimately come down to
suitable choices of DNN architectures and hyperparameter tuning
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 21 / 24
Inputs to these MDPs (other than the costs)
Daily Demand Forecast probability distribution function
Shelf Capacity
Casepack size
Lead Time (time from replenishment order to arrival on shelf)
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 22 / 24
Where do these inputs come from?
From solutions to various other Forecasting and Planning problems
Demand Forecasting is a supervised learning problem (DNNs!)
Planning problems are Optimization problems
Some Planning Problems:
Assortment Selection
Shelf-size Planning
Casepack Sizing
Network Planning (for Lead Time)
Labor Planning
Some planning problems need as input solution to Inventory Control
How do we resolve this Chicken-and-egg situation?
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 23 / 24
The Fixed-Point of Planning and Control
Planning problems are optimizations over parameter choices p
For example, a set of Shelf-size choices or casepack choices
Denote the Inventory Control MDP as Dp (p is input to MDP)
Denote the Solution (Optimal Policy) to Dp as π∗
p
Solve the planning problems (optimization) with input π∗
p
The solution is the optimal parameter set p∗
Feed p∗ back into the MDP to solve for policy π∗
p∗
Iterate this until we get stable p∗ and π∗
p∗
Very important to design the interfaces consistently
Clean software framework for overall system design is vital to success
Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 24 / 24
1 sur 24

Recommandé

Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ... par
Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...
Stanford CME 241 - Reinforcement Learning for Stochastic Control Problems in ...Ashwin Rao
863 vues19 diapositives
A.I. for Dynamic Decisioning under Uncertainty (for real-world problems in Re... par
A.I. for Dynamic Decisioning under Uncertainty (for real-world problems in Re...A.I. for Dynamic Decisioning under Uncertainty (for real-world problems in Re...
A.I. for Dynamic Decisioning under Uncertainty (for real-world problems in Re...Ashwin Rao
1.2K vues35 diapositives
Towards Improved Pricing and Hedging of Agency Mortgage-backed Securities par
Towards Improved Pricing and Hedging of Agency Mortgage-backed SecuritiesTowards Improved Pricing and Hedging of Agency Mortgage-backed Securities
Towards Improved Pricing and Hedging of Agency Mortgage-backed SecuritiesAshwin Rao
1.2K vues54 diapositives
Using Financial Forecasts to Advise Business - Method of Forecasting - Revised par
Using Financial Forecasts to Advise Business - Method of Forecasting - RevisedUsing Financial Forecasts to Advise Business - Method of Forecasting - Revised
Using Financial Forecasts to Advise Business - Method of Forecasting - RevisedIrma Miller
2.1K vues43 diapositives
Chapter 3_OM par
Chapter 3_OMChapter 3_OM
Chapter 3_OMguest537689
6.5K vues103 diapositives
Bba 3274 qm week 6 part 2 forecasting par
Bba 3274 qm week 6 part 2 forecastingBba 3274 qm week 6 part 2 forecasting
Bba 3274 qm week 6 part 2 forecastingStephen Ong
4K vues87 diapositives

Contenu connexe

Tendances

Demand forecasting 12 par
Demand forecasting 12Demand forecasting 12
Demand forecasting 12Pranav Kumar Ojha
33K vues24 diapositives
demand forecasting par
demand forecastingdemand forecasting
demand forecastingleneeshngopal
6.4K vues27 diapositives
Forecasting par
ForecastingForecasting
ForecastingSUDARSHAN KUMAR PATEL
3.5K vues22 diapositives
Bba 1584 planning n forecasting par
Bba 1584 planning n forecastingBba 1584 planning n forecasting
Bba 1584 planning n forecastinglecturer-notes2014
3.1K vues73 diapositives
Class notes forecasting par
Class notes forecastingClass notes forecasting
Class notes forecastingArun Kumar
14.7K vues30 diapositives
Forecasting and methods of forecasting par
Forecasting and methods of forecastingForecasting and methods of forecasting
Forecasting and methods of forecastingMilind Pelagade
18.9K vues24 diapositives

Tendances(20)

Class notes forecasting par Arun Kumar
Class notes forecastingClass notes forecasting
Class notes forecasting
Arun Kumar14.7K vues
Forecasting and methods of forecasting par Milind Pelagade
Forecasting and methods of forecastingForecasting and methods of forecasting
Forecasting and methods of forecasting
Milind Pelagade18.9K vues
Formulation of Predictive and Positive theory par Asmita Nagpal
Formulation of Predictive and Positive theoryFormulation of Predictive and Positive theory
Formulation of Predictive and Positive theory
Asmita Nagpal23 vues
FORECASTING par kzoe1996
FORECASTINGFORECASTING
FORECASTING
kzoe19966.2K vues
Stock Return Forecast - Theory and Empirical Evidence par Tai Tran
Stock Return Forecast - Theory and Empirical EvidenceStock Return Forecast - Theory and Empirical Evidence
Stock Return Forecast - Theory and Empirical Evidence
Tai Tran3.5K vues
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C... par Quantopian
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C..."Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
Quantopian905 vues
Arbitrage pricing theory & Efficient market hypothesis par Hari Ram
Arbitrage pricing theory & Efficient market hypothesisArbitrage pricing theory & Efficient market hypothesis
Arbitrage pricing theory & Efficient market hypothesis
Hari Ram546 vues
Presentation 2 par uliana8
Presentation 2Presentation 2
Presentation 2
uliana8382 vues
Forecasting par SVGANGAD
ForecastingForecasting
Forecasting
SVGANGAD1.3K vues
Automatic algorithms for time series forecasting par Rob Hyndman
Automatic algorithms for time series forecastingAutomatic algorithms for time series forecasting
Automatic algorithms for time series forecasting
Rob Hyndman4.6K vues

Similaire à Principles of Mathematical Economics applied to a Physical-Stores Retail Business

Retailmerchandisebudgetplannng par
RetailmerchandisebudgetplannngRetailmerchandisebudgetplannng
Retailmerchandisebudgetplannngbaabul
4.1K vues51 diapositives
Session 3 par
Session 3Session 3
Session 3thangv
654 vues103 diapositives
Introduction to Managerial Economics.pptx par
Introduction to Managerial Economics.pptxIntroduction to Managerial Economics.pptx
Introduction to Managerial Economics.pptxmarvin173254
4 vues43 diapositives
How Should Reverse Auction Fit Into An Overall Procurement... par
How Should Reverse Auction Fit Into An Overall Procurement...How Should Reverse Auction Fit Into An Overall Procurement...
How Should Reverse Auction Fit Into An Overall Procurement...Jessica Reed
2 vues42 diapositives
Demand Forecast & Production Planning Industrial engineering management E-Book par
Demand Forecast & Production Planning Industrial engineering management  E-BookDemand Forecast & Production Planning Industrial engineering management  E-Book
Demand Forecast & Production Planning Industrial engineering management E-BookLuis Cabrera
1.2K vues21 diapositives
Chapter 1.pptx par
Chapter 1.pptxChapter 1.pptx
Chapter 1.pptxSanjay Joshi
18 vues24 diapositives

Similaire à Principles of Mathematical Economics applied to a Physical-Stores Retail Business(20)

Retailmerchandisebudgetplannng par baabul
RetailmerchandisebudgetplannngRetailmerchandisebudgetplannng
Retailmerchandisebudgetplannng
baabul4.1K vues
Session 3 par thangv
Session 3Session 3
Session 3
thangv654 vues
Introduction to Managerial Economics.pptx par marvin173254
Introduction to Managerial Economics.pptxIntroduction to Managerial Economics.pptx
Introduction to Managerial Economics.pptx
marvin1732544 vues
How Should Reverse Auction Fit Into An Overall Procurement... par Jessica Reed
How Should Reverse Auction Fit Into An Overall Procurement...How Should Reverse Auction Fit Into An Overall Procurement...
How Should Reverse Auction Fit Into An Overall Procurement...
Jessica Reed2 vues
Demand Forecast & Production Planning Industrial engineering management E-Book par Luis Cabrera
Demand Forecast & Production Planning Industrial engineering management  E-BookDemand Forecast & Production Planning Industrial engineering management  E-Book
Demand Forecast & Production Planning Industrial engineering management E-Book
Luis Cabrera1.2K vues
Week 9- Supply Chain- Short Term Decisions Lesson Files.pdf par AbdullahGhazal5
Week 9- Supply Chain- Short Term Decisions Lesson Files.pdfWeek 9- Supply Chain- Short Term Decisions Lesson Files.pdf
Week 9- Supply Chain- Short Term Decisions Lesson Files.pdf
AbdullahGhazal574 vues
ch5 Managing Materials Flow.pptx par Kaythisoe3
ch5 Managing Materials Flow.pptxch5 Managing Materials Flow.pptx
ch5 Managing Materials Flow.pptx
Kaythisoe35 vues
How to become world class business analyst par Asen Gyczew
How to become world class business analystHow to become world class business analyst
How to become world class business analyst
Asen Gyczew31.1K vues
Essential Management Consulting Tools, Techniques and Frameworks par Asen Gyczew
Essential Management Consulting Tools, Techniques and FrameworksEssential Management Consulting Tools, Techniques and Frameworks
Essential Management Consulting Tools, Techniques and Frameworks
Asen Gyczew32.8K vues
MANAGEMENT INVENTORY FLOWS IN THE SUPPLY CHAIN par Ashish Hande
MANAGEMENT INVENTORY FLOWS IN THE SUPPLY CHAINMANAGEMENT INVENTORY FLOWS IN THE SUPPLY CHAIN
MANAGEMENT INVENTORY FLOWS IN THE SUPPLY CHAIN
Ashish Hande619 vues
Retailmerchandisebudgetplannng par sunil mehra
RetailmerchandisebudgetplannngRetailmerchandisebudgetplannng
Retailmerchandisebudgetplannng
sunil mehra589 vues
Inventory Policy Decisions Deepa par TICS
Inventory Policy Decisions DeepaInventory Policy Decisions Deepa
Inventory Policy Decisions Deepa
TICS 4.2K vues
Elasticity Of Labour Demand Essay Example par Mary Burg
Elasticity Of Labour Demand Essay ExampleElasticity Of Labour Demand Essay Example
Elasticity Of Labour Demand Essay Example
Mary Burg2 vues
BSOM046 Managing Operations And The Supply Chain.docx par studywriters
BSOM046 Managing Operations And The Supply Chain.docxBSOM046 Managing Operations And The Supply Chain.docx
BSOM046 Managing Operations And The Supply Chain.docx
studywriters6 vues
Om0010 operations management par smumbahelp
Om0010   operations managementOm0010   operations management
Om0010 operations management
smumbahelp9 vues

Plus de Ashwin Rao

Stochastic Control/Reinforcement Learning for Optimal Market Making par
Stochastic Control/Reinforcement Learning for Optimal Market MakingStochastic Control/Reinforcement Learning for Optimal Market Making
Stochastic Control/Reinforcement Learning for Optimal Market MakingAshwin Rao
1.5K vues30 diapositives
Adaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree Search par
Adaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree SearchAdaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree Search
Adaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree SearchAshwin Rao
220 vues7 diapositives
Fundamental Theorems of Asset Pricing par
Fundamental Theorems of Asset PricingFundamental Theorems of Asset Pricing
Fundamental Theorems of Asset PricingAshwin Rao
2K vues38 diapositives
Evolutionary Strategies as an alternative to Reinforcement Learning par
Evolutionary Strategies as an alternative to Reinforcement LearningEvolutionary Strategies as an alternative to Reinforcement Learning
Evolutionary Strategies as an alternative to Reinforcement LearningAshwin Rao
327 vues7 diapositives
Understanding Dynamic Programming through Bellman Operators par
Understanding Dynamic Programming through Bellman OperatorsUnderstanding Dynamic Programming through Bellman Operators
Understanding Dynamic Programming through Bellman OperatorsAshwin Rao
636 vues11 diapositives
Stochastic Control of Optimal Trade Order Execution par
Stochastic Control of Optimal Trade Order ExecutionStochastic Control of Optimal Trade Order Execution
Stochastic Control of Optimal Trade Order ExecutionAshwin Rao
759 vues16 diapositives

Plus de Ashwin Rao(20)

Stochastic Control/Reinforcement Learning for Optimal Market Making par Ashwin Rao
Stochastic Control/Reinforcement Learning for Optimal Market MakingStochastic Control/Reinforcement Learning for Optimal Market Making
Stochastic Control/Reinforcement Learning for Optimal Market Making
Ashwin Rao1.5K vues
Adaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree Search par Ashwin Rao
Adaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree SearchAdaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree Search
Adaptive Multistage Sampling Algorithm: The Origins of Monte Carlo Tree Search
Ashwin Rao220 vues
Fundamental Theorems of Asset Pricing par Ashwin Rao
Fundamental Theorems of Asset PricingFundamental Theorems of Asset Pricing
Fundamental Theorems of Asset Pricing
Ashwin Rao2K vues
Evolutionary Strategies as an alternative to Reinforcement Learning par Ashwin Rao
Evolutionary Strategies as an alternative to Reinforcement LearningEvolutionary Strategies as an alternative to Reinforcement Learning
Evolutionary Strategies as an alternative to Reinforcement Learning
Ashwin Rao327 vues
Understanding Dynamic Programming through Bellman Operators par Ashwin Rao
Understanding Dynamic Programming through Bellman OperatorsUnderstanding Dynamic Programming through Bellman Operators
Understanding Dynamic Programming through Bellman Operators
Ashwin Rao636 vues
Stochastic Control of Optimal Trade Order Execution par Ashwin Rao
Stochastic Control of Optimal Trade Order ExecutionStochastic Control of Optimal Trade Order Execution
Stochastic Control of Optimal Trade Order Execution
Ashwin Rao759 vues
Overview of Stochastic Calculus Foundations par Ashwin Rao
Overview of Stochastic Calculus FoundationsOverview of Stochastic Calculus Foundations
Overview of Stochastic Calculus Foundations
Ashwin Rao375 vues
Risk-Aversion, Risk-Premium and Utility Theory par Ashwin Rao
Risk-Aversion, Risk-Premium and Utility TheoryRisk-Aversion, Risk-Premium and Utility Theory
Risk-Aversion, Risk-Premium and Utility Theory
Ashwin Rao3.4K vues
Value Function Geometry and Gradient TD par Ashwin Rao
Value Function Geometry and Gradient TDValue Function Geometry and Gradient TD
Value Function Geometry and Gradient TD
Ashwin Rao579 vues
HJB Equation and Merton's Portfolio Problem par Ashwin Rao
HJB Equation and Merton's Portfolio ProblemHJB Equation and Merton's Portfolio Problem
HJB Equation and Merton's Portfolio Problem
Ashwin Rao1K vues
Policy Gradient Theorem par Ashwin Rao
Policy Gradient TheoremPolicy Gradient Theorem
Policy Gradient Theorem
Ashwin Rao2.9K vues
A Quick and Terse Introduction to Efficient Frontier Mathematics par Ashwin Rao
A Quick and Terse Introduction to Efficient Frontier MathematicsA Quick and Terse Introduction to Efficient Frontier Mathematics
A Quick and Terse Introduction to Efficient Frontier Mathematics
Ashwin Rao831 vues
Recursive Formulation of Gradient in a Dense Feed-Forward Deep Neural Network par Ashwin Rao
Recursive Formulation of Gradient in a Dense Feed-Forward Deep Neural NetworkRecursive Formulation of Gradient in a Dense Feed-Forward Deep Neural Network
Recursive Formulation of Gradient in a Dense Feed-Forward Deep Neural Network
Ashwin Rao560 vues
Demystifying the Bias-Variance Tradeoff par Ashwin Rao
Demystifying the Bias-Variance TradeoffDemystifying the Bias-Variance Tradeoff
Demystifying the Bias-Variance Tradeoff
Ashwin Rao2.4K vues
Category Theory made easy with (ugly) pictures par Ashwin Rao
Category Theory made easy with (ugly) picturesCategory Theory made easy with (ugly) pictures
Category Theory made easy with (ugly) pictures
Ashwin Rao1.6K vues
Risk Pooling sensitivity to Correlation par Ashwin Rao
Risk Pooling sensitivity to CorrelationRisk Pooling sensitivity to Correlation
Risk Pooling sensitivity to Correlation
Ashwin Rao349 vues
Abstract Algebra in 3 Hours par Ashwin Rao
Abstract Algebra in 3 HoursAbstract Algebra in 3 Hours
Abstract Algebra in 3 Hours
Ashwin Rao1.6K vues
OmniChannelNewsvendor par Ashwin Rao
OmniChannelNewsvendorOmniChannelNewsvendor
OmniChannelNewsvendor
Ashwin Rao490 vues
The Newsvendor meets the Options Trader par Ashwin Rao
The Newsvendor meets the Options TraderThe Newsvendor meets the Options Trader
The Newsvendor meets the Options Trader
Ashwin Rao1.1K vues
The Fuss about || Haskell | Scala | F# || par Ashwin Rao
The Fuss about || Haskell | Scala | F# ||The Fuss about || Haskell | Scala | F# ||
The Fuss about || Haskell | Scala | F# ||
Ashwin Rao1.5K vues

Dernier

Posh-A high-end green mannequins manufacturer.pptx par
Posh-A high-end green mannequins manufacturer.pptxPosh-A high-end green mannequins manufacturer.pptx
Posh-A high-end green mannequins manufacturer.pptxJackyWu76
11 vues73 diapositives
15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S... par
15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S...15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S...
15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S...Tinuiti
94 vues17 diapositives
How do I make bold (yet strategic) bets to improve future performance? par
How do I make bold (yet strategic) bets to improve future performance?How do I make bold (yet strategic) bets to improve future performance?
How do I make bold (yet strategic) bets to improve future performance?Tinuiti
102 vues19 diapositives
Supplier Sourcing par
Supplier SourcingSupplier Sourcing
Supplier SourcingAlmeraSingson
26 vues11 diapositives
How do I ensure both my media and creative is data-driven? par
How do I ensure both my media and creative is data-driven?How do I ensure both my media and creative is data-driven?
How do I ensure both my media and creative is data-driven?Tinuiti
106 vues23 diapositives
Supermarket Floral Ad Roundup- Week 48.pdf par
Supermarket Floral Ad Roundup- Week 48.pdfSupermarket Floral Ad Roundup- Week 48.pdf
Supermarket Floral Ad Roundup- Week 48.pdfKarliNelson4
96 vues40 diapositives

Dernier(10)

Posh-A high-end green mannequins manufacturer.pptx par JackyWu76
Posh-A high-end green mannequins manufacturer.pptxPosh-A high-end green mannequins manufacturer.pptx
Posh-A high-end green mannequins manufacturer.pptx
JackyWu7611 vues
15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S... par Tinuiti
15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S...15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S...
15 Minute Breakdown: Navigating the Evolution: Unraveling the Past Decade's S...
Tinuiti94 vues
How do I make bold (yet strategic) bets to improve future performance? par Tinuiti
How do I make bold (yet strategic) bets to improve future performance?How do I make bold (yet strategic) bets to improve future performance?
How do I make bold (yet strategic) bets to improve future performance?
Tinuiti102 vues
How do I ensure both my media and creative is data-driven? par Tinuiti
How do I ensure both my media and creative is data-driven?How do I ensure both my media and creative is data-driven?
How do I ensure both my media and creative is data-driven?
Tinuiti106 vues
Supermarket Floral Ad Roundup- Week 48.pdf par KarliNelson4
Supermarket Floral Ad Roundup- Week 48.pdfSupermarket Floral Ad Roundup- Week 48.pdf
Supermarket Floral Ad Roundup- Week 48.pdf
KarliNelson496 vues
Check Out The Hottest Deals On Clothing Staples, Tech Gadgets & Winter Apparel par j4jacket
Check Out The Hottest Deals On Clothing Staples, Tech Gadgets & Winter ApparelCheck Out The Hottest Deals On Clothing Staples, Tech Gadgets & Winter Apparel
Check Out The Hottest Deals On Clothing Staples, Tech Gadgets & Winter Apparel
j4jacket7 vues
Supermarket Floral Ad Roundup- Week 49.pdf par KarliNelson4
Supermarket Floral Ad Roundup- Week 49.pdfSupermarket Floral Ad Roundup- Week 49.pdf
Supermarket Floral Ad Roundup- Week 49.pdf
KarliNelson470 vues
How do I reach the optimal level of investment for maximum impact and efficie... par Tinuiti
How do I reach the optimal level of investment for maximum impact and efficie...How do I reach the optimal level of investment for maximum impact and efficie...
How do I reach the optimal level of investment for maximum impact and efficie...
Tinuiti102 vues
Supermarket Floral Ad Roundup- Week 47.pdf par KarliNelson4
Supermarket Floral Ad Roundup- Week 47.pdfSupermarket Floral Ad Roundup- Week 47.pdf
Supermarket Floral Ad Roundup- Week 47.pdf
KarliNelson488 vues

Principles of Mathematical Economics applied to a Physical-Stores Retail Business

  • 1. Principles of Mathematical Economics applied to a Physical-Stores Retail Business Ashwin Rao ICME, Stanford University March 15, 2019 Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 1 / 24
  • 2. Mathematical Economics and Retail Business Mathematical Economics is a vast and diverse area, consisting of different flavors of Optimization and Prediction problems We focus on a subset of these problems which are pertinent to running a real-world Retail Business In particular, many Retail problems involve Stochastic Optimization ... that can be viewed from the abstract lens of Mathematical Econ. We can model these as Markov Decision Processes, eg: How to Supply optimally given random demand and cost structures How to Price optimally given random demand and supply Retail also involves forecasting problems, eg: Demand Forecasting ... as well as optimization problems on strategy/planning/scheduling Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 2 / 24
  • 3. Inventory Control A fundamental problem in Retail is Inventory Control How to move inventory optimally from suppliers to shoppers Let us view this from the lens of Mathematical Economics Abstracting to a Supply ⇒ Demand optimization problem Nirvana is when Supply appears “just in time” to satisfy demand We start with an exposition of two classical simple problems: Economic Order Quantity (EOQ) problem Newsvendor problem Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 3 / 24
  • 4. Economic Order Quantity (EOQ) Assumption: Demand for an item is at a constant rate of µ units/year Note the big assumption of deterministic demand A new order is delivered in full when inventory reaches 0 Fixed cost K for each order of non-zero units Holding cost h/unit/year for storage in store What is the optimal number of units to order? To minimize the annual cost of ordering + storage Note: Deterministic Demand is often an unreasonable assumption But EOQ is a useful foundation to build intuition Many extensions to EOQ (eg: EOQ for Perishables) EOQ concept goes beyond Retail (foundation in Mathematical Econ.) Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 4 / 24
  • 5. Solving EOQ Assume Q is the order quantity (Q∗ is optimal order quantity) Then we order at annual frequency µ Q (Period Q µ ) Annual Ordering Cost is µK Q Annual Holding Cost is hQ 2 (note: average inventory during year is Q 2 ) Annual Total Cost is: µK Q + hQ 2 Taking derivative w.r.t. Q and setting it to 0 yields: Q∗ = 2µK h Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 5 / 24
  • 6. Newsvendor Problem Daily demand for newspapers is a random variable x The newsvendor has an estimate of the PDF f (x) of daily demand For each newspaper that stays unsold, we suffer a Holding Cost h Think of h as the purchase price minus salvage price For each newspaper we’re short on, we suffer a Stockout Cost p Think of p as the missed profits (sale price minus purchase price) But p should also include potential loss of future customers What is the optimum # of newspapers to bring in the morning? To minimize the expected cost (function of f , h and p) Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 6 / 24
  • 7. Newsvendor Problem Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 7 / 24
  • 8. Solution to the Newsvendor problem For tractability, we assume newspapers are a continuous variable x Then, we need to solve for the optimal supply S that maximizes g(S) = h S 0 (S − x) · f (x) · dx + p ∞ S (x − S) · f (x) · dx Setting g (S) = 0, we get: Optimal Supply S∗ = F−1 ( p p + h ) where F(y) = y 0 f (x)dx is the CDF of daily demand p p+h is known as the critical fractile It is the fraction of days when the newsvendor goes “out-of-stock” Assuming the newsvendor always brings this optimal supply S∗ Solution details and connections with Financial Options Pricing here Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 8 / 24
  • 9. Single-store, Single-item Inventory Control The store experiences random daily demand given by PDF f (x) The store can order daily from a supplier carrying infinite inventory There’s a cost associated with ordering, and order arrives in L days Like newsvendor, there’s a Holding Cost h and Stockout Cost p This is an MDP where State is current Inventory Level at the store State also includes current in-transit inventory (from supplier) Action is quantity to order in any given State Reward function has h, p (just like newsvendor), and ordering cost Transition probabilities are governed by demand distribution f (x) This has a closed-form solution, similar to newsvendor fomula Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 9 / 24
  • 10. Optimal Ordering Policy Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 10 / 24
  • 11. The Core of Textbook Problem has this Pictorial Intuition Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 11 / 24
  • 12. Costs viewed against End-of-Day Inventory Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 12 / 24
  • 13. UnderCapacity and OverCapacity Costs Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 13 / 24
  • 14. UnderCapacity Cost: Customer Psychology and Economics Retail Mantra: “Stack it high and watch it fly” Customers like to see shelves well stocked Visual emptiness is known to be a sales deterrent So, full-looking shelves are part of presentation strategy At a certain level of emptiness, the deterrent rises sharply Hence the convex nature of this cost curve Note that this curve varies from item to item It also varies from regular season to end of season Modeling/calibrating this is tricky! However, getting a basic model in place is vital Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 14 / 24
  • 15. OverCapacity Cost: Backroom Space Constraints Retail store backrooms have limited capacity Typically tens of thousands of items compete for this space Retailers like to have clean and organized backrooms A perfect model is when all your inventory is on store shelves With backroom used purely as a hub for home deliveries Practically, some overflow from shelves is unavoidable Hence, the convex nature of this curve Modeling this is hard because it’s a multi-item cost/constraint Again, getting a basic model in place is vital Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 15 / 24
  • 16. What other costs are involved? Holding Cost: Interest on Inventory, Superficial Damage, Maintenance Stockout Cost: Lost Sales, sometimes Lost Customers Labor Cost: Replenishment involves movement from truck to shelf Spoilage Cost: Food & Beverages can have acute perishability End-of-Season/Obsolescence Cost: Intersects with Clearance Pricing Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 16 / 24
  • 17. Practical Inventory Control as a Markov Decision Process The store experiences random daily demand The store can place a replenishment order in casepack mutiples This is an MDP where State is current Inventory Level at the store State also includes current in-transit inventory (from warehouse) Action is the multiple of casepack to order (or not order) Reward function involves all of the costs we went over earlier State transitions governed by demand probability distribution Solve: Dynamic Programming or Reinforcement Learning Algorithms Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 17 / 24
  • 18. Multi-node and Multi-item Inventory Control In practice, Inventory flows through a network of warehouses From source (suppliers) to destination (stores or homes) So, we have to solve a multi-“node” Inventory Control problem State is joint inventory across all nodes (and between nodes) Action is recommended movements of inventory between nodes Reward is the aggregate of daily costs across the network Space and Throughput constraints are multi-item costs/constraints So, real-world problem is multi-node and multi-item (giant MDP) Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 18 / 24
  • 19. Clearance Pricing You are a few weeks away from end-of-season (eg: Christmas Trees) Assume you have too much inventory in your store What is the optimal sequence of price markdowns? Under (uncertain) demand responding to markdowns So as to maximize your total profit (sales revenue minus costs) Note: There is a non-trivial cost of performing a markdown If price markdowns are small, we end up with surplus at season-end Surplus often needs to be disposed at poor salvage price If price reductions are large, we run out of Christmas trees early “Stockout” cost is considered to be large during holiday season Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 19 / 24
  • 20. MDP for Clearance Pricing State is [Days Left, Current Inventory, Current Price, Market Info] Action is Price Markdown Reward includes Sales revenue, markdown cost, stockout cost, salvage Reward & State-transitions governed by Price Elasticity of Demand Real-world Model can be quite complex (eg: competitor pricing) Ambitious Idea: Blend Inventory and Price Control into one MDP Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 20 / 24
  • 21. Perspective from the Trenches (to solve real-world MDPs) I always start with a simple version of problem to develop intuition My first line of attack is DP customized to the problem structure RL Algorithms that are my personal favorites (links to lectures): Deep Q-Network (DQN): Experience Replay, 2nd Target Network Least Squares Policy Iteration (LSPI) - Batch Linear System Exact Gradient Temporal-Difference (GTD) Policy Gradient (esp. Natural Gradient, TRPO) Separate Model Estimation from Policy Optimization So we could customize RL algorithms to take advantage of: Knowledge of transition probabilities Knowledge of reward function Any problem-specific structure that simplifies the algorithm Feature Engineering based on known closed-form approximations Many real-world, large-scale problems ultimately come down to suitable choices of DNN architectures and hyperparameter tuning Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 21 / 24
  • 22. Inputs to these MDPs (other than the costs) Daily Demand Forecast probability distribution function Shelf Capacity Casepack size Lead Time (time from replenishment order to arrival on shelf) Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 22 / 24
  • 23. Where do these inputs come from? From solutions to various other Forecasting and Planning problems Demand Forecasting is a supervised learning problem (DNNs!) Planning problems are Optimization problems Some Planning Problems: Assortment Selection Shelf-size Planning Casepack Sizing Network Planning (for Lead Time) Labor Planning Some planning problems need as input solution to Inventory Control How do we resolve this Chicken-and-egg situation? Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 23 / 24
  • 24. The Fixed-Point of Planning and Control Planning problems are optimizations over parameter choices p For example, a set of Shelf-size choices or casepack choices Denote the Inventory Control MDP as Dp (p is input to MDP) Denote the Solution (Optimal Policy) to Dp as π∗ p Solve the planning problems (optimization) with input π∗ p The solution is the optimal parameter set p∗ Feed p∗ back into the MDP to solve for policy π∗ p∗ Iterate this until we get stable p∗ and π∗ p∗ Very important to design the interfaces consistently Clean software framework for overall system design is vital to success Ashwin Rao (Stanford) Mathematical Economics for Retail March 15, 2019 24 / 24