Formula for hypothesis testing statistics