ArticleslgStudy

mathematics

Random permutation statistics

Random permutation statistics is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Random permutation statistics rather than just read about it. In short: The statistics of random permutations, such as the cycle structure of a random permutation, are of fundamental importance in the analysis of algorithms, especially of sorting algorithms, which operate on random permutations. Suppose, for example, that we are using quickselect (a cousin of quicksort) to select a random element of a random permutation.

Key takeaways

  • Random permutation statistics belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Random permutation statistics to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Random permutation statistics from memory before moving on to harder problems.

Reference excerpt

The statistics of random permutations, such as the cycle structure of a random permutation, are of fundamental importance in the analysis of algorithms, especially of sorting algorithms, which operate on random permutations. Suppose, for example, that we are using quickselect (a cousin of quicksort) to select a random element of a random permutation. Quickselect will perform a partial sort on the array, as it partitions the array according to the pivot. Hence a permutation will be less disordered after quickselect has been performed. The amount of disorder that remains may be analysed with generating functions. These generating functions depend in a fundamental way on the generating functions of random permutation statistics. Hence it is of vital importance to compute these generating functions. The article on random permutations contains an introduction to random permutations.

The fundamental relation Permutations are sets of labelled cycles. Using the labelled case of the Flajolet–Sedgewick fundamental theorem and writing P {\displaystyle \scriptstyle {\mathcal {P}}} for the set of permutations and Z {\displaystyle \scriptstyle {\mathcal {Z}}} for the singleton set, we have

SET ⁡ ( CYC ⁡ ( Z ) ) = P . {\displaystyle \operatorname {SET} (\operatorname {CYC} ({\mathcal {Z}}))={\mathcal {P}}.}

Translating into exponential generating functions (EGFs), we have

exp ⁡ ( log ⁡ 1 1 − z ) = 1 1 − z {\displaystyle \exp \left(\log {\frac {1}{1-z}}\right)={\frac {1}{1-z}}}

where we have used the fact that the EGF of the combinatorial species of permutations (there are n! permutations of n elements) is

∑ n ≥ 0 n ! n ! z n = 1 1 − z . {\displaystyle \sum _{n\geq 0}{\frac {n!}{n!}}z^{n}={\frac {1}{1-z}}.}

This one equation allows one to derive a large number of permutation statistics. Firstly, by dropping terms from SET {\displaystyle \scriptstyle \operatorname {SET} } , i.e. exp, we may constrain the number of cycles that a permutation contains, e.g. by restricting the EGF to SET 2 {\displaystyle \scriptstyle \operatorname {SET} _{2}} we obtain permutations containing two cycles. Secondly, note that the EGF of labelled cycles, i.e. of CYC ⁡ ( Z ) {\displaystyle \scriptstyle \operatorname {CYC} ({\mathcal {Z}})} , is

∑ k ≥ 1 ( k − 1 ) ! z k k ! = ∑ k ≥ 1 z k k = log ⁡ 1 1 − z {\displaystyle \sum _{k\geq 1}{\frac {(k-1)!z^{k}}{k!}}=\sum _{k\geq 1}{\frac {z^{k}}{k}}=\log {\frac {1}{1-z}}}

because there are k! / k labelled cycles. This means that by dropping terms from this generating function, we may constrain the size of the cycles that occur in a permutation and obtain an EGF of the permutations containing only cycles of a given size. Instead of removing and selecting cycles, one can also put different weights on different size cycles. If b : N → R {\displaystyle b:\mathbb {N} \rightarrow \mathbb {R} } is a weight function that depends only on the size k of the cycle and for brevity we write

b ( σ ) = ∑ c ∈ σ b ( c ) , {\displaystyle b(\sigma )=\sum _{c\in \sigma }b(c),}

defining the value of b for a permutation σ {\displaystyle \sigma } to be the sum of its values on the cycles, then we may mark cycles of length k with ub(k) and obtain a two-variable generating function

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Random permutation statistics

Start with the simplest possible case. Write down what Random permutation statistics claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Random permutation statistics before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Random permutation statistics ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Random permutation statistics

In research
Random permutation statistics appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Random permutation statistics in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Random permutation statistics is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorics, so understanding it makes those chapters shorter.
In everyday life
Look for Random permutation statistics outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Random permutation statistics in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Random permutation statistics means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Random permutation statistics out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Random permutation statistics in simple terms?

The statistics of random permutations, such as the cycle structure of a random permutation, are of fundamental importance in the analysis of algorithms, especially of sorting algorithms, which operate on random permutations. Suppose, for example, that we are using quickselect (a cousin of quicksort…

Why does Random permutation statistics matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Random permutation statistics?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Random permutation statistics.

Tags

  • Combinatorics

Keep exploring