Bayesian theory of systematic measurement deviations