All Topics  
Combination

 

   Email Print
   Bookmark   Link






 

Combination



 
 
In combinatorial mathematics
Combinatorics

Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
, a combination is an un-ordered collection of distinct elements, usually of a prescribed size and taken from a given set. (An ordered collection of distinct elements would sometimes be called a permutation
Permutation

In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
, but that term is ambiguous.) Given such a set S, a combination of elements of S is just a subset
Subset

In mathematics, especially in set theory, a Set A is a subset of a set B if A is "contained" inside B. Notice that A and B may coincide....
 of S, where as always for (sub)sets the order of the elements is not taken into account (two lists with the same elements in different orders are considered to be the same combination).






Discussion
Ask a question about 'Combination'
Start a new discussion about 'Combination'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In combinatorial mathematics
Combinatorics

Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
, a combination is an un-ordered collection of distinct elements, usually of a prescribed size and taken from a given set. (An ordered collection of distinct elements would sometimes be called a permutation
Permutation

In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
, but that term is ambiguous.) Given such a set S, a combination of elements of S is just a subset
Subset

In mathematics, especially in set theory, a Set A is a subset of a set B if A is "contained" inside B. Notice that A and B may coincide....
 of S, where as always for (sub)sets the order of the elements is not taken into account (two lists with the same elements in different orders are considered to be the same combination). Also, as always for (sub)sets, no elements can be repeated more than once in a combination; this is often referred to as a "collection without repetition". For instance, is not a combination of three digits; as a set this is the same as or as . On the contrary, a poker hand can be described as a combination of 5 cards from a 52-card deck: the order of the cards doesn't matter, and there can be no identical cards among the 5.

A k-combination (or k-subset
N-set

In mathematics, an n-set is a Set containing exactly n elements, where n is a natural number. Thus, every finite set is an n-set for some specific natural number n....
) is a subset with k elements.

Number of k-combinations from a set

The number of k-combinations (each of size k) from a set S with n elements (size n) is the binomial coefficient (also known as the "choose function"):

where n is the number of objects from which you can choose and k is the number to be chosen, and n! denotes the factorial.

The definition can be understood by considering a list of n elements; the list can be ordered n! ways, and for each possible ordering can be partitioned into the first k elements followed by the remaining n − k elements. The first partition is then a selection of k elements from the original list and all those partitions from every ordering cover all such selections. The complete permutation of the original list produces duplicate selections, however; some permutations result in a permuted but identical set for the first partition, and so we divide by k! to remove these, and other permutations result in permuted second partitions, and so we divide by (n − k)! to remove these.

The use of the definition in calculation is not always straightforward. For example, the number of five-card hands possible from a standard fifty-two card deck is:

Since it is impractical to calculate n! if the value of n is very large, a more efficient algorithm is

which gives

This method of calculation can be seen immediately from the recursive definition of the choose function:

with a base case of . It can be argued that is a more natural base case but the former follows easily from the latter anyway.

This second definition can be understood as stating that when adding an element to the selection, there are n − k elements to choose from, and so this increases the number of possible selections by that much, but doing this to all selections produces duplicates (e.g.  ∪  =  ∪ ) and so we divide by the size of the selection since that is the number of possibilities for the last element added.

Since as explained above a combination is a special case of a partition of a set; specifically, a partition into two sets of size k and n − k, you get the same number of combinations if you substitute k with n − k. Therefore, when k is more than half of n, it may be easier to compute the binomial coefficient using n − k in place of k.

Number of combinations with repetition

The number of combinations with repetition can be calculated as:

For example, if you have ten types of donuts (n) on a menu to choose from and you want three donuts (k) the number of ways to choose can be calculated as (see also multiset
Multiset

In mathematics, a multiset is a generalization of a Set . A Element of a multiset can have more than one Element , while each member of a set has only one membership....
):

There is an easy way to understand the above result. Imagine we have n + k identical boxes arranged on a line. From these boxes (except the first one), we arbitrarily choose k of them and mark the chosen boxes as empty. The rest of the boxes can be filled by the n elements in the set S. For each non-empty box, if it is followed by M successive empty boxes, we choose the corresponding element in the non-empty box M times. As a result, each arrangement of choosing empty boxes corresponds to a way of choosing k out of the n elements with repetition. The total number is therefore the number of combinations with repetition, which equals



See also

  • Factorial
    Factorial

    In mathematics, the factorial of a negative and non-negative numbers integer n, denoted by n!, is the Product of all positive integers less than or equal to n....
  • Combinadic
    Combinadic

    In mathematics, a combinadic is an ordered integer partition, or composition . Combinadics provide a lexicographical index for combinations. Applications for combinadics include software testing, sampling , quality control, and the analysis of gambling games such as Lotto 6/49....
     (how to enumerate combinations and generate the ith combination in a reasonable way)
  • Combinatorics
    Combinatorics

    Combinatorics is a branch of pure mathematics concerning the study of Countable set objects. It is related to many other areas of mathematics, such as algebra, probability theory, ergodic theory and geometry, as well as to applied subjects in computer science and statistical physics....
  • Multiset
    Multiset

    In mathematics, a multiset is a generalization of a Set . A Element of a multiset can have more than one Element , while each member of a set has only one membership....
  • Binomial coefficient
    Binomial coefficient

    In mathematics, the binomial coefficient is the coefficient of the x k term in the polynomial expansion of the binomial exponentiation  n....
  • Permutation
    Permutation

    In several fields of mathematics the term permutation is used with different but closely related meanings. They all relate to the notion of mapping the element s of a set to other elements of the same set, i.e., exchanging elements of a set....
    • List of permutation topics
      List of permutation topics

      This is a list of topics on mathematical permutations.*Alternating group*Alternating permutation*Bijection*Circular shift*Combination*Cycle index...
  • Subset
    Subset

    In mathematics, especially in set theory, a Set A is a subset of a set B if A is "contained" inside B. Notice that A and B may coincide....
  • Probability
    Probability

    Probability, or wikt:chance, is a way of expressing knowledge or belief that an Event will occur or has occurred. In mathematics the concept has been given an exact meaning in probability theory, that is used extensively in such areas of study as mathematics, statistics, finance, gambling, science, and philosophy to draw conclusions about t...


External links

  • For combinations when choices can be repeated and order does NOT matter