Mathematics (JEE)Moderate

A permutation of 1, 2, 3, 4, 5 is chosen uniformly at random. An inversion is a pair of positions i < j with p_i > p_j. What is the expected number of inversions?

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

Correct answer: B. 5

Each of the C(5,2) = 10 pairs of positions is an inversion with probability 1/2 by symmetry, so the expectation is 10/2 = 5. The value 10 forgets the factor 1/2.

More Permutations, Combinations and Probability questions

Exams that ask this topic