Bridging Decision Problems, Vol. I Framing the Problem
Back to SDA site →

Chapter 5: Uncertainties

Bridging Decision Problems, Volume I — Framing the Problem · Warren B. Powell

Sequential decision problems invariably have to deal with uncertainty, which is typically the most challenging dimension of making decisions over time. There are three ways that uncertainty affects the performance of our system:

  1. The decision we make at a point in time is not implemented correctly.
  2. The performance of the system given our decision is not the same as what we estimated when we made the decision.
  3. The impact of a decision now on the future is not estimated correctly because of changes as we step forward in time.

Although we list only three ways that uncertainty affects performance, uncertainty arises in many forms, which is why some forms of uncertainty are often overlooked in the modeling process. In fact, most uses of optimization tools ignore all forms of uncertainty, typically reflecting the dramatic increase in uncertainty introduced by explicitly modeling any form of uncertainty.

A goal of this chapter is to highlight the different ways that uncertainty can arise. This does not mean that models need to incorporate all forms of uncertainty. However, the decision to ignore a form of uncertainty should be an explicit choice, and not just because a modeler overlooked it.

The 12 classes of uncertainty {#12classesofuncertainty}

One way to approach the identification of sources of uncertainty is to work backward from a mathematical model. Below are 12 classes of uncertainty created from the perspective of how uncertainty can enter a model. Complex problems, such as managing a supply chain, an energy system or solving a public health problem, will involve all 12 classes, while simple problems such as playing chess may involve just one.

There is some overlap in the classes, so do not worry if there is some ambiguity in terms of where to list a source of uncertainty. What is important is to identify as many different forms of uncertainty as possible.

  1. Observational errors – These represent errors in quantities and parameters that we have to observe from the environment. Some examples might be:
    • The current inventory of a product as represented in the computer, which may not match what is actually on hand.
    • Medical X-rays of a patient to detect cancer.
    • The fraction of voters who prefer a particular candidate for political office.
  2. Exogenous uncertainty – This is information that will arrive to our system after making a decision, such as:
    • The demand for a product being sold in the market.
    • The change in price of a stock.
    • The time required to drive from one city to the next.
    • The amount of cash that may be deposited or withdrawn tomorrow.
    • How a patient responds to a type of medication.
  3. Prognostic uncertainty – This is errors in forecasts of demands, prices, travel times (any quantity that we might be forecasting).
  4. Inferential uncertainty – This captures uncertainty in our estimates of the state of the world right now. This could include:
    • How the market might respond to a change in price. We might think there is a 10 percent drop in demand for a 5 percent increase in price, but the true value might be that demand will drop by 12 percent.
    • We think that a cancer patient is stage 2, but it might be stage 3. We might detect breast cancer, but overlook that it has spread to other organs.
    • A presidential campaign may think that $10 million in ad spending in a major market might produce a 2 percent increase in favorability of a candidate, but the reality may be higher or lower.
  5. Experimental uncertainty – This describes the variation from running repeated experiments either in a lab, a simulator, or the field:
    • A manufacturer runs experiments of a process for manufacturing silicon wafers. The test may be repeated 10 times, producing a spread of yields between 70 and 90 percent.
    • A business is evaluating a new marketing campaign by running it in five different test markets. There will be variations across the markets, and over time.
    • A computer simulator is used to test the performance of an inventory ordering policy. Each pass of the simulator will produce different results.
  6. Model uncertainty – This is an umbrella that can cover multiple sources of uncertainty, but one of the most important is uncertainty in the model of how a process evolves over time. Examples might be:
    • How the climate responds to changes in policies for controlling carbon.
    • How a patient responds to injections of insulin.
    • How a disease spreads in a population in response to changes in policies regarding the distribution of vaccines.
  7. Transitional uncertainty – This is noise in how a system responds to a control. The simplest example would be controlling the path of a rocket or aircraft, which is buffeted by wind. We typically assume that the evolution of the system is known and deterministic, but is affected by an exogenous process (such as wind).
  8. Implementation uncertainty – There can be a difference between what we decide to do, and the decision that is actually implemented in the field. For example:
    • The physician orders a particular medication, but the patient does not take it, or takes the wrong dose.
    • A scientist wants to test a particular combination of materials, but the intern orders an incorrect item (errors like this can produce major breakthroughs!).
    • The power grid orders that a generator be turned on at 1pm, but the local operator does not turn on the generator until 2pm.
  9. Communication errors – Instructions to the field can be simply miscommunicated. The person receiving the instruction may think they are doing what is requested, but they just did not hear or understand an instruction.
  10. Algorithmic instability – There are some settings where running an algorithm repeatedly can return different solutions:
    • Complex problems often require the use of sophisticated algorithms that introduce an element of variability, which often arises when an algorithm uses parallel processing. The speed of parallel processors may affect who finishes first, which can affect the overall path of the algorithm.
    • Algorithms for solving stochastic optimization problems often depend on Monte Carlo sampling which will produce different results each time the algorithm is run (this is seen when running large language models).
  11. Goal uncertainty – Companies that require groups of people to make decisions (dispatching trucks, trading financial assets, bidding on energy contracts) can exhibit variations because different people emphasize different performance metrics.
  12. Environmental uncertainty – Here, “environment” might reflect climate, or a political environment (which might impact policies or tariffs), or new management at a company (which results in a change in priorities).

Examples from selected applications

It helps to see examples of each of the 12 classes for some of the applications we introduced in Chapter 2. For each application, we describe one or more examples of the uncertainties for each class, noting that simpler applications will not have uncertainties for all 12 classes. It is important to remember that the real goal here is to recognize as many sources of uncertainty as possible. How these uncertainties are reflected in the process of making decisions will come in future volumes.

Cash management for a mutual fund

A mutual fund has to determine how much cash to keep on hand to meet redemption requests, and as deposits are made, by both individual and institutional investors.

Table 5.1. Uncertainties arising in the mutual fund cash balance problem.
Classes of uncertaintyMutual fund cash balance
1. Observational uncertainty
2. Exogenous uncertaintyDeposits, redemptions, market indices
3. Prognostic uncertaintyForecasts of deposits, redemptions, market indices, interest rates
4. Inferential uncertaintyEstimating how redemptions change with market performance
5. Experimental variabilityTesting different policies for holding cash
6. Model uncertainty
7. Transitional uncertaintyUpdating how much cash is on hand
8. Implementation uncertainty
9. Communication errors
10. Algorithmic instability
11. Goal uncertaintyBalancing maximizing investment returns, minimizing stock sales for redemptions
12. Environmental uncertaintyChanges in interest rates

Finding the best diabetes treatment

Diabetes patients have to manage their blood sugar using a combination of medications (perhaps using an insulin pump) and diet.

Table 5.2. Uncertainties arising in the management of blood sugar.
Classes of uncertaintyManaging blood sugar
Observational uncertaintyMeasuring A1c levels
Exogenous uncertaintyWhat a patient eats
Prognostic uncertaintyAnticipating changes in blood sugar levels after a meal
Inferential uncertaintyEstimating how a patient's blood sugar responds to medication
Experimental variabilityChanges in blood sugar for different types of medication
Model uncertaintyModeling how a patient responds to a type of medication
Transitional uncertainty
Implementation uncertaintyWhether a patient follows their physician's instructions
Communication errorsWhether a patient misunderstands the physician's instructions
Algorithmic instability
Goal uncertaintyBalancing blood sugar reduction vs. digestion issues
Environmental uncertainty

Supply chain management

Supply chains require managing inventories that have to be coordinated across the system.

Table 5.3. Uncertainties arising in supply chain management.
Classes of uncertaintySupply chain management
1. Observational uncertaintyMeasuring inventory
2. Exogenous uncertaintyMarket demand, weather, transit times
3. Prognostic uncertaintyForecasting demands, production, resignations
4. Inferential uncertaintyMarket response to price, machine failure rates
5. Experimental variabilitySimulation errors, testing new materials, test marketing
6. Model uncertaintyHow information spreads in the marketplace, how employees respond to incentives
7. Transitional uncertaintyUpdating inventories
8. Implementation uncertaintyFailure to follow instructions
9. Communication errorsIncorrect instructions to suppliers
10. Algorithmic instabilityVariations in optimal solution from production schedules
11. Goal uncertaintyDifferences in priorities toward production cost vs. covering demand
12. Environmental uncertaintyChanges in tariffs, currency exchange rates, interest rates

Allocating naloxone kits

State agencies have to allocate naloxone kits to meet the needs of local clinics and medical professionals who are treating patients.

Table 5.4. Uncertainties arising in the management of naloxone kits.
Classes of uncertaintyManagement of naloxone kits
Observational uncertaintyThe number of naloxone kits in inventory
Exogenous uncertaintyThe number of events requiring uses of naloxone kits
Prognostic uncertaintyEstimates of changes in patterns of drug use
Inferential uncertaintyEstimates of how the availability of kits affects their use
Experimental variability
Model uncertaintyUnderstanding how drug use patterns change over time
Transitional uncertaintyChanges in naloxone kit inventories from week to week
Implementation uncertaintyWhether kits are used properly; whether instructions to allocate are followed
Communication errorsWhether field representatives follow instructions in handing out kits
Algorithmic instability
Goal uncertaintyPrioritizing who to supply with naloxone kits
Environmental uncertaintyAvailability of funding for naloxone kits

Managing a fleet of trucks

Truckload trucking companies have to determine which loads to move, with what driver.

Table 5.5. Uncertainties arising in the management of a fleet of trucks.
Classes of uncertaintyManaging a fleet of trucks
Observational uncertainty
Exogenous uncertaintyNew loads from shippers; refused assignments by drivers; traffic delays
Prognostic uncertaintyForecasts of loads in the future
Inferential uncertaintyHow the market will respond to changes in spot prices
Experimental variabilityRunning simulations of changes in driver allocations
Model uncertainty
Transitional uncertaintyChanges in number of available loads; updates to driver availability
Implementation uncertaintyWhether a dispatcher follows the instruction of the model
Communication errorsWhether dispatchers follow the instructions of their managers
Algorithmic instabilityChanges in the solution from updates of estimates of driver values
Goal uncertaintyBalancing empty miles against shipper commitments against getting drivers home
Environmental uncertaintyChanges in hours-of-service rules by the Dept. of Transportation

Planning an electric power grid

The power grid has to work with utilities to determine which generators should be turned on to meet the anticipated demands placed on the grid.

Table 5.6. Uncertainties arising in the management of the electric power grid.
Classes of uncertaintyManaging the electric power grid
Observational uncertaintyEstimating temperature, weather, customer attitudes
Exogenous uncertaintyChanges in weather, generator failures
Prognostic uncertaintyForecasts in temperature, wind, cloud cover
Inferential uncertaintyEstimating how power demand changes as grid prices change
Experimental variabilityVariability in the response to changes in model parameters
Model uncertaintyErrors in evolution of wind speeds over geographical region
Transitional uncertaintyDifference between expected wind power and actual
Implementation uncertaintyDifferences between instructions to utilities and what they do
Communication errorsErrors in understanding of instructions communicated to utilities
Algorithmic instabilityVariations in the performance of the integer programming algorithm
Goal uncertaintyBalancing the use of nuclear vs. coal vs. renewables
Environmental uncertaintyChanges in policies for reimbursement of excess solar generation

How uncertainty affects performance

While we have identified 12 classes of uncertainty, there are only three ways that uncertainty affects the behavior of a model:

  1. How decisions are made.
  2. The performance metrics from the decisions chosen in the model.
  3. The evolution of the system in the model after a decision is made, and before the next decisions have to be made.

Then there are the ways that uncertainty affects performance in the field:

  1. The decisions that are implemented in the field.
  2. The actual performance metrics for the decisions that are implemented in the field.
  3. The evolution of the system in the field.

There are many ways uncertainty affects performance, from random costs to how a patient responds to a drug to the price of an investment. For now, we are just going to focus on identifying how uncertainty affects performance.

Different forms of uncertainty

The first step in understanding uncertainty requires listing the different sources of uncertainty, as we have done above. The next step, then, is describing the different forms that the uncertainty arises. Below is a sampling of these:

Hourly energy output from solar over an entire year, demonstrating both with-day and seasonal variability.
Figure 5.1. Hourly energy output from solar over an entire year, demonstrating both with-day and seasonal variability.
Illustration of bursts of activity.
Figure 5.2. Illustration of bursts of activity.
Real-time electricity prices, updated every five minutes, in February, illustrating extreme volatility.
Figure 5.3. Real-time electricity prices, updated every five minutes, in February, illustrating extreme volatility.

Seasonality

A different form of variability is captured under the general term “seasonality” which comes in various forms:

Figure 5.4 (left) shows solar energy production over the course of a week, illustrating both the familiar and highly predictable pattern created by the sun, which is interfered by the highly stochastic presence of cloud cover. Figure 5.4 (right) shows hourly solar energy over the entire year, where we can clearly see the reduction in solar energy during the winter season.

Daily solar energy over a week (left), and annual solar energy (right).
Figure 5.4. Daily solar energy over a week (left), and annual solar energy (right).

Creating beliefs

If we are modeling uncertainty on the computer, we have to find a way to represent it. Below are several popular strategies.

Computing an empirical CDF from a set of observations.
Figure 5.5. Computing an empirical CDF from a set of observations.

The problem of correlations

The previous section is a brief snapshot of ways of representing the uncertainty in an estimate. However, once we go down the road of recognizing uncertainty, we have to face the far more complex issue of correlations.

It helps to have some examples of information processes in mind to illustrate different forms of correlation. Assume we might be considering any of the following streams of data:

  1. Customers purchasing a retail product across many sales locations.
  2. The lead time from placing an order and receiving it.
  3. The energy generated from a wind farm.
  4. The rate of new infections from the latest strain of flu.
  5. The number of truckload movements tendered by a customer to different locations.

These are just a small handful of the types of information streams we will have to deal with. Below we use these examples to talk about three different types of correlations:

Correlations over time

All sequential decision problems involve the element of time, which may be at virtually any time scale, from seconds, minutes, hours, and days to weeks, months and even years.

Correlation over time can arise in each of our five problem settings as follows:

  1. An incoming snow storm can create a surge in demand for snowblowers; negative publicity can create a period of reduced demand.
  2. A port strike can create backlogs that increase unloading times for months.
  3. Rain storms can create periods of increased wind generation that may last for days.
  4. As a virus enters a region, it will create a period of elevated infections that can last from weeks to months.
  5. If a plant is shut down for maintenance, there may be a drop in loads out of a location for a week.
Actual vs. forecast, showing crossing times.
Figure 5.6. Actual vs. forecast, showing crossing times.

Figure 5.6 illustrates how the energy generated from wind may exceed, or fall below, the forecast over a period of time as weather systems move through a region. It is important that we replicate not just the error between actual and predicted, but also the amount of time we stay above or below the forecast, a quantity known as the “crossing time.”

It is fairly common for random signals to be viewed as variations from a base mean, which is usually treated as a constant which has to be estimated. In reality, the “base mean” may also be varying, but on a different time scale. For example, customers walking into a retail store represent random outcomes on a fine time scale, since the behavior of each customer is independent. But they may be responding to market signals (advertising, word-of-mouth) that is also changing, but more slowly.

Arguably the biggest challenge with correlation over time is that it can occur at multiple time scales, at the same time. Independent events (such as how many people come into a store each hour requesting cough medicine) are quite easy to model. The variations that happen on longer time scales are harder because they create what appear to be correlations across time at smaller time scales.

Correlations across geography

Customer purchase decisions, disease outbreaks, and weather are all examples of random processes that vary geographically. Sometimes political boundaries may limit the correlations, but most of the time it is simply distance that governs the strength of the correlation.

Spatially distributed processes typically occur in very high dimensions (there are a lot of spatial locations!). What simplifies geographical correlations is that it is typically fairly easy to capture. Geography may be a pure function of distance, but it can also reflect geographical boundaries as well as population movement patterns. Fortunately, there are powerful mathematical tools help identify and capture these correlations.

Correlation across geography can arise in each of our five problem settings as follows:

  1. The surge in demand for snowblowers will also be regional since it is responding to snowstorms (which are regional).
  2. A port delay can produce reduced supplies in the region served by the port, with higher correlations for points closer to the port.
  3. Rainstorms are also regional, and will create surges in energy from wind farms in the areas affected by the storm. Similarly, hot spells (which are also regional) will produce periods of low wind.
  4. The spread of flu will be regional since it passes between people who are close to each other.
  5. Freight is generated either by changes in a manufacturing plant (which is located at one point) or changes in demand, which may be driven by regional forces.

Correlations across attributes

Most of our examples involve activities that are characterized by a set of attributes:

  1. Demand for clothing will have correlations between garments with similar style but different colors.
  2. Products that share common inputs (such as materials for clothing, chips for cars, rare earths for motors) may exhibit similar lead time delays when there is a shortage of the input.
  3. (No apparent use of correlation across attributes for wind energy.)
  4. New infections may be correlated across people who share features such as age or medical conditions.
  5. The flow of truckload movements can be correlated when they are moving common commodities or products.

It is often the case that when we expand all the attributes, we find ourselves with so many combinations that the number of observations for a particular combination of attributes may be quite small, and possibly zero. These problems lend themselves to the use of hierarchical estimation methods, where we create different time series by neglecting one or more attributes, and then using weighted combinations.

Exercises

Review questions

  1. Name the 12 classes of uncertainty, giving one example of each from any application.
  2. Name seven forms of uncertainty that can describe random processes, and describe a context that might produce each one.
  3. What are the ways that uncertainty can impact the performance of a system, and give an example of each.
  4. Name four forms of seasonality.
  5. Create a cumulative distribution of wind speeds from the following observations:

    (17, 8, 2, 12, 9, 28, 10, 8, 35, 12, 15)

Modeling questions

For each of the questions below, try to find as many forms of uncertainty within each of the classes for the following settings, following the tables given in the section above.

  1. The inventory planning problem in Chapter 2.
  2. The furniture demand management problem in Chapter 2.
  3. Planning clinical trials in Chapter 2.
  4. Running a presidential election in Chapter 2.
  5. Supply chain finance in Chapter 2.
  6. Choose a problem setting of your own, ideally one with some complexity, and identify as many types of uncertainty using the 12 classes as a guide.