Mathematics (JEE)Very hardCAT · MBA placement

A binary string of length 4 is chosen uniformly at random. What is the expected number of runs (maximal blocks of equal digits) in it?

  1. A. 2
  2. B. 5/2
  3. C. 3
  4. D. 4

Correct answer: B. 5/2

A run starts at position 1 and at each position 2 to 4 where the digit changes; the expected number of changes is 3/2, so the expected number of runs is 1 + 3/2 = 5/2. Option 2 counts only the changes.

More Permutations, Combinations and Probability questions

Exams that ask this topic