# Average Absolute Deviation (find the minimum)

$S_n(x)=\frac 1n\sum_{i=1}^n|x_i-x| \Longleftrightarrow f(x)=nS_n(x)=\sum_{i=1}^n|x_i-x|$
Prove that it has the minimum when $x$ is the median.