Mathematics (JEE)HardGATE CS
For a uniformly random permutation of 1, 2, 3, 4, 5, what is the expected number of inversions (pairs i < j with the i-th entry greater than the j-th entry)?
- A. 10
- B. 4
- C. 2.5
- D. 5
Correct answer: D. 5
Each of the C(5,2) = 10 pairs is an inversion with probability 1/2 by symmetry, so the expectation is 10/2 = 5. Option 10 forgets to halve for the symmetry.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- In how many ways can 8 identical balls be put into 4 distinct boxes so that the first box receives at most 2 balls?
- How many non-negative integer solutions are there to x + y + z + w = 12 with x ≤ 4?
- How many permutations of 1, 2, 3, 4, 5, 6 have no fixed point and no i with p(i) = i + 1 (for i from 1 to 5)?
- In how many ways can the letters of BANANA be arranged so that no two N's are adjacent?
- How many words of length 5 over {a, b, c} contain exactly two a's and no two b's adjacent?
- How many lattice paths from (0, 0) to (5, 3) using unit steps R and U pass through the point (2, 1)?