| Probability density function |
|
| Cumulative distribution function |
|
| Parameters | <math>\sigma>0\,</math> |
|---|---|
| Support | <math>x\in [0;\infty)</math> |
| Probability density function (pdf) | <math>\frac{x \exp\left(\frac{-x^2}{2\sigma^2}\right)}{\sigma^2}</math> |
| Cumulative distribution function (cdf) | <math>1-\exp\left(\frac{-x^2}{2\sigma^2}\right)</math> |
| Mean | <math>\sigma \sqrt{\frac{\pi}{2 |
| Median | {{{median}}} |
| Mode | {{{mode}}} |
| Variance | {{{variance}}} |
| Skewness | {{{skewness}}} |
| Excess kurtosis | {{{kurtosis}}} |
| Entropy | {{{entropy}}} |
| Moment-generating function (mgf) | {{{mgf}}} |
| Characteristic function | {{{char}}} |
</math>|
median =<math>\sigma\sqrt{\ln(4)}\,</math>|
mode =<math>\sigma\,</math>|
variance =<math>\frac{4 - \pi}{2} \sigma^2</math>|
skewness =<math>\frac{2\sqrt{\pi}(\pi - 3)}{(4-\pi)^{3/2}}</math>|
kurtosis =<math>-\frac{6\pi^2 - 24\pi +16}{(4-\pi)^2}</math>|
entropy =<math>1+\ln\left(\frac{\sigma}{\sqrt{2}}\right)+\frac{\gamma}{2}</math>|
mgf =<math>1+\sigma t\,e^{\sigma^2t^2/2}\sqrt{\frac{\pi}{2}}
\left(\textrm{erf}\left(\frac{\sigma t}{\sqrt{2}}\right)\!+\!1\right)</math>|
char =<math>1\!-\!\sigma te^{-\sigma^2t^2/2}\sqrt{\frac{\pi}{2}}\!\left(\textrm{erfi}\!\left(\frac{\sigma t}{\sqrt{2}}\right)\!-\!i\right)</math>|
}} In probability theory and statistics, the Rayleigh distribution is a continuous probability distribution. It can arise when a two-dimensional vector (e.g. wind velocity) has elements that are normally distributed, are uncorrelated, and have equal variance. The vector’s magnitude (e.g. wind speed) will then have a Rayleigh distribution. The distribution can also arise in the case of random complex numbers whose real and imaginary components are i.i.d. Gaussian. In that case, the modulus of the complex number is Rayleigh-distributed. The Rayleigh probability density function is
- <math>f(x|\sigma) = \frac{x \exp\left(\frac{-x^2}{2\sigma^2}\right)}{\sigma^2}.</math>
The characteristic function is given by:
- <math>\varphi(t)=</math>
- <math>1\!-\!\sigma te^{-\sigma^2t^2/2}\sqrt{\frac{\pi}{2}}\!\left(\textrm{erfi}\!\left(\frac{\sigma t}{\sqrt{2}}\right)\!-\!i\right)</math>
where <math>\operatorname{erfi}(z)</math> is the complex error function. The moment generating function is given by
- <math>M(t)=\,</math>
- <math>1+\sigma t\,e^{\sigma^2t^2/2}\sqrt{\frac{\pi}{2}}
\left(\textrm{erf}\left(\frac{\sigma t}{\sqrt{2}}\right)\!+\!1\right),</math> where <math>erf(z)</math> is the error function. The raw moments are then given by
- <math>\mu_k=\sigma^k2^{k/2}\,\Gamma(1+k/2)\,</math>
where <math>\Gamma(z)</math> is the Gamma function. The moments may be used to calculate: Mean: <math>\sigma \sqrt{\frac{\pi}{2}}</math> Variance: <math>\frac{4-\pi}{2} \sigma^2</math> Skewness: <math>\frac{2\sqrt{\pi}(\pi - 3)}{(4-\pi)^{3/2}}</math> Kurtosis: <math>- \frac{6\pi^2 - 24\pi +16}{(4-\pi)^2}</math>
Parameter estimation
Given N independent and identically distributed Rayleigh random variables with parameter <math>\sigma</math>, the maximum likelihood estimate of <math>\sigma</math> is
- <math>\hat{\sigma}=\sqrt{\frac{1}{2N}\sum_{i=1}^N x_i^2}.</math>
Related distributions
- <math>R \sim \mathrm{Rayleigh}(\sigma)</math> is a Rayleigh distribution if <math>R = \sqrt{X^2 + Y^2}</math> where <math>X \sim N(0, \sigma^2)</math> and <math>Y \sim N(0, \sigma^2)</math> are two independent normal distributions. (This gives motivation to the use of the symbol "sigma" in the above parameterization of the Rayleigh density.)
- If <math>R \sim \mathrm{Rayleigh}(1)</math> then <math>R^2</math> has a chi-square distribution with two degrees of freedom: <math>R^2 \sim \chi^2_2</math>
- If <math>X</math> has an exponential distribution <math>X \sim \mathrm{Exponential}(x|\lambda)</math> then <math>Y=\sqrt{2X\sigma^2\lambda} \sim \mathrm{Rayleigh}(y|\sigma)</math>.
- If <math>R \sim \mathrm{Rayleigh}(\sigma)</math> then <math>\sum_{i=1}^N R_i^2</math> has a gamma distribution with parameters <math>N</math> and <math>2\sigma^2</math>: <math>[Y=\sum_{i=1}^N R_i^2] \sim \Gamma(N,2\sigma^2)</math>.
- The Chi distribution is a generalization of the Rayleigh distribution.
- The Rice distribution is a generalization of the Rayleigh distribution.
- The Weibull distribution is a generalization of the Rayleigh distribution.
- The Maxwell–Boltzmann distribution describes the magnitude of a normal vector in three dimensions.


