Rayleigh distribution

From HandWiki
Short description: Probability distribution
Rayleigh
Probability density function
Plot of the Rayleigh PDF
Cumulative distribution function
Plot of the Rayleigh CDF
Parameters scale: σ>0
Support x[0,)
PDF xσ2ex2/(2σ2)
CDF 1ex2/(2σ2)
Quantile Q(F;σ)=σ2ln(1F)
Mean σπ2
Median σ2ln(2)
Mode σ
Variance 4π2σ2
Skewness 2π(π3)(4π)3/2
Kurtosis 6π224π+16(4π)2
Entropy 1+ln(σ2)+γ2
MGF 1+σteσ2t2/2π2(erf(σt2)+1)
CF 1σteσ2t2/2π2(erfi(σt2)i)

In probability theory and statistics, the Rayleigh distribution is a continuous probability distribution for nonnegative-valued random variables. Up to rescaling, it coincides with the chi distribution with two degrees of freedom. The distribution is named after Lord Rayleigh (/ˈrli/).[1]

A Rayleigh distribution is often observed when the overall magnitude of a vector in the plane is related to its directional components. One example where the Rayleigh distribution naturally arises is when wind velocity is analyzed in two dimensions. Assuming that each component is uncorrelated, normally distributed with equal variance, and zero mean, then the overall wind speed (vector magnitude) will be characterized by a Rayleigh distribution. A second example of the distribution arises in the case of random complex numbers whose real and imaginary components are independently and identically distributed Gaussian with equal variance and zero mean. In that case, the absolute value of the complex number is Rayleigh-distributed.

Definition

The probability density function of the Rayleigh distribution is[2]

f(x;σ)=xσ2ex2/(2σ2),x0,

where σ is the scale parameter of the distribution. The cumulative distribution function is[2]

F(x;σ)=1ex2/(2σ2)

for x[0,).

Relation to random vector length

Consider the two-dimensional vector Y=(U,V) which has components that are bivariate normally distributed, centered at zero, and independent.[clarification needed] Then U and V have density functions

fU(x;σ)=fV(x;σ)=ex2/(2σ2)2πσ2.

Let X be the length of Y. That is, X=U2+V2. Then X has cumulative distribution function

FX(x;σ)=DxfU(u;σ)fV(v;σ)dA,

where Dx is the disk

Dx={(u,v):u2+v2x}.

Writing the double integral in polar coordinates, it becomes

FX(x;σ)=12πσ202π0xrer2/(2σ2)drdθ=1σ20xrer2/(2σ2)dr.

Finally, the probability density function for X is the derivative of its cumulative distribution function, which by the fundamental theorem of calculus is

fX(x;σ)=ddxFX(x;σ)=xσ2ex2/(2σ2),

