https://123deta.com/document/zk3exppy-large-deviation-approximations-discrete-distribution-deviation-statistical-inference.html