In mathematics and statistics, the Fréchet mean is a generalization of centroids to metric spaces, giving a single representative point or central tendency for a cluster of points. It is named after Maurice Fréchet. Karcher mean is the renaming of the Riemannian Center of Mass construction developed by Karsten Grove and Hermann Karcher.[1] [2] On the real numbers, the arithmetic mean, median, geometric mean, and harmonic mean can all be interpreted as Fréchet means for different distance functions.
Let (M, d) be a complete metric space. Let x1, x2, …, xN be points in M. For any point p in M, define the Fréchet variance to be the sum of squared distances from p to the xi:
\Psi(p)=
N | |
\sum | |
i=1 |
d2(p,xi)
The Karcher means are then those points, m of M, which minimise Ψ:[2]
m=argminp
N | |
\sum | |
i=1 |
d2(p,xi)
If there is a unique m of M that strictly minimises Ψ, then it is Fréchet mean.
Sometimes, the xi are assigned weights wi. Then, the Fréchet variances and the Fréchet mean are defined using weighted sums:
\Psi(p)=
N | |
\sum | |
i=1 |
wid2(p,xi), m=argminp
N | |
\sum | |
i=1 |
wid2(p,xi).
For real numbers, the arithmetic mean is a Fréchet mean, using the usual Euclidean distance as the distance function.
The median is also a Fréchet mean, if the definition of the function Ψ is generalized to the non-quadratic
\Psi(p)=
N | |
\sum | |
i=1 |
d\alpha(p,xi),
\alpha=1
On the positive real numbers, the (hyperbolic) distance function
d(x,y)=|log(x)-log(y)|
f:x\mapstoex
xi
f
f-1(xi)
f\left(
1 | |
n |
n | |
\sum | |
i=1 |
f-1(xi)\right)=\exp\left(
1 | |
n |
nlog | |
\sum | |
i=1 |
xi\right)=\sqrt[n]{x1 … xn}
On the positive real numbers, the metric (distance function):
d\operatorname{H}(x,y)=\left|
1 | |
x |
-
1 | |
y |
\right|
can be defined. The harmonic mean is the corresponding Fréchet mean.
Given a non-zero real number
m
dm(x,y)=\left|xm-ym\right|
Given an invertible and continuous function
f
df(x,y)=\left|f(x)-f(y)\right|
This is sometimes called the generalised f-mean or quasi-arithmetic mean.
The general definition of the Fréchet mean that includes the possibility of weighting observations can be used to derive weighted versions for all of the above types of means.