This question evaluates understanding of permutation inversion statistics, computation of random-variable moments (expectation and variance), and the use of Monte Carlo simulation for empirical estimation, and sits in the Machine Learning domain with a strong probability and statistics component.
Let π be a uniformly random permutation of length N. Let X be the number of inversions in π.
E[X]
.
Var(X)
.
Now suppose you run the following simulation:
N = 200
.
T = 1000
trials:
N
X_t
\bar{X} = \frac{1}{T}\sum_{t=1}^T X_t
and empirical variance across trials.
Answer the following:
E[\bar{X}]
and
Var(\bar{X})
?
\bar{X}
for
T=1000
(and why)?
\bar{X}
), what is a reasonable approximation for the
typical range
max(\bar{X}_1..\bar{X}_5) - min(\bar{X}_1..\bar{X}_5)
?
Login required