I have sequences of binary events, e.g. $s=0001101$. I know that there are two types of sources $A,B$ possible generating each sequence. There are different conditional probabilities for a hit given a certain outcome from the previous position:
$P(s_{i+1}=1|s_i=1,A)=a$
$P(s_{i+1}=1|s_i=0,A)=q$
$P(s_{i+1}=1|s_i=1,B)=q$
$P(s_{i+1}=1|s_i=0,B)=q$
How can I determine the probability for a sequence being $A$ or $B$ (e.g. $P(A|s=0001101)$)? I thought Bayes, but I'm lost :/
self-study
tag (check its tag wiki here) and expect hints and guidance. [If it's really not, you'd need to supply enough context to make it clearer how the problem arises.] $\endgroup$