Convex and Non Convex Sets
Convex Sets
Intuitive Idea
A convex set is a collection of points such that the straight line segment connecting any two points in the set lies entirely within the set.
-
Think of a solid ball or a solid square: no matter which two points you choose, the line between them never goes outside.
-
A non-convex set has dents, holes, or gaps, so a line between two points may pass outside the set.
Visual Intuition
-
Convex → no dents or holes
-
Non-convex → has indentations or holes
Definition (Simple Terms)
The Rule
-
Pick any two points in the set.
-
Draw the straight line segment between them.
-
If the entire line stays inside the set, the set is convex.
If this fails even once, the set is non-convex.
Mathematical Definition
A set is convex if for any two points
and for any number ,
Interpretation
-
controls where the point lies on the line segment:
-
→ point
-
→ point
-
→ point between and
-
-
This expression is called a convex combination.
Examples of Convex Sets
1. Simple Geometric Shapes
-
Solid circles (disks)
-
Squares and rectangles
-
Triangles
-
Ellipses
-
Solid cubes and spheres
2. Lines and Planes
-
A single line
-
A line segment
-
A plane or hyperplane
-
A half-space, such as:
3. Vector and Norm-Based Sets
-
Unit ball:
-
Any closed ball centered at the origin
📌 Key idea: No holes, no inward dents.
Examples of Non-Convex Sets (Concave Sets)
-
A crescent-moon (C-shaped) region
-
A star-shaped figure
-
A donut or ring shape (torus)
-
Any shape with:
-
holes
-
indentations
-
disconnected parts
-
📌 In these cases, you can find two points whose connecting line leaves the set.
Convex vs Non-Convex (Summary)
| Feature | Convex Set | Non-Convex Set |
|---|---|---|
| Line segment stays inside | ✔ Always | ✘ Sometimes |
| Has dents or holes | ✘ No | ✔ Yes |
| Optimization friendly | ✔ Yes | ✘ Difficult |
| Local minimum = global | ✔ Yes | ✘ No |
Important Properties of Convex Sets
Let be convex sets unless stated otherwise.
1. Line Segment Property (Closure under Convex Combinations)
If , then for any ,
📌 This is the defining property of convex sets.
2. Closure under Finite Convex Combinations
If and
, , then
📌 Any weighted average of points in a convex set remains in the set.
3. Intersection of Convex Sets is Convex
If and are convex, then:
📌 Used extensively in constrained optimization where multiple conditions are imposed.
⚠️ Note: The union of convex sets is not necessarily convex.
4. Affine Transformation Preserves Convexity
If is convex and , then:
📌 Important in:
-
Feature transformations
-
Linear mappings in ML
-
Coordinate changes
5. Translation and Scaling Preserve Convexity
If is convex and :
-
Translation:
-
Scaling:
Both result in convex sets.
6. Convex Hull is the Smallest Convex Set
The convex hull of a set , denoted
-
Is convex
-
Contains
-
Is the smallest convex set containing
📌 Every convex set can be expressed as the convex hull of its points.
7. Half-Spaces and Hyperplanes are Convex
-
Hyperplane:
-
Half-space:
Both are convex.
📌 Fundamental building blocks of feasible regions.
8. Subsets Defined by Linear Constraints are Convex
Any set of the form:
is convex.
📌 These sets define polyhedra, which occur frequently in:
-
Linear programming
-
SVM constraints
-
Feasible regions in ML models
9. Sublevel Sets of Convex Functions are Convex
If is a convex function, then for any :
is convex.
📌 This links convex sets and convex functions directly.
10. Convex Sets Have No “Holes”
Convex sets are:
-
Connected
-
Simply shaped (no cavities or indentations)
📌 This geometric simplicity enables efficient optimization algorithms.
11. Every Local Minimum in a Convex Set is Global (Optimization Insight)
While this is a property of convex optimization, it relies critically on convex sets:
If a convex function is minimized over a convex set, any local minimum is a global minimum.
12. Extreme Points and Boundary Structure
-
Extreme points cannot be written as convex combinations of other points.
-
Convex sets are completely characterized by their extreme points (especially polytopes).
📌 Important in:
-
Linear programming
-
Sparse solutions
-
LASSO
13. Supporting Hyperplane Property
For every boundary point of a closed convex set, there exists a supporting hyperplane that touches the set at that point and lies entirely on one side.
📌 Foundation for:
-
Duality theory
-
KKT conditions
-
SVM theory
Summary Table
| Property | Key Idea | ML Relevance |
|---|---|---|
| Convex combinations | Weighted averages stay inside | Stability |
| Intersection | Constraints combine safely | Feasible region |
| Affine invariance | Geometry preserved | Feature maps |
| Convex hull | Minimal convex enclosure | Classification |
| Sublevel sets | Loss defines region | Optimization |
| Supporting hyperplanes | Separation possible | SVM, duality |
.png)
.png)
Comments
Post a Comment