liveBook · Manning

Elasticity plot

As explained in Machine Learning System Design

A curve representing how demand or another response variable changes as an influencing variable changes.

An elasticity plot is a demand-specific error-analysis tool for pricing models. It shows how predicted sales change as price changes, testing the core expectation that higher prices generally reduce demand. It is a specialized partial dependence plot and can also be viewed as residual analysis for a pricing system. section 9.2.6

Build the curve in one of two practical ways:

  • Use training data: select a SKU’s sales history, predict sales for each historical row, pair each prediction with its actual historical price, and plot price against predicted sales. section 9.2.6
  • Use mixed synthetic and real data: take the SKU’s latest price, vary it from −20% to +20%, recalculate price-based features, predict sales for every variation, and plot the results. section 9.2.6
  • Expect an inverse, reasonably monotonic relationship; an opposite, noisy, or nonmonotonic curve signals limited price variation, stochastic demand, confounding promotions or seasonality, or a model that misses the case. section 9.2.6

Validating a retail model

Before deploying a new demand model, compare elasticity curves for individual goods and confirm with stakeholders whether those goods should be elastic. If the curves fail the expected relationship, apply isotonic-regression postprocessing as a fast, ad hoc calibration option, or improve modeling, features, and preprocessing for a slower generic solution. section 9.4.1

Figure 9.18 Theoretical example of elastic demand
figure

Use the theoretical elastic-demand figure to contrast the expected response shape with observed SKU curves. section 9.2.6

Figure 9.19 Theoretical example of inelastic demand
figure

Use the theoretical inelastic-demand figure when comparing goods whose predicted sales respond weakly to price changes. section 9.2.6

How Machine Learning System Design covers it

How deep it goes
Defines the plot, gives two construction procedures, and diagnoses noisy or reversed curves without deriving elasticity mathematically.
Examples
Uses SKU sales histories, historical prices, synthetic price perturbations, and theoretical elastic- and inelastic-demand curves.
What it assumes
Assumes demand forecasting, price–demand dependency, and basic error-analysis concepts while recalling elasticity from introductory microeconomics.
What you can do after
Diagnose whether a pricing model captures plausible demand elasticity and choose calibration or modeling follow-up.
How it connects
Connects demand forecasting with partial dependence plots, residual analysis, model interpretability, isotonic regression, and feature engineering.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.