Suppose that you are testing the fairness of the coin.
To perform the test, an experiment must be devised, in our example flipping the coin a predetermined number of times, say 12, and then the result analysed in three steps.
First, specify the outcome space. In our example 2*12 possible sequences of 12 heads or tails. The result of the experiment should be summarised in some numerical form, e.g. the number of heads in the outcome. This summary is called test-statistics.
Second, calculate the probability of every possible value of the test-statistics, given the hypothesis you are testing (Fisher called it the null-hypotheses). This is the sampling distribution of the test-statistics. In our case it is, with X the number of heads:
pr (X) = (12 over X) (1/2)*X (1/2)*12-X
Pr (0) = 0.000144141*
Pr (1) = 0.002929688*
Pr (2) = 0.016113281*
Pr (3) = 0.053710938*
Pr (4) = 0.120849609
Pr (5) = 0.193359375
Pr (6) = 0.225585938
Pr (7) = 0.193359375
Pr (8) = 0.120849609
Pr (9) = 0.053710938*
Pr (10) = 0.016113281*
Pr (11) = 0.002929688*
Pr (12) = 0.000144141*
Third, look at all results which could have occurred (given the null-hypothesis) and which, as Fischer put it, are more extreme than the result that did occur. It means their probability is less than or equal to the probability of the actual outcome. Then calculate the probability pr* that the outcome will fall within this group.
For example, if our experiment produced 3 heads in 12 flips, the result with less or equal probabilities to this are X= 0,1,2,3,9,10,11,12; and the probability of at least one of them occurring (c.f. * values in the table above) is pr*= 0.15. Fisher’s accepted convention is to reject the null-hypothesis just in case pr*<0.05. Hence our null-hypothesis of the fairness of the coin is not rejected.
Some statisticians recommend 0.01 or even 0.001 as the critical pr*. The adopted critical probability is called the significance level of the test, and the null-hypothesis is said to be rejected at this significance level if pr* is less than or equal to it.
“The null-hypothesis is rejected at a significance level” is a technical expression, which means that the result of the experiment fall in a certain region (declared “the rejection region”). But what does it really say about the null-hypothesis? Today the standard view (introduced by Neyman) is that a rejection or non-rejection of a null-hypothesis is not an inductive inference, but just an instruction for inductive behaviour. If we behave according to the instruction, in the long run we shall reject a true hypothesis H, i.e. we shall make a type I error, no more than once in a hundred times, when significance level is 0.01.
We may also worry, as Neyman and Pearson did, about accepting a false hypothesis H, i.e. making a type II error. The probability of type II error is the probability of rejecting a true alternative hypothesis, let’s call it Ha, by accepting the false H. The complement of the significance level of rejecting Ha is called the power of a test and, in this context, the significance level of rejecting H is called its size. An ideal would be to maximize the power and to minimize the size of a test. But that ideal is inconsistent. A contraction in size brings with it an expansion in power, and vice versa.
Apart from the volatility of what is declared to be “the rejection region”, the incoherence of contracting the size and expanding the power of a test, and considering only one or two hypotheses, there are other problems with this approach.
For example, different test-statistics may by defined on an outcome space, not all of them leading to the same conclusion when used in a significance test. This is the notorious problem of “which test-statistics to choose?”
There is also the problem of “the stopping rule”. Consider again that a coin has been flipped 12 times, giving 3 heads and 9 tails. Is this the evidence that the coin is biased? With the data provided, we cannot even begin to answer this question. Namely, from these data it is not clear what the outcome space for the data is. If we are told that the experimenter’s plan was to flip the coin 12 times, then analysis can proceed as above. But this is not the only way for these data to be produced. The experimenter may have planned to flip the coin until he produced 3 heads, or until he becomes bored with the flipping. In this case, the outcome space will be different, even infinite or ambiguous, and the final result of the significance test may also be different.
It seems that this approach is very subjective, because the identifications of outcome spaces, the choices of test statistics, the declarations of rejection regions, the choices of null -hypothesis among alternatives, the contradictory choices between sizes and powers etc., depend on thoughts or even whims of the experimenter.
But the basic problem of this analysis is that, in search of a rejection region, it evaluates a single hypotheses by taking into account data that could have happened. But what this possible data have to do with our problem? We have made our experiment, we have got the real data and we want to estimate hypotheses given this real data.
The result of this analysis is a behavioural attitude towards a single hypotheses, prompted by data that could have occurred but did not.
Contrary to that the result of the bayesian analysis is the probability distribution of every possible hypothesis H, given one real data set D.
But this is another theme.