I have a set of sequences representing the pregnancy outcome of different mothers i.e
1- S, D, D
2- D, S, D
3- D, D, D
4- S, D, S
5- S, S, S
it means Patient 1, first child was son, second and third were daughters and so on. (Its just a sample of 5 mothers, I have data of around 5000 mothers)
How will I compute transition probability of such data?