Required sample sizes for hypothesis tests