Computer Algebra System
Let
\{x_i/i=1..n\}
be a set of data. What is the minimum of the function defined by:
f(x)=\frac{1}{n}\sum_{i=1}^n(x-x_i)^2
What happens for the function:
g(x)=\frac{1}{n}\sum_{i=1}^n|x-x_i|
Download the tns file