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)?
- A. 15
- B. 15/2
- C. 6
- 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.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- Five runners with different speeds start a race in random order of position, and we scan them from first to last. A runner is a 'record'…
- Five different numbers are drawn at random from 1, 2, …, 10. What is the probability that the largest of them is 8?
- Three fair dice are rolled. What is the probability that the middle value (the median of the three numbers) is 4?
- 10 people are to be seated at two round tables, 5 at each. In how many ways can this be done? (The two tables are identical, and rotations…
- 8 players are to be paired up and each pair sent to a different one of 4 numbered courts. In how many ways can this be done?
- In how many arrangements of the letters of CALCULATE do the vowels occupy only odd-numbered positions (1st, 3rd, 5th, 7th, 9th)?