I'm working on a problem to find the expected frequency of a pattern. Say there is a sequence of alphabets - A, B, C and D.
The sequence is: ABDACDBADA.
I want to find the expected frequency of a pattern ACD given the sequence above. So I calculated the frequencies of A (0.4), B(0.2), C(0.1) and D(0.3) separately.
Initially I thought, multiplying the frequencies of A, C and D would suffice, i.e., 0.4 * 0.1 * 0.3 = 0.012. But, this is not what i need as I need to conserve the order of ACD.
Can anyone tell me how to proceed with this?