Statistics/Probability/Combinatorics

From testwiki
Jump to navigation Jump to search

Template:Statistics/Navigation

Combinatorics studies permutations and combinations of objects chosen from a sample space. A preliminary knowledge of combinatorics is necessary for a good command of statistics.

Counting Principle

The Counting Principle is similar to the Multiplicative Principle. If a process involves n steps and the ith step can be done in xi ways, then the entire process can be completed in x1×x2×...×xn different ways.

Permutations

A permutation is a distinct arrangement of n elements of a set. By the Counting Principle, the number of possible arrangements of n objects in a set is n×(n1)×(n2)×...×1=n!. What if some of the elements are not distinct? Then, if there are k distinct kinds of elements, the total number of possible arrangements is n!n1!×n2!×...×nk!. What if we are arranging the elements in a circle, rather than a line? Then the number of permutations is (n1)!.

When faced with very large factorials, a useful approximation is Stirling's formula: n!2πn(ne)n

Now suppose we only choose r distinct elements from the set (without replacement). Then the number of possible permutations becomes n!(nr)!=nPr.

Combinations

A combination is essentially a subset. It is like a permutation, except with no regard to order. Suppose we have a set of n elements and take r elements. The number of possible combinations is nPrr!=n!r!×(nr)!=nCr=(nr).

Note also that r=0k(mr)×(nkr)=(m+nk)

Combinations are found in binomial expansion. Consider the following binomial expansions:

(x+y)1=x+y

(x+y)2=x2+2xy+y2

(x+y)3=x3+3x2y+3xy2+y3

(x+y)4=x4+4x3y+6x2y1+4xy2+y3

As you may have noticed from the above, for any positive integer n, (x+y)n=i=0n[(nr)×xnr×yr]

Another observation from the above is known as Pascal's law. It states that (nr)=(n1r)+(n1r1)

This allows us to construct Pascal's triangle, which is useful for determining combinations: