Free lesson · Optimization
An uncertainty bound becomes a position penalty
Open interactive lessonPractice calculationsExplore labs
Start with the idea
If the forecast may be wrong within a specified interval, assess the least favorable return for each position.
Symbols, units & horizon
- μ: uncertain next-month mean return
- μ̂: point forecast of same mean
- ε≥0: assumed error radius in monthly-return fraction units
- w: signed capital weight
- minimum: worst mean-return contribution over the chosen interval
When and why to use this
Reject fragile allocations that depend entirely on a point estimate.
If the forecast may be wrong within a specified interval, assess the least favorable return for each position.
An interval uncertainty set is a modeling choice, not a confidence guarantee. For a long position the adverse mean is the lower endpoint; for a short position it is the upper endpoint. This produces an absolute-position penalty.
Separate this penalty from transaction costs. Forecast uncertainty penalizes holding exposure; trading costs penalize changing exposure. Calibrate the interval using information available in training and inspect whether conclusions survive larger plausible errors.
An uncertainty bound becomes a position penalty
- Write μ=μ̂+d with d between −ε and ε.
- If w≥0, minimizing dw selects d=−ε; if w<0 it selects d=+ε.
- Both cases equal −ε|w|; add the central forecast contribution μ̂w.
A forecast .01, radius .015 and long weight .4 have worst contribution .004−.006=−.002 of capital for the month.
Apply it in a strategy
- Freeze inputs at the stated decision time and record their units.
- Reject fragile allocations that depend entirely on a point estimate.
- Recompute the example, then change the material assumption and explain the difference.
Research deliverable
An uncertainty bound becomes a position penalty: produce the worked calculation, a timestamped input record and a written decision addressing this limitation: A narrow or misspecified uncertainty set gives false comfort; worst-case means do not bound realized losses.
These are synthetic mechanics examples, not historical performance or paper replications. Module evidence and research boundaries record the 12 September 2026 review.
Python implementation
Self-contained teaching example. Python 3.10+; dependencies and input conventions are shown in the code and notation. Run in your own Python environment.
# Python 3.10+; standard library and NumPy only.
# Synthetic teaching inputs; conventions and units are defined in the notation above.
def worst_mean_contribution(forecast,radius,weight):
if radius<0: raise ValueError('Nonnegative radius required')
return forecast*weight-radius*abs(weight)
assert abs(worst_mean_contribution(.01,.015,.4)+.002)<1e-12
print(worst_mean_contribution(.01,.015,.4))Continue learning
Optimization: Feasibility, Costs & Robust Decisions — all lessons- Exposure constraints before optimization
- Curvature and a bounded quadratic decision
- Derive the fully invested minimum-variance portfolio
- Project a desired allocation onto the long-only simplex
- Trading costs and a no-trade decision
- An uncertainty bound becomes a position penalty
- Read a binding constraint through its shadow price
- Numerical residuals and independent solution checks
Quantitative finance and development glossary · Python resources and libraries · Research sources and limitations