On the Rate of Convergence of Optimal Solutions of Monte Carlo Approximations of Stochastic Programs 1: At a Sharp Minimum the SAA Problem Is Solved Exactly W.P.1 for Large NResearch Paper
Motivation
Most stochastic programs cannot be solved as stated, because the objective is an expectation over a distribution that is high-dimensional, continuous or known only through a simulator. The standard remedy is the sample average approximation (SAA), also called the Monte Carlo or sample-path method: draw an i.i.d. sample, replace the expectation by the sample mean, and solve the resulting deterministic problem. The method is the workhorse of two-stage stochastic programming, and its statistical behaviour decides how large a sample a practitioner must draw.
For smooth problems with a unique optimum, the classical theory says the SAA solution converges at rate and is asymptotically normal. Shapiro and Homem-de-Mello (SIAM J. Optim. 11 (2000)) observed that two-stage linear programs with finitely many scenarios behave quite differently: their optimal solutions are typically sharp, the objective grows linearly away from the minimizer, and then the SAA problem does not just approach the true solution but returns it exactly once the sample is large enough. This mission formalizes that first observation, Theorem 2.1 of the paper. Its sequels in the same series show that the probability of failure decays exponentially in (mission 2) and extend the picture to multiple optimal solutions in the finite polyhedral case (mission 3).
Setting
Let be a probability measure on a sample space , let be a set of feasible decisions, and let be a cost function. The true problem (1.1) is
Let be an i.i.d. sequence of random elements of with law , defined on some probability space . The approximating problem (1.2) uses the first of them:
For a function on write ; the optimal set of the true problem is . The directional derivative of at in direction is ; for the cost of a single scenario it is written . The tangent cone to a convex set at is the closure of .
Assumption (A). The true problem has a unique optimal solution , i.e. , and there is with
An optimal solution with this linear growth is a sharp minimum.
A statement holds w.p.1 for large enough if for -almost every sample path there is , depending on the path, such that it holds for every .
Formalization targets
Goal: Theorem 2.1 (p. 5)
Suppose (i) is convex for every ; (ii) is well defined and finite valued; (iii) is closed and convex; (iv) Assumption (A) holds. Then w.p.1 for large enough
that is, the approximating problem has a unique optimal solution and .
Milestones
- (A) ⇔ (2.3) (p. 4): for a convex problem, is a sharp unique minimum iff for all .
- Uniform positivity (p. 4): (2.3) implies for some and all .
- Proposition 2.2 (2.5) (p. 5): .
- (2.10) (p. 5): .
- Proposition 2.2 (2.6) (p. 5): w.p.1.
- Proposition 2.2 (2.7) (p. 5): w.p.1, with the Hausdorff distance.
- (2.11) (p. 6): w.p.1 for large enough, for all .
Significance
The result. Theorem 2.1 says that for convex stochastic programs with a sharp optimum, SAA is not an estimator with sampling error in the usual sense: almost every sample path eventually produces the true solution itself. This is the qualitative statement behind the paper's main quantitative result (Theorem 3.1, mission 2 of this series), that the probability of not obtaining the exact solution decays like . Together they explain why, in two-stage linear programs with finitely many scenarios, modest sample sizes often recover the optimal first-stage decision exactly, a phenomenon the paper documents numerically. The proposition on directional derivatives (Proposition 2.2) is of independent use: it is the almost-sure uniform convergence of first-order information of a sample average, which recurs in the asymptotic analysis of SAA estimators.
Formalizing it. The theorem is proved in the paper; nothing here is open. Machine-checked SAA theory is thin: the existing platform material treats uniform convergence of the objective on compact sets, not directional derivatives or exactness at sharp minima. A complete development supplies, on top of Mathlib, the strong law of large numbers applied to directional derivatives of convex integrands, the passage from pointwise to uniform convergence for convex functions, and the characterization of sharp minima by directional derivatives on the tangent cone. Each of these is reusable well beyond this paper.
Difficulty
The obvious argument fails at the step from convergence to exactness. Strong consistency of SAA ( w.p.1) says nothing about equalling ; for a smooth objective it never does. Exactness has to come from a first-order condition at that holds with a margin, and that margin must be transferred to uniformly over all tangent directions at once, not one direction at a time, since there are uncountably many directions and each carries its own null set. The second difficulty is that and are typically nonsmooth (piecewise linear in the motivating examples), so the first-order objects are one-sided directional derivatives, and differentiation under the integral sign, in its usual smooth form, does not apply to them.
Formalization scope
- is
EuclideanSpace ℝ (Fin m). The sample is one infinite i.i.d. sequence on a separate probability space : each is measurable with law , and the family is mutually independent. uses the first terms (0-based in Lean). "W.p.1 for large enough" is∀ᵐ s ∂Q, ∀ᶠ N in atTop, …; a fresh sample for each is not used. - Hypothesis (ii), " well defined and finite valued", is encoded as integrability of for every (a disclosed pin, which includes measurability).
- is the Bochner integral; directional derivatives are one-sided limits (
limUnderalong ), used only for convex finite functions, where the limits exist. Optimal sets are defined directly as argmin sets, without infima. - The tangent cone is Mathlib's
posTangentConeAt, the cone of limits of with ; for convex it is the closure of . Mathlib'stangentConeAt ℝ, which allows negative scalings and is symmetric, is not the paper's cone and is not used. - Supremum limits over the unit ball are stated as uniform convergence on the closed unit ball; the Hausdorff distance is the extended-valued
Metric.hausdorffEDist. Subdifferentials use the published definitionShorNonsmooth.Subdiff.subdifferential. - Uniqueness in the goal is the set equality ; the weaker " is optimal for (1.2)" is not the theorem. The goal's quantifier order is "almost surely, eventually in "; "for each , almost surely" is a different and false statement.
- Milestones 1 and 2 are stated for an arbitrary finite convex function, which covers both and .
Contributions welcome: proofs of any milestone; in particular the convex-analysis lemmas (milestones 1, 2 and 4) need no probability, and (2.5)–(2.6) need only Mathlib's strong law.
Selected references
- A. Shapiro and T. Homem-de-Mello, On the rate of convergence of optimal solutions of Monte Carlo approximations of stochastic programs, SIAM J. Optim. 11(1):70–86, 2000. https://doi.org/10.1137/S1052623498349541 (the mission cites the authors' preprint, Stochastic Programming E-Print Series).
- R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970 (Theorem 10.8, uniform convergence of convex functions). https://doi.org/10.1515/9781400873173
- J.-B. Hiriart-Urruty and C. Lemaréchal, Convex Analysis and Minimization Algorithms I, Springer, 1993 (Theorem V.3.3.8, support functions and Hausdorff distance). https://doi.org/10.1007/978-3-662-02796-7
- A. Shapiro, D. Dentcheva and A. Ruszczyński, Lectures on Stochastic Programming: Modeling and Theory, SIAM, 2009 (Chapter 5, statistical inference for SAA). https://doi.org/10.1137/1.9780898718751