Continuous distribution
Rayleigh distribution
The distance from the origin of a point whose two coordinates are independent normals with mean 0 and standard deviation : the miss distance of a shot, a GPS error, the amplitude of radio noise or of ocean waves.
Rayleigh probability calculator
P(X ≤ 1.2) = 0.513248
At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.
CDF
mean 1.253 · variance 0.4292 · sd 0.6551 · mode 1 · entropy 0.942 nats
Formulas
| Parameters |
|
|---|---|
| Support | |
| CDF | |
| Mean | |
| Variance | |
| Mode | |
| MGF | |
| Entropy |
Worked example
A GPS fix has independent errors of standard deviation 3 m east-west and north-south. How often is it more than 5 m off?
The distance is Rayleigh(3): , one fix in four. answer checked by code
How it relates to others
- Special case← Weibull: Weibull() is Rayleigh(). checked by code
- Transformation← Normal: If are independent Normal(), is Rayleigh(). checked by code
- Special case← Rice: Rice() is Rayleigh(). checked by code
All the relationships, as a diagram →
In Python
from scipy import stats
import numpy as np
X = stats.rayleigh(scale=1)
X.pdf(1) # f(1) = 0.6065
X.cdf(1) # P(X ≤ 1) = 0.3935
X.mean(), X.var() # 1.253, 0.4292
X.ppf(0.95) # 95th percentile
X.rvs(size=10, random_state=0)
rng = np.random.default_rng(0)
rng.rayleigh(scale=1, size=10)Choosing between this and its neighbours? Which distribution for measurements and errors?