A statistical model for systematic errors