Convexity
Convexity is the property of a set containing the line segment between any two of its points, or of a function whose value between two points is no greater than the linear interpolation of its endpoint values.
Build a Robo-Advisor with Python (From Scratch)
A mathematical property of functions or sets that ensures line-segment combinations remain compatible with global optimization guarantees.
- How it is used
- Frames portfolio optimization around solver efficiency and confidence that an obtained solution is globally optimal.
- How deep it goes
- Defines convex functions and sets mathematically, contrasts local and global minima, and stops short of solver implementation.
- Examples
- Uses function graphs, line segments, convex and nonconvex sets, and unconstrained portfolio optimization.
- What you can do after
- Evaluate solver reliability and apply constraints when nonconvexity or naive portfolio optimization can produce nonoptimal results.
Read how Build a Robo-Advisor with Python (From Scratch) explains convexity →
Math and Architectures of Deep Learning
The property of a function or set that, in this section, is characterized by being above its tangent and by a nonnegative second derivative.
- How it is used
- Frames function shape and curvature for reasoning about local minima and later applications of Jensen’s inequality.
- How deep it goes
- Defines sets and functions geometrically, connects tangents to Taylor expansions, and verifies several functions with second derivatives.
- Examples
- Uses convex and nonconvex regions, x², even powers, eˣ, log x, −log x, positive scaling, and sums.
- What you can do after
- Evaluate/understand convexity by testing line segments, weighted-average inequalities, tangent behavior, or second derivatives.
Read how Math and Architectures of Deep Learning explains convexity →
Related concepts
- linear regressionincludes · Linear regression is a statistical method that models a numeric response as a linear function of one or more predictor variables with fitted parameters.
- second derivativemeasured by · A second derivative is the derivative of a function’s first derivative with respect to the same variable, describing how its rate of change varies.
Questions about convexity
What is convexity?
Convexity is the property of a set containing the line segment between any two of its points, or of a function whose value between two points is no greater than the linear interpolation of its endpoint values.
Which Manning books explain convexity?
Build a Robo-Advisor with Python (From Scratch) and Math and Architectures of Deep Learning.
What is the difference between convexity and nonconvex?
Convexity is the property of a set containing the line segment between any two of its points, or of a function whose value between two points is no greater than the linear interpolation of its endpoint values. Nonconvex describes a set or function that does not satisfy the defining mathematical properties of convexity.
What kinds of convexity are there?
Kinds of convexity include linear regression.
What is convexity also called?
Convexity is also called convex.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

