Engineering MathematicsVery hardGATE CS (PYQ pattern)
What is the variance of the number of inversions of a uniformly random permutation of 4 elements?
- A. 3
- B. 3/2
- C. 2
- 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.)
Practise more Engineering Mathematics (GATE) questionsEngineering Mathematics (GATE): notes and key points
More Engineering Mathematics (GATE) questions
- A uniformly random permutation σ of {1, …, 6} is chosen. What is the probability that σ² is the identity?
- A data set x₁, …, xn has variance 4. The values are transformed to yᵢ = 3xᵢ − 4. What is the variance of the y-values?
- What is Σ (n = 1 to ∞) n²/(n + 1)!?
- Let A be the 6×6 real matrix with aij = ij + i + j. What is rank(A)?
- A is the 3×3 matrix with entries 1, 2, 3 / 4, 5, 6 / 7, 8, 9 in row order. What is trace(AᵀA)?
- X is a non-negative random variable with E[X] = 4. By Markov's inequality, what is the best upper bound on P(X ≥ 10)?