the probability for W to occur at a given position in the sequence and then we get