Retail Analytics

Chapter 13
Prescriptive Analytics and Retail Optimization

Post Graduate Program in Retail Management
Retail Analytics   •   Post Graduate

Prescriptive Analytics and Retail Optimization

Introduction

Descriptive analytics explains what happened, diagnostic analytics investigates why it happened, and predictive analytics estimates what is likely to happen. Prescriptive analytics addresses the managerial question: What should the retailer do, given objectives, constraints, uncertainty and competing priorities?

Retail decisions are particularly suitable for prescriptive analysis because they involve scarce resources, measurable outcomes and interdependent choices. A retailer must decide which products to stock, how much inventory to hold, where to allocate it, what prices to charge, how to fulfil orders and how to schedule employees. These decisions affect one another: price influences demand, assortment influences substitution, inventory affects service, and fulfilment capacity limits sales.

Prescriptive analytics combines forecasting, optimization, simulation, experimentation, business rules and managerial judgement. Its purpose is not simply to produce a mathematically optimal answer. A useful solution must also be explainable, implementable, robust to forecast error, compliant with policy and acceptable to stakeholders.

Learning Objectives

After studying this chapter, the learner should be able to:

  1. Distinguish predictive analytics from prescriptive analytics.
  2. Formulate objective functions, decision variables and constraints for retail problems.
  3. Apply linear, integer, nonlinear, stochastic and robust optimization concepts.
  4. Construct models for assortment, pricing, inventory, allocation, fulfilment and workforce decisions.
  5. Use simulation and scenario analysis to evaluate uncertainty and operational feasibility.
  6. Interpret shadow prices, sensitivity results and trade-offs among profit, service and risk.
  7. Assess governance, ethical and implementation issues in retail optimization.

1. The Prescriptive Analytics Decision Cycle

A prescriptive system generally follows this cycle:

Data and assumptions → forecasts → decision model → optimization or simulation → managerial review → execution → measurement and learning.

Forecasts provide inputs such as expected demand, conversion rate, return probability and delivery time. The optimization model then chooses actions subject to constraints. Simulation tests whether the recommended policy performs acceptably under many possible demand and supply outcomes. Execution produces new data, which can be used to recalibrate the model.

A decision model contains four essential elements:

  • Decision variables: controllable choices, such as units ordered or price selected.
  • Parameters: known or estimated inputs, such as unit cost, capacity or forecast demand.
  • Objective function: a quantified goal, such as expected contribution margin.
  • Constraints: business, physical, regulatory or policy restrictions.

A general deterministic optimization problem can be written as:

maximize or minimize f(x; θ)
subject to gj(x; θ) ≤ 0, j = 1, …, m
hk(x; θ) = 0, k = 1, …, r
x ∈ X

Here, x is the vector of decisions, θ is the vector of parameters, f is the objective, g and h represent inequality and equality constraints, and X specifies domains such as non-negative, integer or binary decisions. The units of every term in an objective or constraint must be compatible.

For example, if x_i is the quantity of product i and c_i is contribution per unit in currency per unit, then ∑ c_i x_i has units of currency. A capacity constraint ∑ a_i x_i ≤ C is dimensionally valid when a_i is capacity consumed per unit and C is total capacity.

2. Objectives: Profit, Service and Risk

Retailers rarely optimize profit alone. A more realistic objective may include revenue, procurement cost, markdown cost, fulfilment expense, stockout penalties, labour cost and risk.

A simplified expected contribution objective is:

maximize E[Revenue − procurement cost − fulfilment cost − markdown cost − shortage cost]

The expectation operator E reflects uncertain demand or supply. A multi-objective formulation may use weighted terms:

maximize Π = E[Profit] + αS − βR

where Π is the composite score, S is a service measure, R is a risk measure, and α and β are management-selected weights. The weights must be documented because changing them changes the recommended decision.

An alternative is the ε-constraint method: maximize profit while requiring service to meet a minimum level.

maximize E[Profit]
subject to P(stockout) ≤ ε
Fill rate ≥ smin

Here ε is the maximum acceptable stockout probability and s_min is the required service level. This approach is often easier to explain than arbitrary weights.

Common retail service metrics include:

  • Fill rate: proportion of demand units supplied immediately.
  • Cycle service level: probability of no stockout during a replenishment cycle.
  • On-time-in-full (OTIF): orders delivered by the promised date and in the promised quantity.
  • Availability: proportion of time or selling opportunities for which an item is available.

