Linear approximation and error estimation