Write . The target Poisson distribution and proposal geometric distribution have probability mass functions and . Their ratio isThe successive ratio shows that a maximizing integer is , with a tie at when is an integer. Thus the tight envelope isFor any fixed , draw using (ii)'s inversion formula with this new parameter, and draw an independent from the uniform distribution on . Accept whenotherwise restart. The acceptance probability is and the expected number of proposals is .
To minimize that expected count, set . The exact answer isHere is a proof that includes the changes of maximizing integer. Each is a convex function of , since its second derivative is . Their pointwise maximum is also a convex function. When is fixed its derivative isIf , take , where changes from on the left to on the right. The left derivative is nonpositive because ; the right derivative is nonnegative because . This is a minimum. If , take . There and the active branch has except for the endpoint tie; its derivative vanishes. Convexity again proves the global minimum. The formulas agree at the boundary.
For a fully specified optimal algorithm, compute and once, then use the preceding acceptance test with and . At an integer tie either maximizing integer gives the same test. In code, factorials can be evaluated through the logarithm of the gamma function:and acceptance is . This avoids overflowing factorials.
The optimum minimizes expected trials, the usual idealization of time when each proposal and test has constant cost. Actual runtime also depends on the implementation of discrete inversion and factorial evaluation. Simply minimizing an upper bound for would not necessarily give the exact optimum above; see optimal geometric envelope for a Poisson distribution.
With step size , the composite trapezoidal rule gives half weight to the two endpoints:ThereforeIt exceeds the exact definite integral by , as expected because is a convex function and each trapezoid lies above the curve.
No. Both and are affine functions, hence convex functions. Their product is not convex: at the midpoint of and , . Thus products of convex functions need not be convex, even for smooth functions on all of .
The denominator is positive throughout the domain. Holding fixed, differentiate with respect to :At the interior point this second partial derivative is , so the restriction to a horizontal line is locally strictly concave, ruling out convexity. At the interior point it is , ruling out concavity. Restrictions of a convex function or a concave function to every line segment must retain that property. Consequently is neither convex nor concave on its stated domain.
Use bisection on when the derivative is cheap and a bracket is easy to obtain. For a differentiable convex function, is nondecreasing, so such a bracket locates a global minimum, allowing a flat minimizing interval. Without convexity, first isolate a region containing the desired local minimum; arbitrary stationary points need not be minima.
Use golden-section search when reliable function values are available but derivatives are unavailable or expensive. It needs a bracket on which the objective is a unimodal function, commonly found by three ordered points whose middle value is below the two outer values. Those inequalities alone do not prove that the objective is a unimodal function. A convex function supplies the needed shape; for a nonconvex objective, isolate an interval on which it is a unimodal function.
Both methods have linear convergence of bracket width. Bisection contracts the width by per new derivative evaluation. Golden-section search contracts it by per new function evaluation after initialization, reusing one earlier value. Choose by evaluation cost and bracket availability as well as this contraction factor: comparing iteration counts alone can misidentify the faster method.
Pointwise maximum 2026-10-25
The function taking the greater value at every common-domain point. For finitely many affine functions it is a convex function, by bounding each affine branch by the convex combination of the endpoint maximum values. This is the finite-affine case of pointwise maximum of convex functions.
Power put option 2026-10-25
A power put has financial payoff below the strike price and zero at or above it, where is a positive integer. For this is the ordinary put option. For every the payoff is decreasing and is a convex function of the stock price. A European option permits exercise only at expiry; a perpetual power put option permits exercise at any finite time without a fixed expiry.
The affine functions and are both convex functions on , but their product is . Its value at zero exceeds the average of its values at and , contradicting convexity. Thus closure under nonnegative linear combinations does not imply closure under products.
Projected subgradient method 2026-09-28
The projected subgradient method minimizes a possibly nonsmooth convex function over a closed convex set by iterating with . Nonexpansiveness of Euclidean projection onto a convex set and the subgradient inequality give its basic convergence bound.
Proper convex function Created 2026-10-05 Updated 2026-10-06
A proper convex function is both a convex function and a proper extended-real function. For example, the total variation seminorm on a domain is nonnegative, finite at zero, and a supremum of linear functionals, making it proper and convex.
Proper extended-real function 2026-10-05
An extended-real function is proper if it never takes and is finite at at least one point. It can take to impose a constraint. A convex function with this property is a proper convex function.
Proximal gradient mapping 2026-10-25
For a convex function with a well-defined proximal operator, and a differentiable function , the proximal gradient mapping is the displacement of one proximal gradient method update divided by its positive step size . Writing , the subgradient optimality condition gives . For convex functions , its zeros are precisely the global minimizers of , by the subgradient optimality condition and subdifferential sum rule. When , it is the ordinary gradient.
Target: convex-optimization.bigb, under Proximal gradient method. Proximal gradient objective error bound 2026-10-25
For , with a convex function having an -Lipschitz gradient and a proper convex function with a well-defined proximal operator, the proximal gradient method with step size satisfies the displayed bound whenever a global minimizer exists. The one-step subgradient inequality and descent lemma giveThe objective function values are nonincreasing. A telescoping sum over , followed by comparison of the last error with the arithmetic mean of the errors, proves the result. The bound controls the last objective function error without requiring a strongly convex function or a unique minimizer.
Target: convex-optimization.bigb, under Proximal gradient method. Second-derivative criterion for convexity 2026-10-25
A twice-differentiable real-valued function on an open interval is convex if and only if its second derivative is nonnegative everywhere. If , the mean value theorem makes nondecreasing, which implies the supporting-line and chord inequalities for convexity. Conversely, the slopes of a convex function are ordered; where the second derivative exists, this gives . Strict positivity of is sufficient for strict convexity, but is not necessary: is strictly convex despite .
Sharp two-term convex power bound 2026-10-14
Apply Jensen's inequality to the two equally weighted values and the convex function . Equality for proves that is the smallest possible constant. For , strict convexity makes equality equivalent to ; for , equality holds for every pair.
For a flux that is a differentiable convex function with unique minimum at , define for and zero otherwise, and for and zero otherwise. The Engquist-Osher flux is . Thus transsonic rarefaction wave states give , while reversed transsonic states give . This follows by integrating the positive and negative parts of .
Let be a bounded linear operator from a real Banach space to a real Hilbert space, let be a proper lower-semicontinuous convex function, and let and . For an existing minimizer of and a source condition in variational regularization , let and . Its optimality subgradient is . Then . The displayed estimate follows from .
Stochastic gradient noise floor 2026-10-25
A residual accuracy level in a bound for stochastic gradient descent with a fixed step size and nonvanishing gradient noise. For a convex function with an -Lipschitz gradient, step size and conditional total variance at most , typical bounds have floors for averaged squared gradient norms, for averaged gradient norms, and for the best expected objective function gap. Such floors are upper bounds depending on the analysis and assumptions, rather than claims that these exact values are attained or that every last iterate converges.
Target: gradient-descent.bigb, under Stochastic gradient descent. Strong duality without dual attainment 2026-10-18
Consider an objective function that is a quadratic polynomial, with a singular optimization constraint:Its only feasible point is , giving . For , completing the square yieldsEvery finite Lagrange multiplier gives , but as . Thus : strong duality holds, and the primal optimum is attained, yet dual attainment fails. The inner minimizers approach without ever becoming feasible at finite .
Both the objective function and the constraint function are convex functions. However, Slater's condition fails because is impossible. At the optimum, stationarity would require , which no finite Lagrange multiplier satisfies. Compare KKT regularity at a local minimum: a zero gradient of an active constraint can prevent a multiplier certificate. This example has zero duality gap without the Strong Lagrangian property.
Subdifferential under scalar affine composition Created 2026-10-05 Updated 2026-10-06
For a finite convex function , the function is convex. The subgradient inequality gives , where . Conversely, every subgradient of annihilates , because is constant on lines in those directions. For , write and test the subgradient inequality at ; this proves . For , is constant and both sides are since a finite convex function on the real line has a nonempty subdifferential everywhere.