It is known that for any distribution a minimization of squared deviations from a value $c$ gives mean of the distribution. In other words, if we generate many values $y\_i$ using our distribution, and then try to find $c$ that minimizes the following expression:

$
\lim\_{N \to \infty} \frac{1}{N}\sum\_{i}^N (y\_i - c)^2
$

then we find that the minimum is achieved when $c = \mu$, where $\mu$ is the mean of the given distribution. And for any $N$ the above minimization gives the sample mean.

---

Now, let's assume tat we have a distribution which depends on a single real-valued feature $x$, and we have a data-set generated by this distribution: ($x\_1$, $y\_1$), ($x\_2$, $y\_2$), $\dots$, ($x\_n$, $y\_n$). Then we try to find a function that gives dependency of the mean of this distribution on the feature:

$
\mu = \mu(x, p\_1, p\_2, \dots, p\_k)
$

where $p\_i$ are model parameters that we want to find.

Obviously, that we can get the desired function (values of the parameters) if we choose them by minimization of squared deviations:

$
\frac{1}{N} \sum\_{i}^{N} [y\_i - \mu(x\_i, p\_1, p\_2, \dots, p\_k)]^2
$

In other words, we can find the correct answer (correct values of the parameters $p\_i$) under condition that $N$ goes to infinity and that the real function, that we are searching, is covered by the space of functions that we consider.

To summarize, the minimization of squared deviations can give not only mean of a given constant distribution, it can also gives correct dependency of the mean on a feature.

---

In reality $N$ is never infinity and can be rather small. As a result minimization of squared deviation will not give exactly correct values of the model parameters $p\_i$. For another sample of the same size we will give other estimations of the parameters $p\_i$. In general case, we can say that our estimations of the parameters are somehow distributed.

If we, instead of squared deviations minimize some other measure, we will get other distributions of our model parameters $p\_i$. So, different measure of accuracy give different distributions in the parameters space for a given fixed sample size.

These distributions are characterized by their "width" and possible a "shift" relative to the correct point (true values of the model parameters).

Can it be the case that a use of something different from squared deviation gives a better estimate of model parameters (for example more accurate (smaller width) and with smaller or no systematic from the correct model parameters?