Engineering MathematicsVery hardGATE CS (PYQ pattern)

What is the variance of the number of inversions of a uniformly random permutation of 4 elements?

  1. A. 3
  2. B. 3/2
  3. C. 2
  4. D. 13/6

Correct answer: D. 13/6

Inversions = Σ Xⱼ where Xⱼ (the number of earlier elements larger than the j-th, j = 1…4) are independent and uniform on {0, …, j−1}, with variances (j² − 1)/12: 0 + 3/12 + 8/12 + 15/12 = 26/12 = 13/6. (3 is the mean.)

More Engineering Mathematics (GATE) questions

Exams that ask this topic