These metrics are not interchangeable. A retailer should select a metric consistent with the customer promise and operational process.

3. Major Optimization Paradigms

3.1 Linear programming

Linear programming (LP) assumes a linear objective and linear constraints, with continuous decision variables. It is useful for aggregate purchasing, allocation and capacity planning.

maximize ∑i=1n ci xi
subject to ∑i=1n ajixi ≤ bj, j = 1, …, m
xi ≥ 0

The coefficients c_i represent contribution, a_ji resource consumption and b_j resource availability. LP is computationally efficient, but linearity may be unrealistic where demand, discounts or fixed costs are nonlinear.

3.2 Integer and mixed-integer programming

Many retail decisions are discrete. A store is either open or closed; a promotion is selected or not; cartons may be indivisible. Integer programming requires x_i to be integer, while mixed-integer programming (MIP) permits both continuous and integer variables.

A binary variable y_i can represent whether product i is listed. A linking constraint can be written as:

xi ≤ M yi

where M is a valid upper bound on quantity x_i. If y_i = 0, x_i must be zero. If y_i = 1, x_i may be positive up to M. M should not be unnecessarily large because an excessive value can weaken computational performance.

3.3 Nonlinear optimization

Price-demand relationships, economies of scale and substitution can be nonlinear. For example, a constant-elasticity demand model is:

q(p) = A p^η

where q(p) is demand, A is a scale parameter, p is price and η is price elasticity. Usually η < 0. This model is appropriate only over a range where the elasticity assumption is credible. It should not be extrapolated indefinitely.

3.4 Stochastic and robust optimization

In stochastic optimization, uncertain parameters are represented by probability distributions or scenarios. A two-stage model makes an initial decision before uncertainty is revealed and a corrective decision afterward.

maximize cᵀx + E[Q(x, ξ)]
subject to Ax ≤ b, x ≥ 0

Here x is the first-stage decision, ξ represents uncertain outcomes, and Q is the value of recourse after uncertainty is observed.

Robust optimization does not require precise probabilities. It seeks a solution that performs acceptably for all values in an uncertainty set U:

maximize minimumξ ∈ U Profit(x, ξ)

Robust models may sacrifice expected profit to reduce exposure to severe forecast error. They are useful when data are limited or the cost of failure is high.

4. Assortment Optimization

Assortment optimization determines which products to carry and, in some cases, the quantity or shelf space assigned to each product. It must account for demand, margin, substitution, space, vendor requirements, brand roles and customer missions.

A basic binary assortment model is:

maximize ∑i=1n mi di yi
subject to ∑i=1n si yi ≤ S
∑i=1n vkiyi ≥ rk, k = 1, …, K
yi ∈ {0,1}

m_i is unit margin, d_i expected demand if listed, y_i indicates selection, s_i is shelf-space requirement, S is available space, v_ki indicates compliance with category requirement k, and r_k is the minimum requirement. The expression m_i d_i assumes demand is unaffected by the rest of the assortment, which is often unrealistic.

A more advanced model includes substitution. If customers choose among available products, expected demand for item i depends on the offered set A:

Di(A) = D(A) × P(i | A)

where D(A) is category demand and P(i|A) is the probability of choosing i given assortment A. Choice models such as multinomial logit can estimate these probabilities, but the independence-of-irrelevant-alternatives assumption may be inappropriate for close substitutes. Nested logit or mixed logit models may be more suitable.

Assortment decisions should also distinguish presence from availability. Listing a product does not create sales if replenishment is unreliable. Therefore, expected margin should be adjusted for availability and lost-sales effects.

5. Pricing Optimization

Pricing models connect price to demand, margin and inventory. For one product with price p, unit variable cost c and demand q(p), expected contribution is:

π(p) = (p − c)q(p)

If q(p) = A p^η and there are no capacity or inventory constraints, an interior optimum for a constant-elasticity demand curve does not generally exist when η is constant: contribution is A(p−c)p^η, and the first-order condition gives:

p* = ηc / (η + 1)

