# Difference between revisions of "Convex combination"

{{ safesubst:#invoke:Unsubst||$N=Unreferenced |date=__DATE__ |$B= {{#invoke:Message box|ambox}} }}

Given three points ${\displaystyle x_{1},x_{2},x_{3}}$ in a plane as shown in the figure, the point ${\displaystyle P}$ is a convex combination of the three points, while ${\displaystyle Q}$ is not.
(${\displaystyle Q}$ is however an affine combination of the three points, as their affine hull is the entire plane.)

In convex geometry, a convex combination is a linear combination of points (which can be vectors, scalars, or more generally points in an affine space) where all coefficients are non-negative and sum to 1.

More formally, given a finite number of points ${\displaystyle x_{1},x_{2},\dots ,x_{n}\,}$ in a real vector space, a convex combination of these points is a point of the form

${\displaystyle \alpha _{1}x_{1}+\alpha _{2}x_{2}+\cdots +\alpha _{n}x_{n}}$

As a particular example, every convex combination of two points lies on the line segment between the points.

All convex combinations are within the convex hull of the given points.

There exist subsets of a vector space that are not closed under linear combinations but are closed under convex combinations. For example, the interval ${\displaystyle [0,1]}$ is convex but generates the real-number line under linear combinations. Another example is the convex set of probability distributions, as linear combinations preserve neither nonnegativity nor affinity (i.e., having total integral one).

## Other objects

${\displaystyle f_{X}(x)=\sum _{i=1}^{n}\alpha _{i}f_{Y_{i}}(x)}$

## Related constructions

• A conical combination is a linear combination with nonnegative coefficients
• Weighted means are functionally the same as convex combinations, but they use a different notation. The coefficients (weights) in a weighted mean are not required to sum to 1; instead the sum is explicitly divided from the linear combination.
• Affine combinations are like convex combinations, but the coefficients are not required to be non-negative. Hence affine combinations are defined in vector spaces over any field.