Hi, nice to meet you.

I'm trying to understand the formalism of transition matrices in probability :

a) if I have a state determined by (s1,...sr), where si is in {h,t} (head tail), the probability of head were p, and tail : q=1-p.

what Does the matrix :

mean :

s1 becomes head (p), and s2-sr becomes tail (q) ?

b) how to prove that : ?

thx.