This result requires η < −1 for a positive finite optimum and assumes the demand function remains valid in the relevant price range. If demand is inelastic, raising price may increase contribution until another constraint or demand-boundary condition is reached. In practice, retailers use discrete prices, competitor constraints, markdown timing and experimentation rather than relying on this equation alone.

A discrete price-selection model uses binary variable y_t for price option t:

maximize ∑t=1T (pt − c) qt yt
subject to ∑t=1T yt = 1
yt ∈ {0,1}

Inventory limits, price-image rules, minimum advertised price and channel consistency can be added as constraints.

Dynamic pricing requires considering the value of inventory over time. Selling an item today may prevent a sale at a higher future price, while delaying too long may create markdown risk. This is a dynamic programming problem when the state includes inventory and time.

6. Inventory Optimization

Inventory decisions balance holding cost against ordering and shortage costs. In the classical newsvendor model, a single-period order quantity is selected before random demand D is known. Let c be unit cost, p selling price and v salvage value, with p > c > v. The critical fractile is:

P(D ≤ Q*) = (p − c) / (p − v)

Q* is the optimal order quantity under the model assumptions. The numerator is the underage cost per unit, and the denominator is underage cost plus overage cost. The result applies to a single order, one selling period, known distribution and no replenishment after the decision.

For continuous review with uncertain demand during lead time, a common reorder point is:

ROP = μL + zσL

where μ_L is expected demand during lead time, σ_L is its standard deviation, and z is the standard-normal quantile associated with the target cycle service level. This approximation assumes demand and lead-time uncertainty have been correctly represented and that replenishment is not severely constrained.

If daily demand has mean μ_D and standard deviation σ_D, lead time is a fixed L days, and daily demands are independent, then:

μL = LμD
σL = √L σD

If lead time is random and independent of daily demand, an approximate variance is:

Var(DL) = E[L]σD² + μD²Var(L)

The formula demonstrates why ignoring lead-time variability can materially understate safety stock.

Worked example: reorder point

A retailer sells 80 units per day on average, with daily standard deviation 20 units. Lead time is five fixed days. For a 95% cycle service level, use z ≈ 1.645.

Expected lead-time demand is 5 × 80 = 400 units. Lead-time standard deviation is √5 × 20 ≈ 44.72 units. Therefore:

ROP ≈ 400 + 1.645 × 44.72 ≈ 473.5 units.

The operational policy would round up to 474 units, subject to case-pack and review-cycle rules. This is not a guarantee of 95% fill rate; it is a cycle-service approximation under the stated assumptions.

7. Allocation and Replenishment

When inventory is scarce, allocation determines which stores or channels receive it. A simple allocation model is:

maximize ∑i=1n ∑j=1m gijxij
subject to ∑j=1m xij ≤ Ii for each product i
xij ≤ Uij for each product-store pair
xij ≥ 0

x_ij is the quantity of product i allocated to location j, g_ij is expected contribution, I_i is available inventory and U_ij is an upper bound based on demand or capacity. Fairness, minimum presentation stock, strategic stores and channel commitments may require additional constraints.

Allocation should use incremental contribution, not simply historical sales. A store with high historical sales may already have sufficient inventory, while an apparently smaller store may have a high lost-sales risk because of a local event or competitor stockout.

Replenishment policies may be optimized jointly with allocation. However, excessive model complexity can make the policy difficult for planners to understand and execute. A practical design often combines optimization for initial deployment with reorder rules for routine replenishment.

8. Fulfilment and Omnichannel Optimization

Omnichannel retailers decide whether an order should be fulfilled from a distribution centre, store or third-party partner. A fulfilment assignment model can minimize total cost:

minimize ∑o=1O ∑f=1F cofxof
subject to ∑f=1F xof = 1 for each order o
∑o=1O ao xof ≤ Cf for each fulfilment node f
xof ∈ {0,1}

c_of includes pick, pack, transport, handling and expected return cost; a_o is workload generated by order o; C_f is node capacity. Delivery promise, inventory availability and labour shifts can be represented as constraints.

A lowest-cost assignment may be strategically poor if it increases split shipments or drains store stock needed for walk-in customers. Therefore, the objective should include customer experience and channel opportunity cost. Constraints should prevent infeasible recommendations, such as assigning an order to a node without available inventory.

9. Workforce Optimization

Retail workforce models schedule employees by time period, skill and location. Let x_et indicate whether employee e works in period t. A coverage constraint is:

∑e qe xet ≥ Rt

where q_e is the effective capacity of employee e and R_t is required workload in period t. Additional constraints may enforce maximum hours, rest periods, availability, skill mix and legal requirements.

The objective may minimize wage cost and understaffing penalties:

minimize ∑e,t we xet + ∑t λt ut

where w_e is wage cost, u_t is understaffing and λ_t is its penalty. The penalty should not be interpreted as a literal financial loss unless it has been estimated from service and sales data.

Forecast error is important. A schedule that exactly matches the point forecast may be fragile. Scenario-based staffing can test high-demand events, absenteeism and delivery peaks.

10. Simulation and Scenario Analysis

Optimization selects decisions; simulation evaluates their consequences under uncertainty. A discrete-event simulation may model customer arrivals, queues, picking, replenishment, checkout and delivery. A Monte Carlo simulation repeatedly samples uncertain inputs and records outcomes.

For a policy π and random outcome ξ, simulated performance is:

Yr = Performance(π, ξr), r = 1, …, N

The estimated mean is:

Ȳ = (1/N)∑r=1N Yr

If independent simulation replications have sample standard deviation s, an approximate 95% confidence interval for the mean is:

Ȳ ± 1.96(s/√N)

This interval describes simulation estimation uncertainty, not necessarily real-world forecast uncertainty. The result is only as credible as the input distributions, event logic and validation process.

Scenario analysis uses coherent combinations of assumptions, such as baseline demand, promotion surge, supplier disruption and severe weather. It is preferable to changing one variable at a time when variables are correlated. A stress test may deliberately examine an extreme but plausible scenario even if its probability is uncertain.

Optimization and simulation can be integrated through simulation-optimization: an optimizer proposes policies, and simulation estimates their performance when analytical formulas are unavailable. Because simulation can be computationally expensive, surrogate models, response surfaces or sample-average approximation may be used.

11. Sensitivity, Explainability and Trade-offs

A solution is not complete when the solver returns an objective value. Managers should examine:

  • Which constraints are binding?
  • How sensitive is the result to demand, margin and lead-time assumptions?
  • What is the value of additional capacity?
  • How much profit is sacrificed to achieve a service target?
  • Does the decision remain acceptable under adverse scenarios?

In linear programming, a shadow price approximates the marginal improvement in objective value from relaxing a binding constraint by one unit, within the range for which the current basis remains valid. It is not automatically a causal value outside that range.

For example, if warehouse capacity has a shadow price of £4 per additional unit of throughput, management may compare that value with the cost of temporary labour or additional space. This interpretation is valid only under the model assumptions and local sensitivity range.

Explainability requires showing the principal drivers of a recommendation, not exposing every solver detail. A planner should be able to see selected products, rejected alternatives, binding constraints, expected financial impact and scenario performance.

12. Illustrative Case: FreshBite Omnichannel Retailer

Background

FreshBite sells chilled meal kits through 20 stores and an online channel. Demand is seasonal, products have short shelf lives and online orders compete with store availability. Management is considering a promotion for three meal-kit varieties during a five-day event.

Problem

The retailer must choose promotional assortment, allocate limited stock, schedule preparation labour and determine which locations fulfil online orders. The objectives are to maximize contribution while maintaining an online fill rate of at least 95% and keeping expected waste below 8% of units prepared.

Analysis

The analytics team estimates demand distributions by store and channel using historical events, weather variables and current traffic. A mixed-integer scenario model is constructed. Binary variables select promotional products; continuous variables represent production, allocation and fulfilment; scenario outcomes represent low, expected and high demand.

The objective maximizes weighted expected contribution minus waste and shortage penalties. Constraints include kitchen capacity, supplier availability, store presentation minimums, online promise capacity and the service requirement. The model also prevents a store from fulfilling online demand when doing so would reduce its projected walk-in availability below a policy threshold.

Simulation then tests the recommended policy using 10,000 demand and absenteeism scenarios. The initial plan achieves high expected profit but fails the 95% online fill-rate target in high-demand scenarios. A revised plan reserves stock for online orders and shifts preparation labour to the evening peak. Expected contribution falls slightly, but the 5th-percentile fill rate improves substantially and waste remains within policy.

Outcome

FreshBite adopts the revised policy, with a same-day review rule triggered when online demand exceeds the 75th percentile of the forecast. The rule is not allowed to override food-safety limits or minimum store availability. Performance is monitored using contribution, waste, fill rate, substitution, customer complaints and forecast error.

Learning points

  1. The most profitable expected-value plan may be operationally unacceptable.
  2. Channel opportunity cost must be included in allocation decisions.
  3. Service and waste should be explicit constraints or evaluated through scenarios.
  4. Human override rules should be defined before deployment.
  5. Post-implementation measurement is essential because the model changes behaviour and therefore changes the data-generating process.

13. Implementation, Governance and Ethics

Prescriptive models can amplify poor data and unfair policies. Governance should address:

  • Data quality: item, location, price, inventory and lead-time data must be reconciled.
  • Model risk: assumptions, versions, validation results and known limitations should be documented.
  • Human accountability: managers must retain authority over exceptional or high-impact decisions.
  • Privacy: workforce and customer data should be minimized, secured and used for legitimate purposes.
  • Fairness: allocation and pricing should not systematically disadvantage protected groups or vulnerable communities without legitimate justification.
  • Transparency: customers and employees should receive understandable explanations where automated decisions materially affect them.
  • Regulatory compliance: pricing, employment, consumer protection, competition, accessibility and data-protection obligations must be considered.

Algorithmic pricing deserves particular caution. Frequent personalized price changes may undermine trust, create perceptions of discrimination or create competition-law concerns. Workforce optimization must not treat employees solely as interchangeable capacity; legal rest requirements, health, predictability and dignity are operational constraints as well as ethical requirements.

Artificial intelligence can improve demand forecasting, choice estimation and anomaly detection, but generative or black-box systems should not be allowed to invent constraints, silently change objectives or make untraceable high-impact decisions. A sound architecture separates forecasting from optimization, validates each component and records the data and assumptions used for every recommendation.

14. Best-Practice Design Principles

  1. Start with the decision and business objective, not the algorithm.
  2. Define units, decision horizons, ownership and feasible actions explicitly.
  3. Use incremental economics rather than averages where choices compete.
  4. Include operational constraints early, not as post-processing rules.
  5. Represent uncertainty with scenarios, distributions or conservative bounds.
  6. Validate forecasts, optimization outputs and simulated processes separately.
  7. Compare the optimized policy with current practice and simple benchmarks.
  8. Use sensitivity analysis to identify fragile recommendations.
  9. Design override, escalation and monitoring procedures before launch.
  10. Measure realised outcomes and recalibrate models periodically.

Chapter Summary

Prescriptive analytics converts forecasts and business objectives into recommended actions. Retail optimization requires explicit decision variables, objective functions, constraints and assumptions. Linear and mixed-integer programming are useful for allocation, assortment, fulfilment and workforce decisions; nonlinear models can represent price response and substitution; stochastic and robust approaches address uncertainty. Inventory models quantify the trade-off between shortage and excess stock, while simulation evaluates policies under demand, supply and operational variability. Effective retail solutions balance profit, service, risk, feasibility and ethics. Model governance, explainability, sensitivity analysis and continuous performance monitoring are as important as mathematical optimization.

Key Terms

Prescriptive analytics: Analytics that recommends actions under objectives and constraints.

Decision variable: A controllable quantity selected by the model.

Parameter: An input assumed known or estimated.

Objective function: Mathematical representation of the goal being optimized.

Constraint: A restriction that feasible decisions must satisfy.

Linear programming: Optimization with linear objective and constraints.

Mixed-integer programming: Optimization containing continuous and discrete variables.

Binary variable: A variable restricted to zero or one.

Shadow price: Marginal value of relaxing a binding constraint locally.

Stochastic optimization: Optimization incorporating uncertain outcomes.

Robust optimization: Optimization designed to perform acceptably across an uncertainty set.

Assortment optimization: Selection of products and range composition.

Price elasticity: Responsiveness of demand to a change in price.

Newsvendor model: Single-period inventory model balancing overage and underage costs.

Reorder point: Inventory position that triggers replenishment.

Fill rate: Proportion of demand supplied immediately.

Simulation: Computational representation of system behaviour under specified inputs.

Scenario analysis: Evaluation of decisions under coherent alternative conditions.

