According to 'An Introduction to Probability Theory and Its Applications', Vol. 1 by Feller the number of inversions in a random permutations at large numbers satisfy CLT with dedicated mean and variance.
However, I am practically intrested in how to plot the figure of the normal distribution (what to calculate for it)?
I understand that the figure may depends on the fact of how large the numbers are. Any explanations to clarify the topic are highly welcomed. Thank you in advance.
Here is how to plot the density function of $N(0,1)$: $$ f(x) = \frac{e^{-\frac{x^2}{2}}}{\sqrt{2 \pi}} . $$
In Mathematica, a one-liner:
In Python, slightly more verbose: