Chapter 13: Rayleigh Distribution

1. What is the Rayleigh distribution really?

The Rayleigh distribution describes the magnitude (absolute value / length) of a two-dimensional random vector whose components are independent normal random variables with zero mean and equal variance.

In simpler words:

If you have two independent normal random variables X ~ N(0, σ²) and Y ~ N(0, σ²), then the distance from the origin R = √(X² + Y²) follows a Rayleigh distribution with scale parameter σ.

Key intuition (say this sentence out loud):

Rayleigh distribution = distribution of the distance from origin in 2D when you add two independent Gaussian noises with same variance.

This situation appears very frequently when you measure amplitude or envelope of a signal that consists of many small random reflections / contributions.

2. The most important properties (write these down)

Parameter Symbol Meaning / Formula
Scale parameter σ Controls spread (σ > 0)
Support x ≥ 0
Probability density f(x) = (x / σ²) × exp(−x² / (2σ²)) for x ≥ 0
Cumulative (CDF) F(x) = 1 − exp(−x² / (2σ²))
Mean E[R] = σ × √(π/2) ≈ 1.2533 σ
Variance Var(R) = (4−π)/2 × σ² ≈ 0.4292 σ²
Mode σ (the peak is exactly at σ)
Median σ × √(ln 2) ≈ 1.177 σ
Most probable value σ

Very useful rule of thumb:

  • About 63% of values are below σ × √(ln 4) ≈ 1.177σ (median)
  • The mean is roughly 1.25σ
  • Standard deviation is roughly 0.655σ

3. Generating Rayleigh random numbers in NumPy / SciPy

Python

Alternative way using NumPy (very educational):

Python

4. Visualizing Rayleigh distribution (very important)

Python

What you should always notice:

  • Always starts at 0 when x=0
  • Has a peak (mode) exactly at σ
  • Never negative values
  • Right-skewed, but less skewed than exponential
  • Larger σ → distribution stretches to the right
  • CDF always starts at 0 and approaches 1 smoothly

5. Real-world situations where Rayleigh appears naturally

Domain Typical use of Rayleigh distribution
Wireless communications (fading) Magnitude of complex Gaussian fading channel (Rayleigh fading)
Radar / sonar Amplitude of noise / target echo in non-coherent detection
Acoustics / audio processing Envelope of narrowband Gaussian noise
MRI / medical imaging Noise magnitude in magnitude images
Wind speed modeling Speed of wind (often Rayleigh or Weibull)
Line-of-sight + multipath signals Received signal strength when no dominant path
Optical scattering Intensity of scattered light

Most famous appearanceRayleigh fading in wireless communications

In mobile communication, the received signal amplitude often follows Rayleigh when there is no line-of-sight path and many small reflections arrive from different directions.

6. Realistic code patterns you will actually write

Pattern 1 – Simulate Rayleigh fading channel coefficients

Python

Pattern 2 – Simulate signal + Rayleigh fading + noise

Python

Pattern 3 – Probability that amplitude exceeds a threshold

Python

Summary – Rayleigh Distribution Quick Reference

Property Value / Formula
Shape Right-skewed, peak at σ, no left tail
Defined by scale parameter σ (σ > 0)
Mean σ × √(π/2) ≈ 1.2533 σ
Variance (4−π)/2 × σ² ≈ 0.4292 σ²
Mode σ (peak exactly at σ)
Median σ × √(ln 2) ≈ 1.177 σ
Support x ≥ 0
PDF (x / σ²) exp(−x² / (2σ²)) for x ≥ 0
CDF 1 − exp(−x² / (2σ²))
NumPy / SciPy scipy.stats.rayleigh.rvs(scale=σ, size=…)
Most common use cases Signal envelope, fading channels, radar cross-section, magnitude of 2D Gaussian

Final teacher messages

  1. Whenever you are looking at the magnitude / amplitude / envelope of a signal that comes from two independent Gaussian components → think Rayleigh.
  2. Rayleigh = special case of Rice distribution when there is no line-of-sight component (non-centrality = 0).
  3. Rayleigh fading is one of the most famous applications — you will see it constantly if you work in wireless communications or signal processing.

Would you like to continue with any of these next?

  • Rayleigh vs Rician distribution (when there is a dominant path)
  • How to estimate σ from real data
  • Rayleigh fading simulation for communication systems
  • Realistic mini-project: simulate signal strength + fading + noise
  • Comparing Rayleigh with exponential, chi-square, gamma

Just tell me what you want to explore next! 😊

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *