Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A monkey randomly presses n keys of a computer. For simplicity, assume each key press is one of the 26 letters of the English alphabet.
A monkey randomly presses n keys of a computer. For simplicity, assume each key press is one of the 26 letters of the English alphabet. Each key press is independent of all previous presses, and equally likely to be one of the 26 letters. Thus, there are 26" possible combinations of letters, all equally likely. a) Compute the expected number of occurrences of hello. Justify your work. b) Let X be the sum of the number of occurrences of "hello and goodbye. For example, if there are 2 occurrences of hello and 1 occurrence of goodbye then X = 3. Compute E [X]. A monkey randomly presses n keys of a computer. For simplicity, assume each key press is one of the 26 letters of the English alphabet. Each key press is independent of all previous presses, and equally likely to be one of the 26 letters. Thus, there are 26" possible combinations of letters, all equally likely. a) Compute the expected number of occurrences of hello. Justify your work. b) Let X be the sum of the number of occurrences of "hello and goodbye. For example, if there are 2 occurrences of hello and 1 occurrence of goodbye then X = 3. Compute E [X]
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started