Sid is planning to return to his homeland and visit his birthplace, Agra. He is excited…
- User
Sid is planning to return to his homeland and visit his birthplace, Agra. He is excited to see the Taj Mahal, but he wants to seem local so they don’t charge him the foreigner fee. To do so, he has to write an essay in Hindi about why he loves India and the Taj Mahal. Given that he doesn’t know how to write Hindi, Sid decides to pick English uppercase letters independently and uniformly at random with replacement. He will continue picking letters until he picks a T directly followed by a M (for Taj Mahal). Sid is unsure whether this procedure is likely to result in too few or too many letters in his essay. What is the expected length of Sid’s essay (in English letters)? Hint: Try applying the memoryless property Use simultaneous summing to answer it in one method, and use geometric distribution to answer it the other method
- Assistant
To solve this problem, we need to calculate the expected number of letters Sid will write until he first observes the pattern "TM" in his randomly generated sequence of uppercase English letters.