Skip to content
Omnikalc

Rayleigh distribution calculator: probabilities and quantiles from the scale parameter

Enter the scale parameter and a value to get the Rayleigh CDF, the density, the mean, the median, the standard deviation and any quantile.

Updated on
Your inputs

Value out of range

Value out of range

%

Value out of range

Results

Probability of a value of x or less (CDF)

72.196 %

Probability density at x
0.08897
Probability of a value above x
27.804 %
Mean
6.2666
Median
5.8871
Mode
5.0000
Standard deviation
3.2757
Value not exceeded with the chosen probability
12.2387

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.

The Weibull distribution calculator generalizes the Rayleigh with a free shape parameter, and the normal distribution calculator covers the components it comes from.

Frequently asked questions

What is the Rayleigh distribution?

It is the distribution of the length of a two-dimensional vector whose two components are independent, zero-mean normal variables with the same standard deviation σ. It describes wind speed, wave height, radio signal fading and the distance of a random walker or a dart from a target.

What does the scale parameter σ mean?

σ is the standard deviation of each of the two normal components, and it is also the mode of the Rayleigh distribution, the value where the density peaks. The mean is about 1.25 σ and the standard deviation about 0.655 σ.

How is it related to the Weibull and exponential distributions?

The Rayleigh distribution is a Weibull distribution with a shape parameter of 2. If X is Rayleigh, then X² follows an exponential distribution. Wind energy studies often use the Rayleigh distribution as a simple model of wind speed when only the mean is known.

How do I estimate σ from data?

The maximum likelihood estimate is the square root of the mean of the squared observations divided by 2. If you only know the mean m, then σ is about m ÷ 1.2533, which is m ÷ √(π/2). Check that the data are positive and skewed to the right.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.