Stars and bars (probability)

Stars and bars (probability)

In the context of combinatorial mathematics, stars and bars refers to a trick used to derive certain combinatorial theorems.

Statements of theorems

Theorem one

For any pair of positive integers "n" and "k", the number of distinct "n"-tuples of positive integers whose sum is "k" is given by the binomial coefficient extstyle{k - 1choose n-1}.

Theorem two

For any pair of natural numbers "n" and "k", the number of distinct "n"-tuples of non-negative integers whose sum is "k" is given by the binomial coefficient extstyle{n + k - 1choose k} (for n=k=0 this coefficient is defined to be 1). This number is alsothe number of multisets of cardinality "k", with elements taken from a set of cardinality "n".

Proofs

Theorem one

Suppose one has "k" objects (to be represented as stars) to be placed into "n" bins such that all bins contain at least one object; one distinguishes the bins (say they are numbered 1 to "n") but one does not wish to distinguish the "k" stars (so configurations are only distinguished by the "number of stars" present in each bin; in fact a configuration is represented by a "n"-tuple of positive integers as in the statement of the theorem). Instead of starting to place stars into bins, one starts by placing the stars on a line:

where the stars for the first bin will be taken from the left, followed by the stars for the second bin, and so forth. Thus the configuration will be determined once one knows what is the first star going to the second bin, and the first start going to the third bin, and so on. One can indicate this by placing "n" − 1 separating bars at some places between two stars (since no bin is to be empty, there can be at most one bar between a given pair of stars):

There are "k" − 1 possible places for a bar (bin partition), and one has to choose "n" − 1 of them to actually contain a bar. Therefore (see combination), there are extstyle{k - 1 choose n-1} possible configurations.

Theorem two

If n>0, one can apply theorem one to "n" + "k" objects, giving extstyle{n+k-1choose n-1}={n+k-1choose k} configurations with at least one onject in each bin, and then remove one object from each bin to obtain a distribution of "k" objects into "n" bins, in which some bins may be empty. For example, placing 10 objects in 5 bins, allowing for bins to be empty, is equivalent to placing 15 objects in 5 bins and forcing something to be in each bin. An alternative way to arrive directly at the binomial coefficient: in a sequence of n+k-1 symbols, one has to choose "k" of them to be stars and the remaining n-1 to be bars (which can now be next to each other).

The case "n" = 0 (no bins at all) allows 0 configurations, unless "k" = 0 as well (no objects to place), in which there is one configuration (since an empty sum is defined to be 0). In fact the binomial coefficient extstyle{n+k-1choose k} takes these values for "n" = 0 (since by convention extstyle{-1choose 0}=1 (unlike extstyle{n+k-1choose n-1}, which by convention takes value 0 when n=k=0, which is why the other expression is used in the statement of the theorem).

Example

For example, if "k" = 5, "n" = 4, and our set of size "n" is {a, b, c, d},then ★|★★★||★ would represent the multiset {a, b, b, b, d} or the 4-tuple (1,3,0,1). The representation of any multiset for this example would use 5 stars ("k") and 3 bars ("n" − 1).

Seven indistinguishable one dollar coins are to be distributed among Amber, Ben and Curtis so that each of them receives at least one dollar. Thus the stars and bars apply with "n" = 7 and "k" = 3; hence there are extstyle{7 - 1 choose 3-1} = 15 ways to distribute the coins.

References

*cite book |author=Pitman, Jim |title=Probability |publisher=Springer-Verlag |location=Berlin |year=1993 |pages= |isbn=0-387-97974-3 |oclc= |doi=


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • art and architecture, Oceanic — ▪ visual arts Introduction       the visual art (art) and architecture of native Oceania, including media such as sculpture, pottery, rock art, basketry, masks, painting, and personal decoration. In these cultures, art and architecture have often …   Universalium

  • List of mathematics articles (S) — NOTOC S S duality S matrix S plane S transform S unit S.O.S. Mathematics SA subgroup Saccheri quadrilateral Sacks spiral Sacred geometry Saddle node bifurcation Saddle point Saddle surface Sadleirian Professor of Pure Mathematics Safe prime Safe… …   Wikipedia

  • Gilbert and Sullivan — refers to the Victorian era partnership of librettist W. S. Gilbert (1836–1911) and composer Arthur Sullivan (1842–1900). Together, they wrote fourteen comic operas between 1871 and 1896, of which H.M.S. Pinafore , The Pirates of Penzance , and… …   Wikipedia

  • Multiset — This article is about the mathematical concept. For the computer science data structure, see Set (computer science)#Multiset. In mathematics, the notion of multiset (or bag) is a generalization of the notion of set in which members are allowed to …   Wikipedia

  • Arguments for and against drug prohibition — Arguments about the prohibition of drugs, and over drug policy reform, are subjects of considerable controversy. The following is a presentation of major drug policy arguments, including those for drug law enforcement on one side of the debate,… …   Wikipedia

  • literature — /lit euhr euh cheuhr, choor , li treuh /, n. 1. writings in which expression and form, in connection with ideas of permanent and universal interest, are characteristic or essential features, as poetry, novels, history, biography, and essays. 2.… …   Universalium

  • Cosmic microwave background radiation — CMB and Cosmic background radiation redirect here. For other uses see CMB (disambiguation) and Cosmic background (disambiguation). Physical cosmology …   Wikipedia

  • South Asian arts — Literary, performing, and visual arts of India, Pakistan, Bangladesh, and Sri Lanka. Myths of the popular gods, Vishnu and Shiva, in the Puranas (ancient tales) and the Mahabharata and Ramayana epics, supply material for representational and… …   Universalium

  • Logarithm — The graph of the logarithm to base 2 crosses the x axis (horizontal axis) at 1 and passes through the points with coordinates (2, 1), (4, 2), and (8, 3) …   Wikipedia

  • Places in The Hitchhiker's Guide to the Galaxy — Hitchhiker s portal This is a list of places featured in Douglas Adams s science fiction series, The Hitchhiker s Guide to the Galaxy. The series is set in a fictionalised version of the Milky Way galaxy and thus, while most locations are pure… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”