Uniform Distribution (Continuous)
Uniform Distribution (Continuous)
Uniform Distribution (Continuous)
1
1.1
Characterization
0 (
f (x) =
1
ba
for a x b,
)
+1
forx < 3
for 3 x < 3
forx 3
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 f(x) dx over any interval, nor of x f(x)
dx 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. 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 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.
Mx = E(etx ) =
etb eta
t(b a)
a+b
In terms of mean and variance 2 , the probability den,
m1 =
sity may be written as:
2
{
f (x) =
1.2
1
2 3
for 3 x 3
otherwise
m2 =
a2 + ab + b2
,
3
mk =
1 i ki
ab .
k + 1 i=0
k
2
1.3.2
RELATED DISTRIBUTIONS
Cumulant-generating function
x+d
dy
d
For n 2, the nth cumulant of the uniform distribution
P (X [x, x + d]) =
=
on the interval [1/2, 1/2] is bn/n, where bn is the nth
b
a
b
a
x
Bernoulli number.[3]
which is independent of x. This fact motivates the distributions name.
2
2.1
Properties
Moments and parameters
E(X) =
1
(a + b).
2
V (X) =
1
(b a)2
12
3 Standard uniform
Solving these two equations for parameters a and b, given Restricting a = 0 and b = 1 , the resulting distribution
known moments E(X) and V(X), yields:
U(0,1) is called a standard uniform distribution.
a = E(X) 3V (X)
b = E(X) + 3V (X)
2.2
Order statistics
E(X(k) ) =
k
.
n+1
V(X(k) ) =
2.3
k(n k + 1)
.
(n + 1)2 (n + 2)
Uniformity
The probability that a uniformly distributed random variable falls within any interval of xed 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
distributions support.
To see this, if X ~ U(a,b) and [x, x+d] is a subinterval of
[a,b] with xed d > 0, then
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.
4 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 =
Xn has a beta distribution with parameters 1/n and
1. (Note this implies that the standard uniform distribution is a special case of the beta distribution,
with parameters 1 and 1.)
The IrwinHall 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.
The uniform distribution can be thought of as a beta
distribution with parameters (1,1).
6.3
Quantization error
3
for the cases where the cdf is not known in closed form.
One such method is rejection sampling.
As long as the same conventions are followed at the tran- The normal distribution is an important example where
sition points, the probability density function may also be the inverse transform method is not ecient. However,
expressed in terms of the Heaviside step function:
there is an exact method, the BoxMuller transformation,
which uses the inverse transform to convert two independent uniform random variables into two independent
H(x a) H(x b)
normally distributed random variables.
f (x) =
,
ba
or in terms of the rectangle function
1
rect
f (x) =
ba
(
))
x a+b
2
.
ba
f (x) =
sgn (x a) sgn (x b)
.
2(b a)
Applications
7 Estimation
7.1 Estimation of maximum
In statistics, when a p-value is used as a test statistic for 7.1.1 Minimum-variance unbiased estimator
a simple null hypothesis, and the distribution of the test
statistic is continuous, then the p-value is uniformly dis- Main article: German tank problem
tributed between 0 and 1 if the null hypothesis is true.
6.1
11
7.1.3
EXTERNAL LINKS
[3] https://galton.uchicago.edu/~{}wichura/Stat304/
Handouts/L18.cumulants.pdf
bM M = 2X
7.2
10 Further reading
Estimation of midpoint
7.3
fn (X(n) ) = n
1
L
X(n)
L
)n1
=n
n1
X(n)
Ln
, 0 < Xn < L
See also
Beta distribution
BoxMuller transform
Probability plot
Q-Q plot
Rectangular function
Uniform distribution (discrete)
References
11 External links
Online calculator of Uniform distribution (continuous)
12
12.1
Uniform distribution (continuous) Source: https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)?oldid=693345665 Contributors: Zundark, Gareth Owen, Michael Hardy, Jitse Niesen, Robbot, Robbyjo~enwiki, Henrygb, Giftlite, ArnoldReinhold, Bender235,
MisterSheik, Nsaa, B k, Sl, PAR, Fasten, Aegis Maelstrom, Cburnett, Oleg Alexandrov, Btyner, Marudubshinki, Pahan~enwiki, Mathbot,
Benlisquare, Algebraist, Ray Chason, Ossska, SmackBot, Gilliam, Amatulic, Nbarth, Iwaterpolo, Gala.martin, Euchiasmus, Stwalkerster,
Gritzko, Abdullah Chougle, FilipeS, MC10, AlekseyP, Thijs!bot, Iae, JAnDbot, A.M.R., Albmont, Baccyak4H, User A1, Ceancata, R'n'B,
VolkovBot, DrMicro, Broadbot, Jamelan, Brianga, Tpb, Rlendog, DaBler, DixonD, Melcombe, MATThematical, DragonBot, EtudiantEco,
Sun Creator, Qwfp, Addbot, Brumski, Fgnievinski, Sandrarossi, Wikomidia, Luckas-bot, Yobot, AnomieBOT, Xqbot, Capricorn42, Ruy
Pugliesi, GrouchoBot, Erik9bot, Thehelpfulbot, D'ohBot, Warriorman21, Jonesey95, Stpasha, MastiBot, Duoduoduo, Marie Poise, EmausBot, Vilietha, Tolly4bolly, ClueBot NG, Arthurprat, Ryan Vesey, BG19bot, Ren Vpenk, IkamusumeFan, SFK2, Smirglis, OracleMachine, YiFeiBot, BeyondNormality, EricTheGreen, XenonFlight, Nostroamio, Michalove and Anonymous: 81
12.2
Images
12.3
Content license