A model for error estimation