added poisson fit function for use in model validation script