Placement AptitudeVery hardGoldman Sachs OA · CAT

A permutation of 1, 2, 3, 4, 5, 6 is chosen at random. What is the expected number of inversions (pairs of positions i < j where the larger number comes first)?

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

Correct answer: B. 15/2

Each of the C(6, 2) = 15 pairs of positions is out of order with probability 1/2, so by linearity the expected number of inversions is 15/2 = 7.5.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic