In
probability theory
Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
and
statistics, the continuous uniform distribution or rectangular distribution is a family of
symmetric probability distributions. The distribution describes an experiment where there is an arbitrary outcome that lies between certain bounds.
The bounds are defined by the parameters, ''a'' and ''b'', which are the minimum and maximum values. The interval can either be
closed (e.g.
, b
The comma is a punctuation mark that appears in several variants in different languages. It has the same shape as an apostrophe or single closing quotation mark () in many typefaces, but it differs from them in being placed on the baseline o ...
or
open (e.g. (a, b)).
Therefore, the distribution is often abbreviated ''U'' (''a'', ''b''), where U stands for uniform distribution.
The difference between the bounds defines the interval length; all
intervals of the same length on the distribution's
support are equally probable. It is the
maximum entropy probability distribution for a
random variable ''X'' under no constraint other than that it is contained in the distribution's support.
Definitions
Probability density function
The
probability density function
In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) c ...
of the continuous uniform distribution is:
:
The values of ''f''(''x'') at the two boundaries ''a'' and ''b'' are usually unimportant because they do not alter the values of the integrals of over any interval, nor of or any higher moment. Sometimes they are chosen to be zero, and sometimes chosen to be . The latter is appropriate in the context of estimation by the method of
maximum likelihood. In the context of
Fourier analysis, one may take the value of ''f''(''a'') or ''f''(''b'') to be , since then the inverse transform of many
integral transforms of this uniform function will yield back the function itself, rather than a function which is equal "
almost everywhere", i.e. except on a set of points with zero
measure. Also, it is consistent with the
sign function which has no such ambiguity.
Graphically, the
probability density function
In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) c ...
is portrayed as a rectangle where is the base and is the height. As the distance between a and b increases, the density at any particular value within the distribution boundaries decreases.
Since the
probability density function
In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) c ...
integrates to 1, the height of the probability density function decreases as the base length increases.
In terms of mean ''μ'' and variance ''σ''
2, the probability density may be written as:
:
Cumulative distribution function
The
cumulative distribution function
In probability theory and statistics, the cumulative distribution function (CDF) of a real-valued random variable X, or just distribution function of X, evaluated at x, is the probability that X will take a value less than or equal to x.
Ev ...
is:
:
Its inverse is:
: