# Urn problem

In probability and statistics, an urn problem is an idealized mental exercise in which some objects of real interest (such as atoms, people, cars, etc.) are represented as colored balls in an urn or other container. One pretends to remove one or more balls from the urn; the goal is to determine the probability of drawing one color or another, or some other properties. A number of important variations are described below.

An urn model is either a set of probabilities that describe events within an urn problem, or it is a probability distribution, or a family of such distributions, of random variables associated with urn problems.

## Basic urn model

In this basic urn model in probability theory, the urn contains x white and y black balls, well-mixed together. One ball is drawn randomly from the urn and its color observed; it is then placed back in the urn (or not), and the selection process is repeated.

Possible questions that can be answered in this model are:

• Can I infer the proportion of white and black balls from n observations? With what degree of confidence?
• Knowing x and y, what is the probability of drawing a specific sequence (e.g. one white followed by one black)?
• If I only observe n balls, how sure can I be that there are no black balls? (A variation on the first question)

## Examples of urn problems

• binomial distribution: the distribution of the number of successful draws (trials), i.e. extraction of white balls, given n draws with replacement in an urn with black and white balls.
• beta-binomial distribution: as above, except that every time a ball is observed, an additional ball of the same color is added to the urn. Hence, the number of total marbles in the urn grows. See Pólya urn model.
• multinomial distribution: the urn contains balls in more than two colors.
• hypergeometric distribution: the balls are not returned to the urn once extracted. Hence, the number of total marbles in the urn decreases. This is referred to as "drawing without replacement", by opposition to "drawing with replacement".
• multivariate hypergeometric distribution: as above, but with balls of more than two colors.
• geometric distribution: number of draws before the first successful (correctly colored) draw.
• negative binomial distribution: number of draws before a certain number of failures (incorrectly colored draws) occurs.
• Statistical physics: derivation of energy and velocity distributions.