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 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: : 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 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: : f(x)=\begin \frac & \mbox-\sigma\sqrt \le x-\mu \le \sigma\sqrt \\ 0 & \text \end


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: : 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 An emoticon (, , rarely , ), short for "emotion icon", also known simply as an emote, is a pictorial representation of a facial expression using characters—usually punctuation marks, numbers, and letters—to express a person's feelings, m ...
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 In probability theory, the expected value (also called expectation, expectancy, mathematical expectation, mean, average, or first moment) is a generalization of the weighted average. Informally, the expected value is the arithmetic mean of a ...
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 number ...
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 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 ...
.


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: :f(x)=\frac, \,\! or in terms of the rectangle function :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 In probability theory and statistics, a central moment is a moment of a probability distribution of a random variable about the random variable's mean; that is, it is the expected value of a specified integer power of the deviation of the random ...
) 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 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 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 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 with parameters (''1/n,1)''. As such, * The standard uniform distribution is a special case of the beta distribution 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 and ''k'' is the sample size, 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. 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 estimator is given by: :\hat_= m where ''m'' is the sample maximum, 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 In economics, demand is the quantity of a good that consumers are willing and able to purchase at various prices during a given time. The relationship between price and quantity demand is also called the demand curve. Demand for a specific item ...
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 A lead time is the latency between the initiation and completion of a process. For example, the lead time between the placement of an order and delivery of new cars by a given manufacturer might be between 2 weeks and 6 months, depending on vari ...
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 A lead time is the latency between the initiation and completion of a process. For example, the lead time between the placement of an order and delivery of new cars by a given manufacturer might be between 2 weeks and 6 months, depending on vari ...
would thus represent the random variable. From the uniform distribution model, other factors related to
lead-time A lead time is the latency between the initiation and completion of a process. For example, the lead time between the placement of an order and delivery of new cars by a given manufacturer might be between 2 weeks and 6 months, depending on vari ...
were able to be calculated such as
cycle service level Cycle, cycles, or cyclic may refer to: Anthropology and social sciences * Cyclic history, a theory of history * Cyclical theory, a theory of American political history associated with Arthur Schlesinger, Sr. * Social cycle, various cycles in soc ...
and
shortage per cycle In economics, a shortage or excess demand is a situation in which the demand for a product or service exceeds its supply in a market. It is the opposite of an excess supply (surplus). Definitions In a perfect market (one that matches a simpl ...
. 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 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 ...
(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. 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 i ...
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 languages 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 in dice games (note that the dice games would have discrete and not continuous uniform sample space). Equiprobability 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 In probability theory and statistics, the discrete uniform distribution is a symmetric probability distribution wherein a finite number of values are equally likely to be observed; every one of ''n'' values has equal probability 1/''n''. Ano ...
* Beta distribution * 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