Supriya Ghosh (Editor)

Rayleigh distribution

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Rayleigh distribution

Parameters
  
scale: σ > 0 {displaystyle sigma >0,}

Support
  
x ∈ [ 0 , + ∞ ) {displaystyle xin [0,+infty )}

PDF
  
x σ 2 e − x 2 / ( 2 σ 2 ) {displaystyle { rac {x}{sigma ^{2}}}e^{-x^{2}/left(2sigma ^{2} ight)}}

CDF
  
1 − e − x 2 / ( 2 σ 2 ) {displaystyle 1-e^{-x^{2}/left(2sigma ^{2} ight)}}

Quantile
  
Q ( F ; σ ) = σ − ln ⁡ [ ( 1 − F ) 2 ] {displaystyle Q(F;sigma )=sigma {sqrt {-ln[(1-F)^{2}]}}}

Mean
  
σ π 2 {displaystyle sigma {sqrt { rac {pi }{2}}}}

In probability theory and statistics, the Rayleigh distribution /ˈrli/ is a continuous probability distribution for positive-valued random variables.

Contents

A Rayleigh distribution is often observed when the overall magnitude of a vector is related to its directional components. One example where the Rayleigh distribution naturally arises is when wind velocity is analyzed into its orthogonal 2-dimensional vector components. 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.

The distribution is named after Lord Rayleigh

Definition

The probability density function of the Rayleigh distribution is

f ( x ; σ ) = x σ 2 e x 2 / ( 2 σ 2 ) , x 0 ,

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

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

for x [ 0 , ) .

Relation to random vector length

Consider the two-dimensional vector Y = ( U , V ) which has components that are Gaussian-distributed, centered at zero, and independent. Then f U ( u ; σ ) = e u 2 / ( 2 σ 2 ) 2 π σ 2 , and similarly for f V ( v ; σ ) .

Let x be the length of Y . It is distributed as

f ( x ; σ ) = 1 2 π σ 2 d u d v e u 2 / ( 2 σ 2 ) e v 2 / ( 2 σ 2 ) δ ( x u 2 + v 2 ) .

By transforming to the polar coordinate system one has

f ( x ; σ ) = 1 2 π σ 2 0 2 π d ϕ 0 d r δ ( r x ) r e r 2 / ( 2 σ 2 ) = x σ 2 e x 2 / ( 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, or when the vector Y follows a bivariate Student-t-distribution.

Properties

The raw moments are given by:

μ k = σ k 2 k 2 Γ ( 1 + k 2 )

where Γ ( z ) is the Gamma function.

The mean and variance of a Rayleigh random variable may be expressed as:

μ ( X ) = σ π 2   1.253 σ

and

var ( X ) = 4 π 2 σ 2 0.429 σ 2

The mode is σ and the maximum pdf is

f max = f ( σ ; σ ) = 1 σ e 1 2 1 σ 0.606

The skewness is given by:

γ 1 = 2 π ( π 3 ) ( 4 π ) 3 2 0.631

The excess kurtosis is given by:

γ 2 = 6 π 2 24 π + 16 ( 4 π ) 2 0.245

The characteristic function is given by:

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

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

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

where erf ( z ) is the error function.

Differential entropy

The differential entropy is given by

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

where γ is the Euler–Mascheroni constant.

Differential equation

The pdf of the Rayleigh distribution is a solution of the following differential equation:

{ σ 2 x f ( x ) + f ( x ) ( x 2 σ 2 ) = 0 f ( 1 ) = exp ( 1 2 σ 2 ) σ 2 }

Parameter estimation

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

σ 2 ^ 1 2 N i = 1 N x i 2 is an unbiased maximum likelihood estimate. σ ^ 1 2 N i = 1 N x i 2 is a biased estimator that can be corrected via the formula σ = σ ^ Γ ( N ) N Γ ( N + 1 2 ) = σ ^ 4 N N ! ( N 1 ) ! N ( 2 N ) ! π

Confidence intervals

To find the (1 − α) confidence interval, first find the two numbers χ 1 2 ,   χ 2 2 where:

  P r ( χ 2 ( 2 N ) χ 1 2 ) = α / 2 , P r ( χ 2 ( 2 N ) χ 2 2 ) = 1 α / 2

then

  N x 2 ¯ χ 2 2 σ ^ 2 N x 2 ¯ χ 1 2

Generating random variates

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

X = σ 2 ln ( 1 U )

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

  • R R a y l e i g h ( σ ) is Rayleigh distributed if R = X 2 + Y 2 , where X N ( 0 , σ 2 ) and Y N ( 0 , σ 2 ) are independent normal random variables. (This gives motivation to the use of the symbol "sigma" in the above parametrization of the Rayleigh density.)
  • The chi distribution with v = 2 is equivalent to the Rayleigh Distribution with σ = 1. I.e., if R R a y l e i g h ( 1 ) , then R 2 has a chi-squared distribution with parameter N , degrees of freedom, equal to two (N = 2)
  • If R R a y l e i g h ( σ ) , then i = 1 N R i 2 has a gamma distribution with parameters N and 2 σ 2
  • The Rice distribution is a generalization of the Rayleigh distribution.
  • 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 .
  • The Maxwell–Boltzmann distribution describes the magnitude of a normal vector in three dimensions.
  • If X has an exponential distribution X E x p o n e n t i a l ( λ ) , then Y = X R a y l e i g h ( 1 / 2 λ ) .
  • 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.

    References

    Rayleigh distribution Wikipedia