Recourse: Corrective action available after uncertainty is observed.

Model governance: Processes controlling model quality, accountability and use.

Review Questions

Short Answer Questions

  1. What distinguishes prescriptive analytics from predictive analytics?
  2. Why must objective functions and constraints use dimensionally consistent units?
  3. What is the difference between a cycle service level and a fill rate?
  4. When is a binary decision variable useful in retail optimization?
  5. Why should an optimized policy be tested through simulation?

Long Answer Questions

  1. Explain how a retailer could formulate a mixed-integer assortment model, including substitution and shelf-space considerations.
  2. Compare stochastic optimization and robust optimization for inventory planning under uncertain demand.
  3. Discuss the assumptions and managerial interpretation of the reorder-point formula.
  4. Explain how fulfilment optimization can create channel opportunity costs and customer-service trade-offs.
  5. Evaluate the governance and ethical requirements for AI-enabled retail pricing and workforce scheduling.

Analytical / Application Questions

  1. A retailer has mean daily demand of 120 units, daily standard deviation of 30 units, fixed lead time of four days and a target cycle service level of 97.5%, for which z ≈ 1.96. Calculate the approximate reorder point and explain the assumptions.
  2. Design an optimization model that allocates scarce inventory among stores and an online channel. Specify at least three decision variables or parameters, one objective and four constraints.
  3. A promotion has high expected profit but fails the service target in high-demand scenarios. Recommend a simulation and governance process for deciding whether to adopt it.

Multiple Choice Questions with Answers

Question 1

Which element specifies what a retail optimization model is trying to maximize or minimize?

A. Decision variable

B. Objective function

C. Constraint

D. Scenario generator

Correct Answer: B. Objective function

Question 2

A binary variable in an assortment model is most directly suited to representing which decision?

A. Whether a product is listed

B. Daily demand variance

C. Unit selling price measured continuously

D. Average lead time

Correct Answer: A. Whether a product is listed

Question 3

In the reorder-point formula ROP = μL + zσL, what does σL represent?

A. Unit purchase cost

B. Expected annual demand

C. Standard deviation of demand during lead time

D. Shelf-space capacity

Correct Answer: C. Standard deviation of demand during lead time

Question 4

A retailer has mean daily demand of 80 units, fixed lead time of 5 days, daily standard deviation of 20 units and z = 1.645. What is the approximate reorder point?

A. 400 units

B. 429 units

C. 474 units

D. 565 units

Correct Answer: C. 474 units

Question 5

Which method is most appropriate for testing a fulfilment policy under many possible demand and absenteeism outcomes?

A. Monte Carlo simulation

B. A single historical average

C. A product catalogue audit

D. A fixed accounting schedule

Correct Answer: A. Monte Carlo simulation

Question 6

What does a shadow price generally estimate in a linear optimization model?

A. The historical retail price of an item

B. The local marginal value of relaxing a constraint

C. The probability of a stockout

D. The forecast error of demand

Correct Answer: B. The local marginal value of relaxing a constraint

Question 7

The newsvendor critical fractile is applicable primarily to which situation?

A. A single-period order decision with uncertain demand

B. A multi-year store-location decision with no uncertainty

C. A workforce rest-period calculation

D. A deterministic transport assignment only

Correct Answer: A. A single-period order decision with uncertain demand

Question 8

Which statement best describes robust optimization?

A. It assumes all forecasts are exactly correct

B. It selects decisions that perform acceptably across an uncertainty set

C. It ignores operational constraints

D. It always maximizes expected profit alone

Correct Answer: B. It selects decisions that perform acceptably across an uncertainty set

Question 9

Why should incremental contribution often be used in scarce-inventory allocation?

A. It accounts for the value of the next unit in competing uses

B. It eliminates the need for demand forecasts

C. It guarantees equal allocation to every store

D. It makes all products identical

Correct Answer: A. It accounts for the value of the next unit in competing uses

Question 10

Which is an appropriate governance practice for an AI-enabled retail optimization system?

A. Allowing the system to change objectives without documentation

B. Removing all human review from high-impact decisions

C. Recording assumptions, versions, validation results and override rules

D. Evaluating the model only by solver speed

Correct Answer: C. Recording assumptions, versions, validation results and override rules

Retail Analytics
Chapter 13 of 15