All Topics  
Uniform distribution (continuous)

 

   Email Print
   Bookmark   Link






 

Uniform distribution (continuous)



 
 
In probability theory
Probability theory

Probability theory is the branch of mathematics concerned with analysis of Statistical randomness phenomena. The central objects of probability theory are random variables, stochastic processes, and event s: mathematical abstractions of determinism events or measured quantities that may either be single occurrences or evolve over time in an a...
 and statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
, the continuous uniform distribution is a family of probability distributions such that for each member of the family, all interval
Interval (mathematics)

In mathematics, a interval is a set of real numbers with the property that any number that lies between two numbers in the set is also included in the set....
s of the same length on the distribution's support are equally probable. The support is defined by the two parameters, a and b, which are its minimum and maximum values. The distribution is often abbreviated U(a,b).

probability density function
Probability density function

In mathematics, a probability density function is a function that represents a probability distribution in terms of integrals.Formally, a probability distribution has density ƒ, if ƒ is a non-negative Lebesgue integration function such that the probability of the interval [ab] is given by...
 of the continuous uniform distribution is:

The values at the two boundaries a and b are usually unimportant because they do not alter the values of the integrals of f(xdx over any interval, nor of x f(xdx or any higher moment.






Discussion
Ask a question about 'Uniform distribution (continuous)'
Start a new discussion about 'Uniform distribution (continuous)'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


In probability theory
Probability theory

Probability theory is the branch of mathematics concerned with analysis of Statistical randomness phenomena. The central objects of probability theory are random variables, stochastic processes, and event s: mathematical abstractions of determinism events or measured quantities that may either be single occurrences or evolve over time in an a...
 and statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
, the continuous uniform distribution is a family of probability distributions such that for each member of the family, all interval
Interval (mathematics)

In mathematics, a interval is a set of real numbers with the property that any number that lies between two numbers in the set is also included in the set....
s of the same length on the distribution's support are equally probable. The support is defined by the two parameters, a and b, which are its minimum and maximum values. The distribution is often abbreviated U(a,b).

Characterization


Probability density function

The probability density function
Probability density function

In mathematics, a probability density function is a function that represents a probability distribution in terms of integrals.Formally, a probability distribution has density ƒ, if ƒ is a non-negative Lebesgue integration function such that the probability of the interval [ab] is given by...
 of the continuous uniform distribution is:

The values at the two boundaries a and b are usually unimportant because they do not alter the values of the integrals of f(xdx over any interval, nor of x f(xdx or any higher moment. Sometimes they are chosen to be zero, and sometimes chosen to be 1/(b − a). The latter is appropriate in the context of estimation by the method of maximum likelihood
Maximum likelihood

Maximum likelihood estimation is a popular statistics method used for fitting a mathematical model to data. The modeling of real world data using estimation by maximum likelihood offers a way of tuning the free parameters of the model to provide a good fit....
. In the context of Fourier analysis, one may take the value of f(a) or f(b) to be 1/(2(b − a)), since then the inverse transform of many integral transform
Integral transform

In mathematics, an integral transform is any list of transforms T of the following form:The input of this transform is a function f, and the output is another function TF....
s of this uniform function will yield back the function itself, rather than a function which is equal "almost everywhere
Almost everywhere

In measure theory , one says that a property holds almost everywhere if the set of elements for which the property does not hold is a null set, i.e....
", i.e. except on a set of points with zero measure. Also, it is consistent with the sign function
Sign function

In mathematics, the sign function is an Even and odd functions function that extracts the negative and non-negative numbers of a real number....
 which has no such ambiguity.

Cumulative distribution function

The cumulative distribution function
Cumulative distribution function

In probability theory and statistics, the cumulative distribution function or just distribution function, completely describes the probability distribution of a real-valued random variable X....
 is:

Generating functions


Moment-generating function
The moment-generating function
Moment-generating function

In probability theory and statistics, the moment-generating function of a random variable X iswherever this expected value exists.The moment-generating function is so called because, if it exists on an open interval around t = 0, then it is the ordinary generating function of the moment of the probability distribution:...
 is

from which we may calculate the raw moments m k

For a random variable
Random variable

In mathematics, random variables are used in the study of Randomness and probability. They were developed to assist in the analysis of Game of chance, stochastic events, and the results of experiment by capturing only the mathematical properties necessary to answer probability questions....
 following this distribution, the expected value
Expected value

In probability theory and statistics, the expected value of a random variable is the Lebesgue integral of the random variable with respect to its probability measure....
 is then m1 = (a + b)/2 and the variance
Variance

In probability theory and statistics, the variance of a random variable, probability distribution, or sample is one measure of statistical dispersion, averaging the squared distance of its possible values from the expected value ....
 is m2 − m12 = (b − a)2/12.

Cumulant-generating function
For n = 2, the nth cumulant
Cumulant

In probability theory and statistics, if a random variable X admits an expected value ? = E and a variance s2 = E, then these are the first two cumulants: ? = ?1 and s2 = ?2....
 of the uniform distribution on the interval [0, 1] is bn/n, where bn is the nth Bernoulli number
Bernoulli number

In mathematics, the Bernoulli numbers are a sequence of rational numbers with deep connections to number theory. They are closely related to the values of the Riemann zeta function at negative integers....
.

Properties


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
Lebesgue measure

In mathematics, the Lebesgue measure, named after Henri Lebesgue, is the standard way of assigning a length, area or volume to subsets of Euclidean space....
 of S.

Order statistics


Let X1, ..., Xn be an i.i.d. sample from U(0,1). Let X(k) be the kth order statistic
Order statistic

In statistics, the kth order statistic of a statistical sample is equal to its kth-smallest value. Together with rankings, order statistics are among the most fundamental tools in non-parametric statistics and non-parametric inference....
 from this sample. Then the probability distribution of X(k) is a Beta distribution
Beta distribution

In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval [0, 1] parameterized by two positive shape parameters, typically denoted by α and β....
 with parameters k and n − k + 1. The expected value is

This fact is useful when making Q-Q plot
Q-Q plot

In statistics, a Q-Q plot is a graphical method for diagnosing differences between the probability distribution of a statistical population from which a random sample has been taken and a comparison distribution....
s.

The variances are

'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(0,b) and [x, x+d] is a subinterval of [0,b] with fixed d > 0, then

which is independent of x. This fact motivates the distribution's name.

Standard uniform

Restricting and , the resulting distribution U(0,1) is called a standard uniform distribution.

One interesting property of the standard uniform distribution is that if u1 has a standard uniform distribution, then so does 1-u1. This property can be used for generating antithetic variates, among other things.

Related distributions

If X has a standard uniform distribution, then by the Inverse transform sampling method:
  • ; has an exponential distribution
    Exponential distribution

    In probability theory and statistics, the exponential distributions are a class of continuous probability distributions. They describe the times between events in a Poisson process, i.e....
     with (rate) parameter λ.
  • has a beta distribution
    Beta distribution

    In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval [0, 1] parameterized by two positive shape parameters, typically denoted by α and β....
     with parameters 1 and n. (Note this implies that the standard uniform distribution is a special case of the beta distribution, with parameters 1 and 1.)


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
Heaviside step function

The Heaviside step function, H, also called the unit step function, is a continuous function Function whose value is 0 for negative argument and 1 for positive argument....
:

or in terms of the rectangle function

There is no ambiguity at the transition point of the sign function
Sign function

In mathematics, the sign function is an Even and odd functions function that extracts the negative and non-negative numbers of a real number....
. Using the half-maximum convention at the transition points, the uniform distribution may be expressed in terms of the sign function as:

Applications

In statistics
Statistics

Statistics is a Mathematics pertaining to the collection, analysis, interpretation or explanation, and presentation of data. It also provides tools for prediction and forecasting based on data....
, when a p-value
P-value

In statistics hypothesis testing, the p-value is the probability of obtaining a result at least as extreme as the one that was actually observed, assuming that the null hypothesis is true....
 is used as a test statistic for a simple null hypothesis
Null hypothesis

In statistics, a null hypothesis is a concept which arises in the context of statistical hypothesis testing. A common convention is to use the symbol H0 to denote the null hypothesis....
, and the distribution of the test statistic is continuous, then the test statistic (p-value) is uniformly distributed between 0 and 1 if the null hypothesis is true.

Sampling from a uniform distribution

There are many applications in which it is useful to run simulation experiments. Many programming language
Programming language

A programming language is a machine-readable artificial language designed to express computations that can be performed by a machine, particularly a computer....
s have the ability to generate pseudo-random numbers
Pseudorandom number sequence

A Pseudorandom number sequence is a sequence of numbers that has been computed by some defined arithmetic process but is effectively a random number sequence for the purpose for which it is required....
 which are effectively distributed according to the standard uniform distribution.

If u is a value sampled from the standard uniform distribution, then the value a + (ba)u follows the uniform distribution parametrised by a and b, as described above.

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
Cumulative distribution function

In probability theory and statistics, the cumulative distribution function or just distribution function, completely describes the probability distribution of a real-valued random variable X....
 (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
Rejection sampling

In mathematics, rejection sampling is a technique used to generate observations from a probability distribution. It is also commonly called the acceptance-rejection method or "accept-reject algorithm"....
.

The normal distribution
Normal distribution

The normal distribution, also called the Gaussian distribution, is an important family of continuous probability distributions, applicable in many fields....
 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 variable
Random variable

In mathematics, random variables are used in the study of Randomness and probability. They were developed to assist in the analysis of Game of chance, stochastic events, and the results of experiment by capturing only the mathematical properties necessary to answer probability questions....
s into two independent normally distributed
Normal distribution

The normal distribution, also called the Gaussian distribution, is an important family of continuous probability distributions, applicable in many fields....
 random variables.

Estimation of maximum

Given a uniform distribution on with unknown N, the UMVU estimator for the maximum is given by where m is the sample maximum and k is the sample size
Sample size

The sample size of a statistical sample is the number of observations that constitute it. It is typically denoted n, a positive integer ....
, 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
Uniform distribution (discrete)

In probability theory and statistics, the discrete uniform distribution is a discrete probability distribution that can be characterized by saying that all values of a finite set of possible values are equally probable....
, and can be seen as a very simple case of maximum spacing estimation
Maximum spacing estimation

In mathematics, Maximum spacing estimation , or maximum product of spacing estimation , is a statistics method for fitting the parameters of a mathematical model to data ....
. This problem is commonly known as the German tank problem
German tank problem

File:PantherTankColor.jpgIn the statistical theory of estimation theory, estimating the maximum of a uniform distribution is a common illustration of differences between estimation methods....
, due to application of maximum estimation to estimates of German tank production during World War II
World War II

World War II, or the Second World War , was a global military conflict which involved a Participants in World War II, including all of the great powers, organised into two opposing military alliances: the Allies of World War II and the Axis powers....
.

See also

  • Beta distribution
    Beta distribution

    In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval [0, 1] parameterized by two positive shape parameters, typically denoted by α and β....
  • Box-Muller transform
    Box-Muller transform

    A Box-Muller transform is a method of generating pairs of statistical independence standard normal distribution random numbers, given a source of uniform distribution random numbers....
  • Probability plot
    Probability plot

    A probability plot is a graphical technique for assessing whether or not a data set follows a given distribution such as the normal distribution or Weibull distribution, and for visually estimating the location parameter and scale parameters of the chosen distribution....
  • Q-Q plot
    Q-Q plot

    In statistics, a Q-Q plot is a graphical method for diagnosing differences between the probability distribution of a statistical population from which a random sample has been taken and a comparison distribution....
  • Random number
    Random number

    Random number may refer to:* A number generated for or part of a set exhibiting statistical randomness.* A random sequence obtained from a stochastic process....
  • Uniform distribution (discrete)
    Uniform distribution (discrete)

    In probability theory and statistics, the discrete uniform distribution is a discrete probability distribution that can be characterized by saying that all values of a finite set of possible values are equally probable....