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



Pic Curtesy: wikipedia


Definition (Simple Terms)

The Rule

  1. Pick any two points in the set.

  2. Draw the straight line segment between them.

  3. 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 CRnC \subseteq \mathbb{R}^n  is convex if for any two points
x1,x2Cx_1, x_2 \in C and for any number θ[0,1]\theta \in [0,1],

θx1+(1θ)x2C\theta x_1 + (1 - \theta)x_2 \in C

Interpretation

  • θ[0,1]\theta \in [0,1] controls where the point lies on the line segment:

    • θ=0\theta = 0 → point x2x_2

    • θ=1\theta = 1→ point x1x_1

    • 0<θ<10 < \theta < 1 → point between x1x_1 and x2x_2

  • 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:

    {x:Axb}\{x : Ax \le b\}

3. Vector and Norm-Based Sets

  • Unit ball:

    {x:x1}\{x : \|x\| \le 1\}
  • 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 C,C1,C2RnC, C_1, C_2 \subseteq \mathbb{R}^n be convex sets unless stated otherwise.


1. Line Segment Property (Closure under Convex Combinations)

If x1,x2Cx_1, x_2 \in C, then for any θ[0,1]\theta \in [0,1],

θx1+(1θ)x2C\theta x_1 + (1-\theta)x_2 \in C

📌 This is the defining property of convex sets.


2. Closure under Finite Convex Combinations

If x1,x2,,xkCx_1, x_2, \dots, x_k \in C and
θi0\theta_i \ge 0, i=1kθi=1\sum_{i=1}^k \theta_i = 1, then

i=1kθixiC\sum_{i=1}^k \theta_i x_i \in C

📌 Any weighted average of points in a convex set remains in the set.


3. Intersection of Convex Sets is Convex

If C1C_1 and C2C_2 are convex, then:

C1C2 is convexC_1 \cap C_2 \text{ is convex}

📌 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 CC is convex and f(x)=Ax+bf(x) = Ax + b, then:

f(C)={Ax+b:xC} is convexf(C) = \{Ax + b : x \in C\} \text{ is convex}

📌 Important in:

  • Feature transformations

  • Linear mappings in ML

  • Coordinate changes


5. Translation and Scaling Preserve Convexity

If CC is convex and αR\alpha \in \mathbb{R}:

  • Translation:

    C+a={x+a:xC}C + a = \{x + a : x \in C\}
  • Scaling:

    αC={αx:xC}\alpha C = \{\alpha x : x \in C\}

Both result in convex sets.


6. Convex Hull is the Smallest Convex Set

The convex hull of a set SS, denoted conv(S):

  • Is convex

  • Contains SS

  • Is the smallest convex set containing S S

📌 Every convex set can be expressed as the convex hull of its points.


7. Half-Spaces and Hyperplanes are Convex

  • Hyperplane:

    {x:aTx=b}\{x : a^T x = b\}
  • Half-space:

    {x:aTxb}\{x : a^T x \le b\}

Both are convex.

📌 Fundamental building blocks of feasible regions.


8. Subsets Defined by Linear Constraints are Convex

Any set of the form:

{x:Axb,  Cx=d}\{x : Ax \le b, \; Cx = d\}

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 ff is a convex function, then for any α\alpha:

{x:f(x)α}\{x : f(x) \le \alpha\}

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

PropertyKey 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


Comments

Popular posts from this blog

Advanced Mathematics for Computer Science HNCST409 KTU BTech Honors 2024 Scheme

AKS Primality Testing

Galois Field and Operations