which is the Rayleigh distribution. It is straightforward to generalize to vectors of dimension other than 2. There are also generalizations when the components have unequal variance or correlations (Hoyt distribution), or when the vector Y follows a bivariate Student t-distribution (see also: Hotelling's T-squared distribution).[3]

Generalization to bivariate Student's t-distribution

Suppose Y is a random vector with components u,v that follows a multivariate t-distribution. If the components both have mean zero, equal variance, and are independent, the bivariate Student's-t distribution takes the form:

f(u,v)=12πσ2(1+u2+v2νσ2)ν/21

Let R=U2+V2 be the magnitude of Y. Then the cumulative distribution function (CDF) of the magnitude is:

F(r)=12πσ2Dr(1+u2+v2νσ2)ν/21dudv

where Dr is the disk defined by:

Dr={(u,v):u2+v2r}

Converting to polar coordinates leads to the CDF becoming:

F(r)=12πσ20r02πρ(1+ρ2νσ2)ν/21dθdρ=1σ20rρ(1+ρ2νσ2)ν/21dρ=1(1+r2νσ2)ν/2

Finally, the probability density function (PDF) of the magnitude may be derived:

f(r)=F(r)=rσ2(1+r2νσ2)ν/21

In the limit as ν, the Rayleigh distribution is recovered because:

limν(1+r2νσ2)ν/21=er2/2σ2

Properties

The raw moments are given by:

μj=σj2j/2Γ(1+j2),

where Γ(z) is the gamma function.

The mean of a Rayleigh random variable is thus :

μ(X)=σπ2 1.253 σ.

The standard deviation of a Rayleigh random variable is:

std(X)=(2π2)σ0.655 σ

The variance of a Rayleigh random variable is :

var(X)=μ2μ12=(2π2)σ20.429 σ2

The mode is σ, and the maximum pdf is

fmax=f(σ;σ)=1σe1/20.606σ.

The skewness is given by:

γ1=2π(π3)(4π)3/20.631

The excess kurtosis is given by:

γ2=6π224π+16(4π)20.245

The characteristic function is given by:

φ(t)=1σte12σ2t2π2[erfi(σt2)i]

where erfi(z) is the imaginary error function. The moment generating function is given by

M(t)=1+σte12σ2t2π2[erf(σt2)+1]

where erf(z) is the error function.

Differential entropy

The differential entropy is given by[citation needed]

H=1+ln(σ2)+γ2

where γ is the Euler–Mascheroni constant.

Parameter estimation

Given a sample of N independent and identically distributed Rayleigh random variables xi with parameter σ,

σ2^=12Ni=1Nxi2 is the maximum likelihood estimate and also is unbiased.
σ^12Ni=1Nxi2 is a biased estimator that can be corrected via the formula
σ=σ^Γ(N)NΓ(N+12)=σ^4NN!(N1)!N(2N)!π[4] =σ^c4(2N+1), where c4 is the correction factor used to unbias estimates of standard deviation for normal random variables.

Confidence intervals

To find the (1 − α) confidence interval, first find the bounds [a,b] where:

  P(χ2N2a)=α/2,P(χ2N2b)=1α/2

then the scale parameter will fall within the bounds

  Nx2bσ2^Nx2a[5]

Generating random variates

Given a random variate U drawn from the uniform distribution in the interval (0, 1), then the variate

X=σ2lnU

has a Rayleigh distribution with parameter σ. This is obtained by applying the inverse transform sampling-method.

  • RRayleigh(σ) is Rayleigh distributed if R=X2+Y2, where XN(0,σ2) and YN(0,σ2) are independent normal random variables.[6] This gives motivation to the use of the symbol σ in the above parametrization of the Rayleigh density.
  • The magnitude |z| of a standard complex normally distributed variable z is Rayleigh distributed.
  • The chi distribution with v = 2 is equivalent to the Rayleigh Distribution with σ = 1: R(σ)σχ2 .
  • If RRayleigh(1), then R2 has a chi-squared distribution with 2 degrees of freedom: [Q=R(σ)2]σ2χ22 .
  • If RRayleigh(σ), then i=1NRi2 has a gamma distribution with parameters N and 12σ2
    [Y=i=1NRi2]Γ(N,12σ2).
  • The Rice distribution is a noncentral generalization of the Rayleigh distribution: Rayleigh(σ)=Rice(0,σ).
  • The Weibull distribution with the shape parameter k = 2 yields a Rayleigh distribution. Then the Rayleigh distribution parameter σ is related to the Weibull scale parameter according to λ=σ2.
  • If X has an exponential distribution XExponential(λ), then Y=XRayleigh(1/2λ).
  • The half-normal distribution is the one-dimensional equivalent of the Rayleigh distribution.
  • The Maxwell–Boltzmann distribution is the three-dimensional equivalent of the Rayleigh distribution.

Applications

An application of the estimation of σ can be found in magnetic resonance imaging (MRI). As MRI images are recorded as complex images but most often viewed as magnitude images, the background data is Rayleigh distributed. Hence, the above formula can be used to estimate the noise variance in an MRI image from background data.[7] [8]

The Rayleigh distribution was also employed in the field of nutrition for linking dietary nutrient levels and human and animal responses. In this way, the parameter σ may be used to calculate nutrient response relationship.[9]

In the field of ballistics, the Rayleigh distribution is used for calculating the circular error probable—a measure of a gun's precision.

In physical oceanography, the distribution of significant wave height approximately follows a Rayleigh distribution.[10]

See also

References

  1. "The Wave Theory of Light", Encyclopedic Britannica 1888; "The Problem of the Random Walk", Nature 1905 vol.72 p.318
  2. 2.0 2.1 Papoulis, Athanasios; Pillai, S. (2001) Probability, Random Variables and Stochastic Processes. ISBN 0073660116, ISBN 9780073660110 [page needed]
  3. Röver, C. (2011). "Student-t based filter for robust signal detection". Physical Review D 84 (12): 122004. doi:10.1103/physrevd.84.122004. Bibcode2011PhRvD..84l2004R. 
  4. Siddiqui, M. M. (1964) "Statistical inference for Rayleigh distributions", The Journal of Research of the National Bureau of Standards, Sec. D: Radio Science, Vol. 68D, No. 9, p. 1007
  5. Siddiqui, M. M. (1961) "Some Problems Connected With Rayleigh Distributions", The Journal of Research of the National Bureau of Standards; Sec. D: Radio Propagation, Vol. 66D, No. 2, p. 169
  6. Hogema, Jeroen (2005) "Shot group statistics"
  7. Sijbers, J.; den Dekker, A. J.; Raman, E.; Van Dyck, D. (1999). "Parameter estimation from magnitude MR images". International Journal of Imaging Systems and Technology 10 (2): 109–114. doi:10.1002/(sici)1098-1098(1999)10:2<109::aid-ima2>3.0.co;2-r. 
  8. den Dekker, A. J.; Sijbers, J. (2014). "Data distributions in magnetic resonance images: a review". Physica Medica 30 (7): 725–741. doi:10.1016/j.ejmp.2014.05.002. PMID 25059432. 
  9. Ahmadi, Hamed (2017-11-21). "A mathematical function for the description of nutrient-response curve". PLOS ONE 12 (11): e0187292. doi:10.1371/journal.pone.0187292. ISSN 1932-6203. PMID 29161271. Bibcode2017PLoSO..1287292A. 
  10. "Rayleigh Probability Distribution Applied to Random Wave Heights". United States Naval Academy. https://www.usna.edu/NAOE/_files/documents/Courses/EN330/Rayleigh-Probability-Distribution-Applied-to-Random-Wave-Heights.pdf.