HOME

TheInfoList



OR:

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 ...
and
statistics Statistics (from German: '' Statistik'', "description of a state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a scientific, indust ...
, 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 Closed may refer to: Mathematics * Closure (mathematics), a set, along with operations, for which applying those operations on members always results in a member of the set * Closed set, a set which contains all its limit points * Closed interval, ...
(e.g. , b or
open Open or OPEN may refer to: Music * Open (band), Australian pop/rock band * The Open (band), English indie rock band * Open (Blues Image album), ''Open'' (Blues Image album), 1969 * Open (Gotthard album), ''Open'' (Gotthard album), 1999 * Open (C ...
(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 Support may refer to: Arts, entertainment, and media * Supporting character Business and finance * Support (technical analysis) * Child support * Customer support * Income Support Construction * Support (structure), or lateral support, a ...
are equally probable. It is the
maximum entropy probability distribution In statistics and information theory, a maximum entropy probability distribution has entropy that is at least as great as that of all other members of a specified class of probability distributions. According to the principle of maximum entrop ...
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) ca ...
of the continuous uniform distribution is: : f(x)=\begin \frac & \mathrm\ a \le x \le b, \\ pt 0 & \mathrm\ xb \end 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 statistics, maximum likelihood estimation (MLE) is a method of estimating the parameters of an assumed probability distribution, given some observed data. This is achieved by maximizing a likelihood function so that, under the assumed stat ...
. 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) ca ...
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) ca ...
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: : f(x)=\begin \frac & \mbox-\sigma\sqrt \le x-\mu \le \sigma\sqrt \\ 0 & \text \end


Cumulative distribution function

The cumulative distribution function is: : F(x)= \begin 0 & \textx < a \\ pt \frac & \texta \le x \le b \\ pt 1 & \textx > b \end Its inverse is: :F^(p) = a + p (b - a) \,\,\text 0 In mean and variance notation, the cumulative distribution function is: :F(x)= \begin 0 & \textx-\mu < -\sigma\sqrt \\ \frac \left( \frac +1 \right) & \text-\sigma\sqrt \le x-\mu < \sigma\sqrt \\ 1 & \textx-\mu \ge \sigma\sqrt \end and the inverse is: :F^(p) = \sigma\sqrt(2p-1) +\mu\,\, \text0 \le p \le 1


Example 1. Using the Uniform Cumulative Distribution Function

For random variable : X\sim U(0,23) Find \scriptstyle P(2 < X < 18): : P(2 < X < 18) = (18-2)\cdot \frac 1 = \frac . In graphical representation of uniform distribution function (x) vs x the area under the curve within the specified bounds displays the probability (shaded area is depicted as a rectangle). For this specific example above, the base would be and the height would be .


Example 2. Using the Uniform Cumulative Distribution Function (Conditional)

For random variable : X\sim U(0,23) Find \scriptstyle P(X > 12 \ , \ X > 8): : P(X > 12\ , \ X > 8) = (23-12)\cdot \frac 1 = \frac. The example above is for a conditional probability case for the uniform distribution: given is true, what is the probability that . Conditional probability changes the sample space so a new interval length has to be calculated, where is 23 and is 8. The graphical representation would still follow Example 1, where the area under the curve within the specified bounds displays the probability and the base of the rectangle would be and the height .


Generating functions


Moment-generating function

The moment-generating function is: : M_x = E(e^) = \frac \,\! from which we may calculate the raw moments ''m'' ''k'' :m_1=\frac, \,\! :m_2=\frac, \,\! :m_k=\frac\sum_^k a^ib^. \,\! For the special case ''a'' = –''b'', that is, for : f(x)=\begin \frac & \text\ -b \le x \le b, \\ pt 0 & \text, \end the moment-generating functions reduces to the simple form : M_x=\frac. For a random variable following this distribution, the expected value is then ''m''1 = (''a'' + ''b'')/2 and the
variance In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbe ...
is ''m''2 − ''m''12 = (''b'' − ''a'')2/12.


Cumulant-generating function

For , the ''n''th cumulant of the uniform distribution on the interval is ''B''''n''/''n'', where ''B''''n'' is the ''n''th Bernoulli number.


Standard uniform

Restricting a=0 and b=1, the resulting distribution ''U''(0,1) is called a standard uniform distribution. One interesting property of the standard uniform distribution is that if ''u''1 has a standard uniform distribution, then so does 1-''u''1. This property can be used for generating antithetic variates, among other things. In other words, this property is known as the inversion method where the continuous standard uniform distribution can be used to generate random numbers for any other continuous distribution. If is a uniform random number with standard uniform distribution (0,1), then x= F^(u) generates a random number from any continuous distribution with the specified cumulative distribution function .


Relationship to other functions

As long as the same conventions are followed at the transition points, the probability density function may also be expressed in terms of the
Heaviside step function The Heaviside step function, or the unit step function, usually denoted by or (but sometimes , or ), is a step function, named after Oliver Heaviside (1850–1925), the value of which is zero for negative arguments and one for positive argum ...
: :f(x)=\frac, \,\! or in terms of the
rectangle function The rectangular function (also known as the rectangle function, rect function, Pi function, Heaviside Pi function, gate function, unit pulse, or the normalized boxcar function) is defined as \operatorname(t) = \Pi(t) = \left\{\begin{array}{rl ...
:f(x)=\frac\,\operatorname\left(\frac\right) . There is no ambiguity at the transition point of the sign function. Using the half-maximum convention at the transition points, the uniform distribution may be expressed in terms of the sign function as: :f(x)=\frac .


Properties


Moments

The mean (first
moment Moment or Moments may refer to: * Present time Music * The Moments, American R&B vocal group Albums * ''Moment'' (Dark Tranquillity album), 2020 * ''Moment'' (Speed album), 1998 * ''Moments'' (Darude album) * ''Moments'' (Christine Guldbrand ...
) of the distribution is: :E(X)=\frac(b+a). The second moment of the distribution is: :E(X^2) = \frac. In general, the ''n''-th moment of the uniform distribution is: :E(X^n) = \frac The variance (second central moment) is: :V(X)=\frac(b-a)^2


Order statistics

Let ''X''1, ..., ''X''''n'' be an i.i.d. sample from ''U''(0,1). Let ''X''(''k'') be the ''k''th order statistic from this sample. Then the probability distribution of ''X''(''k'') is a
Beta distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval , 1in terms of two positive parameters, denoted by ''alpha'' (''α'') and ''beta'' (''β''), that appear as ...
with parameters ''k'' and . The expected value is :\operatorname(X_) = . This fact is useful when making Q–Q plots. The variances are :\operatorname(X_) = . See also:


Uniformity

The probability that a uniformly distributed random variable falls within any interval of fixed length is independent of the location of the interval itself (but it is dependent on the interval size), so long as the interval is contained in the distribution's support. To see this, if ''X'' ~ U(''a'',''b'') and 'x'', ''x''+''d''is a subinterval of 'a'',''b''with fixed ''d'' > 0, then : P\left(X\in\left x,x+d \right right) = \int_^ \frac\, = \frac \,\! which is independent of ''x''. This fact motivates the distribution's name.


Generalization to Borel sets

This distribution can be generalized to more complicated sets than intervals. If ''S'' is a
Borel set In mathematics, a Borel set is any set in a topological space that can be formed from open sets (or, equivalently, from closed sets) through the operations of countable union, countable intersection, and relative complement. Borel sets are na ...
of positive, finite measure, the uniform probability distribution on ''S'' can be specified by defining the pdf to be zero outside ''S'' and constantly equal to 1/''K'' on ''S'', where ''K'' is the
Lebesgue measure In measure theory, a branch of mathematics, the Lebesgue measure, named after French mathematician Henri Lebesgue, is the standard way of assigning a measure to subsets of ''n''-dimensional Euclidean space. For ''n'' = 1, 2, or 3, it coincides wi ...
of ''S''.


Related distributions

* If ''X'' has a standard uniform distribution, then by the inverse transform sampling method, ''Y'' = − λ−1 ln(X) has an exponential distribution with (rate) parameter λ. * If ''X'' has a standard uniform distribution, then ''Y'' = ''X''''n'' has a
beta distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval , 1in terms of two positive parameters, denoted by ''alpha'' (''α'') and ''beta'' (''β''), that appear as ...
with parameters (''1/n,1)''. As such, * The standard uniform distribution is a special case of the
beta distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval , 1in terms of two positive parameters, denoted by ''alpha'' (''α'') and ''beta'' (''β''), that appear as ...
with parameters (''1,1)''. * The Irwin–Hall distribution is the sum of ''n'' i.i.d. ''U(0,1)'' distributions. * The sum of two independent, equally distributed, uniform distributions yields a symmetric triangular distribution. * The distance between two i.i.d. uniform random variables also has a triangular distribution, although not symmetric.


Statistical inference


Estimation of parameters


Estimation of maximum


=Minimum-variance unbiased estimator

= Given a uniform distribution on , ''b''with unknown ''b,'' the minimum-variance unbiased estimator (UMVUE) for the maximum is given by :\hat_\text=\frac m = m + \frac where ''m'' is the
sample maximum In statistics, the sample maximum and sample minimum, also called the largest observation and smallest observation, are the values of the greatest and least elements of a sample. They are basic summary statistics, used in descriptive statistics ...
and ''k'' is the
sample size Sample size determination is the act of choosing the number of observations or replicates to include in a statistical sample. The sample size is an important feature of any empirical study in which the goal is to make inferences about a populati ...
, sampling without replacement (though this distinction almost surely makes no difference for a continuous distribution). This follows for the same reasons as estimation for the discrete distribution, and can be seen as a very simple case of
maximum spacing estimation In statistics, maximum spacing estimation (MSE or MSP), or maximum product of spacing estimation (MPS), is a method for estimating the parameters of a univariate statistical model. The method requires maximization of the geometric mean of ''spac ...
. This problem is commonly known as the German tank problem, due to application of maximum estimation to estimates of German tank production during
World War II World War II or the Second World War, often abbreviated as WWII or WW2, was a world war that lasted from 1939 to 1945. It involved the World War II by country, vast majority of the world's countries—including all of the great power ...
.


=Maximum likelihood estimator

= The
maximum likelihood In statistics, maximum likelihood estimation (MLE) is a method of estimating the parameters of an assumed probability distribution, given some observed data. This is achieved by maximizing a likelihood function so that, under the assumed stat ...
estimator is given by: :\hat_= m where ''m'' is the
sample maximum In statistics, the sample maximum and sample minimum, also called the largest observation and smallest observation, are the values of the greatest and least elements of a sample. They are basic summary statistics, used in descriptive statistics ...
, also denoted as m=X_ the maximum order statistic of the sample.


=Method of moment estimator

= The method of moments estimator is given by: :\hat_= 2\bar where \bar is the sample mean.


Estimation of midpoint

The midpoint of the distribution (''a'' + ''b'') / 2 is both the mean and the median of the uniform distribution. Although both the sample mean and the sample median are unbiased estimators of the midpoint, neither is as efficient as the sample mid-range, i.e. the arithmetic mean of the sample maximum and the sample minimum, which is the
UMVU In statistics a minimum-variance unbiased estimator (MVUE) or uniformly minimum-variance unbiased estimator (UMVUE) is an unbiased estimator that has lower variance than any other unbiased estimator for all possible values of the parameter. For pra ...
estimator of the midpoint (and also the maximum likelihood estimate).


Confidence interval


For the maximum

Let ''X''1, ''X''2, ''X''3, ..., ''X''''n'' be a sample from U_ where ''L'' is the population maximum. Then ''X''(''n'') = max( ''X''1, ''X''2, ''X''3, ..., ''X''''n'' ) has the Lebesgue-Borel-density f := \frac Nechval KN, Nechval NA, Vasermanis EK, Makeev VY (2002
Constructing shortest-length confidence intervals
Transport and Telecommunication 3 (1) 95-103
: f(t) = n \frac \left(\frac\right)^ =n \frac, 0 \leq t \leq L The confidence interval given before is mathematically incorrect, as \Pr ( hat, \hat + \epsilon\ni \theta) \geq 1 - \alpha cannot be solved for \epsilon without knowledge of \theta. However one can solve : \Pr ( hat, \hat (1 + \epsilon)\ni \theta) \geq 1 - \alpha for \epsilon \geq (1-\alpha)^ - 1 for any unknown but valid \theta, one then chooses the smallest \epsilon possible satisfying the condition above. Note that the interval length depends upon the random variable \hat.


Occurrence and applications

The probabilities for uniform distribution function are simple to calculate due to the simplicity of the function form. Therefore, there are various applications that this distribution can be used for as shown below: hypothesis testing situations, random sampling cases, finance, etc. Furthermore, generally, experiments of physical origin follow a uniform distribution (e.g. emission of radioactive particles). However, it is important to note that in any application, there is the unchanging assumption that the probability of falling in an interval of fixed length is constant.


Economics example for uniform distribution

In the field of economics, usually demand and replenishment may not follow the expected normal distribution. As a result, other distribution models are used to better predict probabilities and trends such as Bernoulli process. But according to Wanke (2008), in the particular case of investigating lead-time for inventory management at the beginning of the life cycle when a completely new product is being analyzed, the uniform distribution proves to be more useful. In this situation, other distribution may not be viable since there is no existing data on the new product or that the demand history is unavailable so there isn't really an appropriate or known distribution. The uniform distribution would be ideal in this situation since the random variable of lead-time (related to demand) is unknown for the new product but the results are likely to range between a plausible range of two values. The lead-time would thus represent the random variable. From the uniform distribution model, other factors related to lead-time were able to be calculated such as cycle service level and shortage per cycle. It was also noted that the uniform distribution was also used due to the simplicity of the calculations.


Sampling from an arbitrary distribution

The uniform distribution is useful for sampling from arbitrary distributions. A general method is the inverse transform sampling method, which uses the cumulative distribution function (CDF) of the target random variable. This method is very useful in theoretical work. Since simulations using this method require inverting the CDF of the target variable, alternative methods have been devised for the cases where the CDF is not known in closed form. One such method is
rejection sampling In numerical analysis and computational statistics, rejection sampling is a basic technique used to generate observations from a distribution. It is also commonly called the acceptance-rejection method or "accept-reject algorithm" and is a type of ...
. The
normal distribution In statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is : f(x) = \frac e^ The parameter \mu ...
is an important example where the inverse transform method is not efficient. However, there is an exact method, the Box–Muller transformation, which uses the inverse transform to convert two independent uniform random variables into two independent normally distributed random variables.


Quantization error

In analog-to-digital conversion a quantization error occurs. This error is either due to rounding or truncation. When the original signal is much larger than one least significant bit (LSB), the quantization error is not significantly correlated with the signal, and has an approximately uniform distribution. The RMS error therefore follows from the variance of this distribution.


Random variate generation

There are many applications in which it is useful to run simulation experiments. Many
programming language A programming language is a system of notation for writing computer programs. Most programming languages are text-based formal languages, but they may also be graphical. They are a kind of computer language. The description of a programming ...
s come with implementations to generate pseudo-random numbers which are effectively distributed according to the standard uniform distribution. On the other hand, the uniformly distributed numbers are often used as the basis for non-uniform random variate generation. If ''u'' is a value sampled from the standard uniform distribution, then the value ''a'' + (''b'' − ''a'')''u'' follows the uniform distribution parametrised by ''a'' and ''b'', as described above.


History

While the historical origins in the conception of uniform distribution are inconclusive, it is speculated that the term 'uniform' arose from the concept of
equiprobability Equiprobability is a property for a collection of events that each have the same probability of occurring. In statistics and probability theory it is applied in the discrete uniform distribution and the equidistribution theorem for rational ...
in dice games (note that the dice games would have discrete and not continuous uniform sample space).
Equiprobability Equiprobability is a property for a collection of events that each have the same probability of occurring. In statistics and probability theory it is applied in the discrete uniform distribution and the equidistribution theorem for rational ...
was mentioned in Gerolamo Cardano's ''Liber de Ludo Aleae'', a manual written in 16th century and detailed on advanced probability calculus in relation to dice.


See also

* Discrete uniform distribution *
Beta distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval , 1in terms of two positive parameters, denoted by ''alpha'' (''α'') and ''beta'' (''β''), that appear as ...
* Box–Muller transform * Probability plot * Q–Q plot * Rectangular function * Irwin–Hall distribution — In the degenerate case where n=1, the Irwin-Hall distribution generates a uniform distribution between 0 and 1. * Bates distribution — Similar to the Irwin-Hall distribution, but rescaled for n. Like the Irwin-Hall distribution, in the degenerate case where n=1, the Bates distribution generates a uniform distribution between 0 and 1.


References


Further reading

*


External links


Online calculator of Uniform distribution (continuous)
{{DEFAULTSORT:Uniform Distribution (Continuous) Continuous distributions Location-scale family probability distributions su:Sebaran seragam#Kasus kontinyu