The error bars inherently have a big of a lag due to it taking some time for the average time to catch up to the real world conditions.
Much like trading, you could use exponential and/or weighted moving averages to give you signal as things change.
Doesn’t sound like much of anything at all.
Even a random Medici accountant in the 13th century could grasp that in an ideal frictionless world it would be senseless to keep more than a tiny amount of inventory on hand. And that the more it deviates from the ideal frictionless assumption, the more stuff to keep on hand.
There is also the margin on the item that comes into play.
e.g. if you have a low margin item and you are out of stock, by definition the opportunity cost of not having inventory is low.
The entire point of JIT is to identify those widening error bars early and treat. In this case, by moving more work onshore.