convertNullToErrorModel function

Convert empirical null distribution to systematic error model