Statistics library for calculating events parameters