Binomial Test Example: Instances of sevens as digits from a random digit generator Step 1: Formulate hypotheses. H0 : π = 1 10 , Ha : π 6= 1 10 Step 2: Obtain a test statistic. In this case, I indicated a sample of 200 random digits yielded 35 sevens. Step 3: Calculate the P -value. The P -value is the conditional probability of obtaining a test statistic at least as extreme as ours given that ...