Combinatorics deals with finite sets and belongs to the subfield of discrete maths.

For two disjoint sets, the cardinality of the union is the sum of the cardinalities.

The product of the cardinalities of two sets is the cardinality of the cartesian product.

If there is a bijection between two sets, they have the same cardinality.

bijective

Sampling elements from choices

When order matters:

With replacement:
Without replacement: (pool gets smaller with each sample)

When order doesn’t matter:
(binomial coefficient = “selection from a partial multiset”)

The above but with more words:

permutations: How many ways are there to arrange all elements of ?

, bijective permutation function


(exactly what we had in (ii) above)

Permutation notation

We can denote the permutation in three ways:
(1) Two rows – the first row is the original order, the second row is the new order:
, e.g.:
(2) or we just take the second row: ,
(3) or we take the cycle notation: , i.e. .
Each group is its own cycle – no duplicates / loops (else it wouldn’t be bijective which is a requirement for a permutation).

Link to original
^b4a0f0

Transclude of inclusion-exclusion-principle