Statisitcal hypothesis testing framework