I came up to the concept of centers in statistics. Honestly, I never heard about this before few days ago.
Given a collection of numbers $\{x_i\}$, $i \in \{1, \ldots, N\}$, the center of order $r$ is defined as the number $c$ which minimizes the following function:
$$f_r(c) = \sum_{i=1}^N \left|x_i - c\right|^r.$$
In particular, it comes out that:
- The center of order $0$ is the mode of the collection $\{x_i\}$.
- The center of order $1$ is the median of the collection $\{x_i\}$.
- The center of order $2$ is the mean of the collection $\{x_i\}$.
For fun, I was able to prove point 3 (very easy) since $f$ is smooth. Point 2 is somehow hard, but I think I can solve it. Instead, for point 1, I'm having some troubles.
Consider the function $f_0(c)$. If $c \neq x_i$, then $x_i - c \neq 0$ and then $$\left|x_i - c\right|^0 = 1.$$
Therefore, if I choose $c$ such that $c \neq x_i ~\forall i$, then I get that:
$$f_0(c) = N.$$
Now, $\color{red}{\text{I assume in this context that}~ 0^0 = 0}$. That is, if $c = x_j$ for some $j$, I get:
$$\left|x_i - c\right|^0 = 0.$$
If the value of $x_j$ is repeated exactly $m$ times, then I get:
$$f_0(x_j) = N - m.$$
Therefore if $x_j$ correspond to the mode of the collection, then $m$ is maximum, and hence $f_0(x_j)$ attains its minimum.
Is this "proof" correct?
A numerical "evidence"
I consider the collection $\{1, 2, 2, 2, 3, 4, 5, 6\}$. In this case, the mean is $3.125$, the median is $2.5$ (between $2$ and $3$) and the mode is $2$.
Hereafter, I plot the function $f_r(c)$ for $r=2$ (mean) and $r=1$ (median). Also I plot the function for $r=0.1$, $r=0.01$, $r=0.001$ and $r=0.0001$.