In reply to Rick Wicklin.

Hi, Rick

Thanks for your reply. Your IML program gives a neat answer about the probability of consecutive head tosses, and I noticed that you formulate a Markov Matrix first, and I wonder what the starting status and ending status for this Markov Matrix. Could you please illustrate further about this? Thanks a lot.

Best,
Yajun