15 Generalized inverse of matrices and applications to linear models