What Is the Rayleigh Distribution?

The Rayleigh distribution is a continuous probability distribution for non-negative random variables. It emerges naturally when you measure the magnitude of a 2D vector whose components follow independent normal distributions with mean zero. Named after 19th-century physicist John William Strutt (Lord Rayleigh), it became prominent in his work on acoustics and wave phenomena.

Mathematically, the Rayleigh distribution is a special case of the Weibull distribution where the shape parameter equals 2. This relationship means many Weibull properties generalise directly. The distribution also connects to the exponential distribution—if you square a Rayleigh-distributed random variable, you obtain an exponential distribution.

Key characteristics:

  • Always non-negative (x ≥ 0)
  • Single parameter σ (scale) controls spread
  • Right-skewed shape with mode at σ
  • Flexible enough for engineering and scientific applications

Mathematical Definition

The Rayleigh distribution is fully determined by its scale parameter σ. Below are the essential functions and moments:

PDF: f(x) = (x/σ²) × exp(−x²/(2σ²))

CDF: F(x) = 1 − exp(−x²/(2σ²))

Mean: μ = σ × √(π/2)

Variance: V = σ² × (4−π)/2

Median: M = σ × √(2 × ln(2))

Mode: σ

  • σ (sigma) — Scale parameter; controls the spread and location of the distribution
  • x — Random variable value; must be non-negative
  • π — Mathematical constant, approximately 3.14159

Applications Across Disciplines

The Rayleigh distribution's natural connection to 2D magnitude problems makes it invaluable across multiple fields:

  • Wind energy and meteorology: Wind speed at a given height often follows a Rayleigh distribution, aiding turbine placement and resource assessments.
  • Hydrodynamics and ocean engineering: Wave amplitudes and significant wave heights in complex sea states frequently exhibit Rayleigh behaviour.
  • Communications and signal processing: Envelope magnitude of narrowband noise in wireless channels obeys Rayleigh statistics, critical for fading channel models.
  • Materials and electrical engineering: Component lifetimes, breakdown voltages in capacitors, and resistor degradation can be modelled using this distribution.
  • Acoustics: Pressure amplitudes and acoustic intensity measurements in reverberant spaces often follow Rayleigh statistics.

Practical Considerations

When working with Rayleigh calculations, keep these points in mind:

  1. Distinguish scale parameter from standard deviation — The scale parameter σ is not the standard deviation. The Rayleigh standard deviation equals σ × √((4−π)/2) ≈ 0.655σ. Confusing these will lead to incorrect probability estimates.
  2. Mode and mean are different — The mode (most likely value) equals σ exactly, but the mean is σ × √(π/2) ≈ 1.253σ. For right-skewed data, always be clear which central tendency you're modelling.
  3. Non-negative support — The Rayleigh distribution has no probability mass below zero. If your data contains negative values, this distribution is inappropriate—consider a normal or folded-normal alternative instead.
  4. Quantile function behaviour — Quantiles increase steeply near probability = 1 (high tails), meaning extreme percentiles are highly sensitive to the scale parameter. Small changes in σ dramatically shift upper quantiles.

How to Use This Calculator

The calculator offers multiple modes to address different analytical needs:

  • Probability mode: Input a value x and scale σ to find P(X ≤ x), P(X < x), P(X ≥ x), or P(X > x). Useful for reliability and risk assessments.
  • PDF / CDF mode: Evaluate the probability density function or cumulative distribution function at a specific point. Export these for plotting.
  • Quantile mode: Given a probability p (between 0 and 1), find the corresponding quantile value. Essential for tolerance design and safety margins.
  • Descriptive statistics mode: Compute mean, median, mode, variance, standard deviation, and skewness in one step. Ideal for data summary and distribution characterisation.
  • Random sampling mode: Generate n independent random samples from a Rayleigh distribution with your chosen σ. Useful for Monte Carlo simulations and robustness testing.

Frequently Asked Questions

When should I use the Rayleigh distribution instead of the normal distribution?

Use Rayleigh when modelling magnitudes or positive quantities arising from 2D vectors, such as wind speed magnitude or signal envelope. The normal distribution allows negative values and is symmetric, making it unsuitable for inherently non-negative phenomena. Rayleigh is right-skewed and always positive, reflecting real physical processes like resultant force magnitude or signal amplitude in narrowband noise.

How do I find the scale parameter σ if I only know the mean?

If the mean μ is known, solve for σ using: σ = μ / √(π/2) ≈ μ / 1.253. Similarly, if the mode is observed, σ equals the mode directly. If variance V is known, use σ = √(2V / (4−π)) ≈ √(2.3V). These conversions are essential when fitting historical data to the Rayleigh model.

What does a high skewness value indicate in a Rayleigh distribution?

The Rayleigh distribution always has a positive skewness of approximately 0.631, independent of σ. This right tail reflects the mathematical form: as x increases, probability density decays exponentially. A skewness of 0.631 means occasional large values are more common than occasional small ones, a hallmark of wave height, wind speed, and component lifetime data.

Can I use this calculator to model data that has some negative values?

No. The Rayleigh distribution has support only on [0, ∞), so it cannot generate or properly model negative observations. If your dataset includes negative values, consider the folded normal distribution or a shifted Rayleigh model. Alternatively, fit the absolute values if the data is naturally symmetric around zero.

How does changing σ affect the distribution's shape?

Increasing σ stretches the distribution rightward, raising both mean (μ ≈ 1.253σ) and variance (V ≈ 2.3σ²). The shape remains right-skewed with mode at σ, but larger σ concentrates less probability near zero and spreads more mass into the right tail. This linear scaling makes σ a pure spread parameter.

What is the relationship between quantile and CDF?

The quantile function is the inverse of the CDF. If the CDF at x equals p, then the p-th quantile equals x. For Rayleigh, CDF = 1 − exp(−x²/(2σ²)). The quantile function solves for x given p, yielding Q(p) = σ × √(−2 × ln(1−p)). Quantiles are essential for setting safety margins and confidence intervals.

More statistics calculators (see all)