Key takeaways
A forecast describes what may happen; optimisation determines what to do about it.
A single average forecast can conceal commercially important differences in demand, capacity and downside risk.
Use probability-weighted scenarios when distributions are credible, and stress tests or robust optimisation when protection against adverse conditions matters.
Explicitly price the consequences of overestimating and underestimating demand, and agree on operational constraints before solving.
Evaluate the resulting decision policy against historical outcomes and realistic alternatives, not only forecast accuracy.
Keep decisions adaptable where possible; uncertainty cannot be eliminated by a more sophisticated solver.
The forecast was accurate. Why did the decision fail?
Imagine two retailers preparing for next week. Both expect to sell 100 units of a product. The first retailer typically sells close to 100 units; the second could sell 60 units during a quiet week or 140 during a busy one. Their dashboards display the same forecast, yet ordering identical quantities exposes them to very different commercial risks.
A stock shortage can mean lost sales and disappointed customers. Excess stock can mean wasted cash, storage charges or markdowns. Neither consequence is visible in the forecast of 100 units.
This distinction is particularly important when managers must commit resources before the future is known. Airlines allocate capacity, manufacturers plan production, service centres schedule employees and retailers place orders. Each decision has consequences that depend on events that have not happened yet.
Optimisation under predictive uncertainty connects predictive analytics with the economics and constraints of a decision. Rather than treating a forecast as a fact, it asks which action is most appropriate across plausible future outcomes. The aim is not to eliminate uncertainty, but to make better decisions in its presence.
A forecast should describe more than one possible future
A point prediction gives one estimate, such as expected weekly sales. A probabilistic forecast describes a range of outcomes and the likelihood assigned to them. A prediction interval, for example, can communicate the range within which a future observation is expected to fall at a specified coverage level, subject to the forecasting assumptions.
There are two useful reasons for separating sources of uncertainty. Some variability is inherent in the process, such as customers making unpredictable purchases. Other uncertainty arises from limited data, model assumptions or unfamiliar market conditions. Better information may reduce the second source, but it cannot necessarily remove the first.
In practice, predictive distributions may come from quantile regression, statistical time-series models, ensembles, Bayesian models or simulation. An organisation can begin with a simple empirical distribution of historical forecast errors, provided those errors are representative of the decision horizon and relevant operating conditions.
Test the reliability of those distributions. If a model produces nominal 90% prediction intervals, approximately 90% coverage across suitable held-out cases is one useful diagnostic. Check interval width and coverage by product, region and horizon as well; a very wide interval can be unhelpful despite adequate coverage. Proper scoring rules, including quantile loss and the continuous ranked probability score (CRPS), offer additional ways to compare probabilistic forecasts.[1]
A forecast interval is not the same as a confidence interval for an estimated average. Resource planning usually requires information about future realised demand, not merely uncertainty about its estimated mean.
What is the cost of being wrong in either direction?
Consider a hypothetical retailer placing a single order for a short selling period. Demand is forecast to be 60 units with probability 30%, 100 units with probability 40% and 140 units with probability 30%. The average demand is 100 units, but the retailer must choose an order quantity before discovering which outcome occurs.
Assume that each unsold unit causes a net cost of £4, while each unit of unmet demand causes a net cost of £12. These are illustrative marginal costs, accounting for relevant recovery value or lost contribution as appropriate. Assume no existing stock, no replenishment during the period and no purchasing or capacity constraint beyond what these costs represent.
If q is the order quantity and D is realised demand, the modelled loss is L(q,D) = 4 × max(q − D, 0) + 12 × max(D − q, 0). The expected loss is the probability-weighted average of this loss across the three possible outcomes.
Ordering 100 units produces losses of £160, £0 and £480 in the low, middle and high demand scenarios respectively. Multiplying each by its probability gives an expected loss of £192. Ordering 140 units instead produces losses of £320, £160 and £0, giving an expected loss of £160.
The order of 140 units minimises expected loss under these assumptions. In the standard single-period inventory problem with linear marginal costs, the target demand quantile is shortage cost divided by the sum of shortage and surplus costs: 12 / (12 + 4) = 0.75. The smallest quantity with cumulative demand probability of at least 75% is 140 units in this discrete example.
The difference is £32 in modelled expected loss per decision, not a guaranteed saving or an observed commercial result. If the price, salvage value, service obligation or demand distribution changes, the preferred quantity can change as well.
Why the lowest average cost may not be the safest plan
The retailer might instead want to limit its largest possible loss. Ordering 120 units results in scenario losses of £240, £80 and £240, with an expected loss of £176. Its maximum loss across the three scenarios is £240, compared with £320 for an order of 140 and £480 for an order of 100.
A minimax decision, which minimises the worst loss in a defined uncertainty set, therefore favours 120 units in this example. It sacrifices £16 in expected performance compared with the order of 140, in exchange for reducing the largest modelled loss by £80. Both choices can be rational because they address different business objectives.
Alternatively, management might require at least a 90% probability of meeting all demand in the selling period. An order of 120 meets all demand with probability 70%, whereas 140 meets all demand in the modelled scenarios. A probability-based service constraint would therefore favour 140 or more units, if feasible.
Notice that the service target concerns the probability of avoiding a stockout, not the proportion of units supplied. These metrics are distinct. Moreover, the apparent 100% service probability at 140 is a feature of the simplified forecast; actual demand could exceed the highest modelled scenario.
Choosing the right optimisation approach
A useful starting point is to ask whether the business trusts the probability estimates and whether it can tolerate occasional unfavourable outcomes. Different optimisation methods answer different versions of that question.
Deterministic optimisation uses fixed estimates for uncertain inputs. It is often a sensible baseline when variability is small or decisions can be reversed cheaply. Adding a validated safety buffer may be enough for a straightforward operational problem.
Stochastic optimisation considers a probability distribution or weighted scenarios. It can minimise expected loss and incorporate future adjustment options, such as purchasing additional supplies once demand becomes clearer. Stochastic programming formalises these decisions and their dependence on available information.[2]
Robust optimisation seeks decisions that remain feasible or perform acceptably across a specified range of uncertainty. One formulation minimises worst-case loss. The cost of additional protection depends on how the uncertainty set is chosen; making it unnecessarily broad can result in expensive or overly restrictive decisions.[3]
Chance-constrained optimisation specifies a maximum acceptable probability of violating a constraint, such as a service-level shortfall. The probability is conditional on the distributional assumptions. Risk-averse stochastic optimisation can instead penalise severe outcomes, for example by including conditional value at risk (CVaR), a measure of average loss in the worst specified fraction of outcomes, with appropriate treatment of ties.
When probabilities themselves are unreliable, distributionally robust optimisation considers a set of plausible probability distributions rather than committing to just one. It can protect against certain forms of estimation error, but choosing an appropriate set and solving the resulting problem may require additional expertise.
The same idea applies beyond inventory
A contact centre may forecast call volumes accurately on average, yet schedule too few employees for busy intervals. A scenario-based staffing model can balance staffing costs, overtime, queueing delays and service requirements. Correlated demand across teams matters when employees are shared.
A manufacturer deciding how much raw material to purchase must consider uncertain demand, supplier delivery times and production yields together. Reserving backup capacity can be more valuable than simply increasing stock, particularly when the disruption is temporary.
A logistics company assigning deliveries to vehicles may face uncertain travel times. Routes that are cheapest under average traffic conditions may miss delivery commitments when delays occur. A planning model can compare route cost against reliability, while allowing dispatchers to adjust assignments when new information arrives.
The common opportunity is not just to predict each uncertain quantity more accurately. It is to understand how the uncertainty propagates through interconnected decisions, operational costs and service commitments.
How to connect predictive models to real decisions
Start with one decision that has a measurable consequence, such as a weekly reorder quantity or a staffing roster. Specify when the decision must be made, what information is available then, who owns it and which actions are permitted. Separate mandatory constraints from preferences that can legitimately be traded against cost.
Build a forecast at the time horizon the decision actually requires. For example, an order with a two-week lead time needs a forecast of demand during that lead time. Use historical records to estimate uncertainty and account for changes in seasonality, promotions and product availability. Recorded sales during stockouts may understate actual demand.
Convert the forecast into coherent scenarios, preserving important dependencies between products, dates or locations. Use scenario sampling or simulation where useful, and add explicitly labelled stress scenarios for disruptions missing from historical observations. Do not assign arbitrary probabilities to stress events merely to make them look statistically precise.
Define the decision variables, objective and constraints, then compare a simple deterministic baseline with a scenario-based or robust alternative. Linear, mixed-integer or nonlinear optimisation may be suitable depending on whether decisions involve discrete shifts, minimum order sizes or more complex operating relationships. Check solver feasibility, solution quality and time limits before using recommendations operationally.
Where decisions can be revised, account for that flexibility. A two-stage plan might reserve capacity now and allocate it after demand becomes clearer. Later actions must depend only on information available at that stage; a simulated plan that uses future knowledge will overstate its achievable performance.
Finally, integrate the recommendation with the existing operational process. Record the forecast version, uncertainty assumptions, constraints, selected action and any human override. If inputs are missing or the model is infeasible, route the decision to an agreed fallback rather than silently relaxing mandatory controls.
Measure decision quality, not just prediction quality
A model with a lower mean absolute error can still produce worse decisions if its remaining errors occur in particularly costly situations. Research on decision-focused learning, including the Smart “Predict, then Optimize” framework, examines how training objectives can incorporate the consequences of prediction errors for downstream optimisation.[4]
Compare forecasting models using point and distributional metrics, but compare decision policies using realised costs, service performance, shortages, surplus and constraint violations. A useful additional measure is decision regret: the loss difference between the chosen action and a specified benchmark, such as a hindsight-optimal feasible action. A hindsight benchmark is diagnostic, not an achievable operational baseline.
Use rolling historical evaluation: for each past decision date, train on information available at that time, generate the forecast, solve the planning problem and evaluate the action against subsequent outcomes. This avoids leakage from the future. Where past decisions affected what was observed, such as stockouts masking demand, use appropriately validated counterfactual methods or controlled pilots rather than treating recorded sales as unbiased demand.
Monitor realised loss and service performance alongside prediction-interval coverage, calibration, scenario stability, infeasible solutions and override frequency. Examine performance during seasonal peaks and operational disruptions, not just ordinary weeks. An apparently successful average can conceal unacceptable losses in specific operating conditions.
When additional complexity is worth the investment
If uncertainty is limited, actions are inexpensive to reverse and decision volumes are low, a simple rule with a validated buffer may perform well. More advanced optimisation is most attractive when decisions commit meaningful resources, shortages and surpluses have very different consequences, or several constraints interact across the business.
The business case should account for the cost of forecasting infrastructure, scenario generation, optimisation, system integration, monitoring and operational adoption. Quantify improvements against a credible baseline under equivalent service requirements. Consider whether better data, shorter lead times or more flexible supplier arrangements could reduce risk more economically.
If your organisation already has predictive models but still experiences avoidable shortages, expensive contingency arrangements or inconsistent resource allocation, a focused review of forecast uncertainty, decision economics and operational constraints can help identify where optimisation would add value.
A useful forecast prepares a business for what might happen. A useful decision prepares it to act sensibly when the future does not match the forecast.
References and further reading
[1] Gneiting, T. and Raftery, A. E. (2007). Strictly Proper Scoring Rules, Prediction, and Estimation. Journal of the American Statistical Association, 102(477), 359–378. Source: https://doi.org/10.1198/016214506000001437
[2] Shapiro, A., Dentcheva, D. and Ruszczyński, A. (2021). Lectures on Stochastic Programming: Modeling and Theory, third edition. SIAM. Source: https://doi.org/10.1137/1.9781611976595
[3] Bertsimas, D. and Sim, M. (2004). The Price of Robustness. Operations Research, 52(1), 35–53. Source: https://doi.org/10.1287/opre.1030.0065
[4] Elmachtoub, A. N. and Grigas, P. (2022). Smart “Predict, then Optimize”. Management Science, 68(1), 9–26. Published online in 2021. Source: https://doi.org/10.1287/mnsc.2020.3922
Apply the approach
Illustrative single-period inventory decision: demand may be 60, 100 or 140 units with probabilities of 30%, 40% and 30%, respectively. Each unsold unit costs £4 and each unit of unmet demand costs £12. The following modelled expected losses and worst-case losses compare alternative order quantities; they are not measured client outcomes.
Worst modelled loss: £480. Probability of meeting all demand: 70%. Uses mean demand without accounting for asymmetric costs.
Worst modelled loss: £240. Probability of meeting all demand: 70%. Minimises the maximum loss over the specified demand scenarios.
Worst modelled loss: £320. Probability of meeting all demand: 100% within the assumed discrete distribution. Minimises expected loss and satisfies a modelled 90% service-probability requirement.
Put the approach into practice
- 01Choose one recurring decision and establish its owner, horizon, permitted actions and hard constraints.
- 02Estimate and validate a predictive distribution at the relevant decision horizon using information available at the time.
- 03Agree on surplus, shortage and other operational costs; define service requirements and risk tolerances.
- 04Compare deterministic, stochastic and robust approaches using coherent scenarios and stress tests.
- 05Evaluate the selected policy against a feasible baseline using rolling historical tests or a controlled pilot, then monitor realised outcomes and uncertainty.
Frequently asked questions
Does optimisation under predictive uncertainty require artificial intelligence?
No. Historical demand distributions, classical forecasting models, simulation and operations research can be sufficient. Machine learning is useful when it produces more reliable predictions or improves decisions at a cost that justifies its complexity.
What is the difference between a prediction interval and an uncertainty set?
A prediction interval describes a range for a future observation at a specified nominal coverage level. An uncertainty set defines the collection of possible inputs against which a robust optimisation model protects. An uncertainty set can be informed by prediction intervals, but it does not automatically have a probability guarantee, especially when several uncertain variables are combined.
How many scenarios are needed for stochastic optimisation?
There is no universal number. It depends on the dimensions of uncertainty, dependencies, rare events, solver complexity and the stability of the recommended decision. Increase scenario coverage and check decisions on independent samples until performance is sufficiently stable for the intended application.
Can an organisation use this approach when historical data is limited?
Yes, by beginning with transparent expert-defined ranges, comparable historical evidence and sensitivity analysis. Avoid presenting subjective probabilities as established facts. Use conservative safeguards and update assumptions as evidence accumulates.
How often should the optimisation model be updated?
Recalculate decisions at an operationally appropriate frequency and when material new information arrives. Review forecast calibration, business costs and constraints separately. Reoptimising with stale or poorly calibrated inputs does not resolve underlying data or model problems.