Many quantities that combine two random errors follow a Rayleigh distribution. The Rayleigh distribution calculator takes the scale parameter σ, a value x and a probability, and gives the CDF, the probability density, the probability above x, the mean, the median, the mode, the standard deviation and the quantile.
How the calculation works
- Enter the scale parameter σ of the Rayleigh distribution. It is also the mode, the most likely value.
- Enter a value x to get the probability of a result of x or less, CDF = 1 − e^(−x² ÷ 2σ²), and the probability density at x, f(x) = (x ÷ σ²) × e^(−x² ÷ 2σ²).
- Enter a probability to find the value that is not exceeded with that probability: x = σ × √(−2 ln(1 − p)).
- The calculator also gives the mean σ√(π/2), the median σ√(2 ln 2) and the standard deviation σ√((4 − π)/2).
Example
Wind speeds follow a Rayleigh distribution with σ = 5 m/s. The chance that the speed is 8 m/s or less is 1 − e^(−64 ÷ 50) = 72.20 %, so the chance of a higher speed is 27.80 %. The mean is 6.267 m/s, the median 5.887 m/s and the standard deviation 3.276 m/s. The speed that is not exceeded 95 % of the time is 12.24 m/s.
Why it matters
Engineers use the Rayleigh distribution for wind speed, ocean wave heights, signal amplitude in fading channels and positioning errors. It gives closed formulas, so quantiles and probabilities are easy to compute.
Good to know
The Rayleigh model assumes that the two underlying components are independent, centered and equally spread. Real data, such as wind at a given site, often fit better with a Weibull distribution with another shape. Check the fit before relying on the tails.
Related tools
The Weibull distribution calculator generalizes the Rayleigh with a free shape parameter, and the normal distribution calculator covers the components it comes from.