Everett Dutton
All posts

Tolerance Stackup in Decision Models

In manufacturing physical goods and the design thereof, there is the concept of tolerance stackup. This concept can also be applied to models (optimization or otherwise) that your company uses to operate more effectively.

Assemblies of physical objects are composed of two or more components, each with their own dimensions, needing to interface with each other. A simple example is a nut and a bolt, holding something together. The outer diameter of the bolt needs to be some size, plus or minus, and the inner diameter of the nut needs to be some size, plus or minus. The engineers who specified the sizes and their tolerances tell this to the manufacturing team, who then need to make sure they stay within those limits. Tolerance stackup occurs when the worst case scenario of manufacturing each component (because of variability inherent in any manufacturing process) leads to the assembly not being able to fit together. In this case, the bolt being too big and the nut too small (can’t thread them together), or the bolt being too small and the nut too big (falls right through). Being extremely careful and manufacturing with extremely tight tolerances is possible, but expensive (due to inspection time, scrapping out rejects, slower production, more expensive machinery, etc.).

Any model, being a lossy representation of the real world, also suffers from tolerance stackup. What you choose to input into your model, how (in)accurately you can measure or predict those inputs, how (in)accurately you represent the interactions between inputs and outputs, and how (in)accurately you solve your model, and how successful you are at putting your plan in place in the real world all stack up to produce a model of the real world that is far outside of acceptable ranges.

For example, suppose you are an avocado merchant. You are trying to set an optimal price for your avocados on hand, given what you know about demand. You can plop your demand into a piece of software that handles optimization and forecasting together, or you can forecast-then-optimize. It doesn’t matter, because you will still completely fail to do anything even close to optimal because you have an absolute waterfall of modeling failures way upstream in the stack: the world of avocado pricing is so much more rich than just the demand of avocados. How’s production look? How’s shipping looking? Storage? How much are those costing right now? In a week? How sure about those costs are you? Do you have any contracts in place already? What’s your cost of capital? Are there bulk discounts? Do you want to sell out? Why or why not?

Your options are either: 1) Build all these features into your model of the world (though you will still have all of the downstream errors, and will never reach perfection). 2) Realize that “all models are wrong, but some are useful.” - George E. P. Box