Error analysis