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?
- A. 10
- B. 5
- C. 5/2
- 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.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- A permutation of 1, 2, 3, 4, 5 is chosen uniformly at random. A left-to-right maximum is an entry larger than every entry before it (the…
- A permutation of 1, 2, 3, 4, 5 is chosen uniformly at random. How many pairs of consecutive values (i, i+1), for i = 1 to 4, end up next…
- A permutation of 1, 2, 3, 4 is chosen uniformly at random. A descent is a position i with pi > p(i+1). What is the expected number of…
- A fair coin is tossed four times. A run is a maximal block of identical consecutive outcomes. What is the expected number of runs?
- A fair coin is tossed five times. What is the expected number of positions i (1 ≤ i ≤ 4) at which both the i-th and (i+1)-th tosses are…
- Ten fair dice are rolled together. What is the expected number of dice that show a 1?