Skip to content

RayleighDistribution ​

The Rayleigh distribution with scale σ\sigma — the distribution of the magnitude of a 2D Gaussian vector.

RayleighDistribution(sigma)an inert distribution object — carries σ\sigma, unevaluated.
Typed signatures
TypePackageApplies
(real<0..>) -> distributionstatisticsalways

Domain: Statistics

Details
  • PDF(x)=(x/σ2)e−x2/(2σ2)PDF(x) = (x/\sigma^2)e^{-x^2/(2\sigma^2)} for x≥0x \geq 0.
  • CDF(x)=1−e−x2/(2σ2)CDF(x) = 1-e^{-x^2/(2\sigma^2)}, clamped to 00 below x=0x=0.
  • Mean=σπ/2Mean = \sigma\sqrt{\pi/2}, Variance=(4−π)σ2/2Variance = (4-\pi)\sigma^2/2, both exact.
  • RandomVariate samples via inverse transform: σ−2log⁡U\sigma\sqrt{-2\log U}.

Examples

Basic #
live ↗
InPDF⁡(RayleighDistribution(3),3)\operatorname{PDF}(\mathrm{RayleighDistribution}(3), 3)Out13e\frac{1}{3\sqrt{e}}
live ↗
InCDF⁡(RayleighDistribution(3),3)\operatorname{CDF}(\mathrm{RayleighDistribution}(3), 3)Out1−1e1-\sqrt{\frac{1}{e}}
live ↗
Inmean(RayleighDistribution(3))\mathrm{mean}(\mathrm{RayleighDistribution}(3))Out12(32π)\frac{1}{2}(3\sqrt{2}\sqrt{π})
live ↗
InVariance(RayleighDistribution(3))\mathrm{Variance}(\mathrm{RayleighDistribution}(3))Out9(4−π)2\frac{9(4-π)}{2}
live ↗
Inmedian(RayleighDistribution(3))\mathrm{median}(\mathrm{RayleighDistribution}(3))Out32ln⁡(2)3\sqrt{2}\sqrt{\ln(2)}
About
Examples5
Checked againstWolfram Language 1 agree

See also: ChiDistribution, MaxwellDistribution, PDF, CDF