Source: http://php.iai.heig-vd.ch/~lzo/metrologie/cours/5_Moindres%20carres.pdf