Question: s 0000100001000110000001010000010010000000000000000010000000010000110010001000100001011010100000010100 1 hit 0 miss compute...
S = 0000100001000110000001010000010010000000000000000010000000010000110010001000100001011010100000010100; /*1 = hit; 0 = miss*/
Compute and report the following for your sequence of 100 shots: 1. P(Sk=1 | Sk-1=1), the probability of a hit immediately following a hit. 2. P(Sk=1 | Sk-1=0), the probability of a hit immediately following a miss. 3. P(Sk=1 | Sk-1=1) - P(Sk=1 | Sk-1=0), the difference of the probabilities from 1 and 2. This will be your test statistic.