
ALT Python pseudo-code that describes two alternative methods for obtaining a decision: either reject H0 or fail to reject H0. In the context of hypothesis testing, rejecting H0 means we have observed a sample that is unlikely to occur by chance if H0 is true. The logic of hypothesis testing interprets an observed test statistic that is unlikely under H0 as evidence against H0 (cf. concept of falsification). There are two ways to do hypothesis testing: Fisherian hypothesis tests based on p-values (this is like hypothesis testing "classic") and Neyman–Pearson hypothesis tests (which allow more detailed analysis of the error rates of the decision process). Students taking STATS 101 are often presented a mix of Fisherian and N–P ideas, which is confusing... The code blocks shows the similarity between the two hypothesis testing procedures, and highlights the main difference is the fact that N–P procedure fron-loads the probability calculations (does complicated probability stuff pre-data)















