Rayleigh Distribution Calculator - PDF, CDF & Moments
Use this rayleigh distribution calculator to turn a scale parameter sigma into the PDF, CDF, mean, median, mode, variance, and standard deviation.
Rayleigh Distribution Calculator
Results
What Is a Rayleigh Distribution?
A rayleigh distribution is a continuous probability distribution for non-negative values that arises whenever a quantity is built from the sum of squares of two independent, equally spread normal variables. The primary keyword names the family exactly: it is defined by a single positive scale parameter sigma that sets how spread out the outcomes are.
- • Wind speed modeling: Engineers model the magnitude of wind velocity from independent north and east components using this distribution.
- • Radar and signal detection: The envelope of a narrowband signal plus noise follows the curve, so it describes target return strength.
- • Manufacturing tolerance: When a part's position drifts in two perpendicular directions, the distance from nominal often fits the same model.
- • Wave and ocean height: Significant wave height statistics are frequently summarized with it for surface elevation.
Unlike a normal distribution, which is symmetric and allowed to take negative values, this curve is one-sided and starts at zero. Its density climbs from zero, peaks at the mode equal to sigma, and then tapers off with a long right tail.
Because there is only one shape parameter, the entire distribution — every probability, moment, and quantile — is determined once you choose sigma. That makes the model a compact fit for phenomena that are bounded below by zero and grow from a single source of spread.
If your data are one-sided but lack the squared-root growth of this curve, the exponential distribution calculator models a constant hazard rate instead.
How the Rayleigh Distribution Calculator Works
The calculator takes your scale parameter sigma and a value x, then applies the closed-form rayleigh distribution formulas for the probability density and cumulative probability, plus the standard moment formulas.
- x: The non-negative point at which you evaluate the density and cumulative probability (same units as σ).
- σ (sigma): The positive scale parameter; the density's peak and all moments scale directly with it.
- e and π: The mathematical constants used in the exponential and moment formulas.
The cumulative formula gives P(X ≤ x) directly; the survival probability P(X > x) is simply 1 minus that value. Both follow from a single exponential term, so changing sigma rescales the whole curve without changing its shape.
The quantile (inverse CDF) form, x = σ·√(−2·ln(1−p)), lets you read the value that cuts off a chosen probability p. It is the mirror of the cumulative formula and uses the same sigma.
Worked example: σ = 1, x = 1
Enter sigma = 1 and x = 1.
z = 1² / (2·1²) = 0.5. pdf = (1/1)·e^(−0.5) = 0.6065. cdf = 1 − e^(−0.5) = 0.3935.
Probability density f(1) = 0.6065 and cumulative P(X ≤ 1) = 0.3935.
About 39% of outcomes fall at or below x = 1 when the scale is 1, and the density there is 0.6065.
According to Wikipedia - Rayleigh distribution, the model has probability density f(x; σ) = (x/σ²)·exp(−x²/(2σ²)) and cumulative distribution F(x; σ) = 1 − exp(−x²/(2σ²)) for x ≥ 0.
To contrast a one-sided curve with a flat one, the uniform distribution calculator spreads constant probability across an interval instead of rising to a peak.
Key Concepts Explained
Four ideas carry most of the intuition behind the model: its moments, its peak, and how sigma controls everything.
Mean σ·√(π/2)
The expected value is about 1.2533·σ. It sits above the mode because the long right tail pulls the average up.
Median σ·√(2·ln 2)
The median is about 1.1774·σ, the point where half of outcomes fall below and half above.
Mode = σ
The density peaks exactly at sigma, the most likely single value and the place where the curve turns over.
Variance σ²·(4−π)/2
Spread equals sigma squared times (4−π)/2, about 0.4292·σ², giving a standard deviation of about 0.6551·σ.
Because mode, median, and mean are all simple multiples of sigma, you can estimate sigma straight from any one of them: divide the observed peak or average by its factor.
The standard deviation grows with sigma, so a larger scale parameter does not just shift the curve, it widens the cloud of possible values around the peak.
Once you have a sample of Rayleigh values, the standard deviation calculator turns them into an empirical spread you can compare against the theoretical 0.6551·σ.
How to Use This Calculator
Follow these steps to read off any probability or moment from this distribution in seconds.
- 1 Enter the scale parameter σ: Type your positive sigma. This is the single number that defines the whole distribution's spread and peak.
- 2 Enter the value x: Type the non-negative x at which you want the density and cumulative probability. Use 0 or above.
- 3 Read the density and cumulative: The results panel shows f(x), P(X ≤ x), and the survival P(X > x) computed from your two inputs.
- 4 Read the moments: The same panel reports mean, median, mode, variance, and standard deviation derived from sigma alone.
- 5 Adjust and compare: Change sigma or x and the outputs update immediately so you can test scenarios side by side.
Practical example: set σ = 2 and x = 3. The tool returns pdf ≈ 0.2435, cdf ≈ 0.6753 (about 68% of outcomes are at or below 3), and the mean ≈ 2.5066.
To summarize an actual measured dataset rather than a theoretical curve, the statistics calculator computes mean, spread, and shape from your raw numbers.
Benefits of Using This Calculator
A dedicated Rayleigh tool removes hand-computation errors and makes the single-parameter structure obvious.
- • Exact closed-form results: Density, CDF, and every moment come from the exact formulas, so there is no sampling error or approximation drift.
- • On-the-spot scenario testing: Changing sigma or x re-runs the math immediately, which helps compare designs or wind regimes quickly.
- • All moments in one place: Mean, median, mode, variance, and standard deviation are shown together, sparing you from five separate derivations.
- • Clear survival probability: The P(X > x) output answers the exceedance question directly, which is what reliability and wind studies usually need.
- • Teaching and checking: Students can verify homework against the exact numbers and see how sigma stretches the entire curve.
Because the model has only one parameter, the calculator doubles as a what-if tool: a small sigma change visibly moves the mode, median, and mean by their fixed multiples.
Pairing the density with the cumulative view keeps you from confusing 'how likely is this value' with 'how likely is at most this value'.
For combining probabilities across several independent events rather than a single continuous curve, the probability calculator handles the arithmetic for you.
Factors That Affect Your Results
Every output of the curve traces back to one input: the scale parameter sigma. These factors and limits explain where the model holds and where it does not.
Scale parameter σ
Doubling sigma doubles the mode, median, and mean, and quadruples the variance. It is the only driver of shape and spread.
Choice of x
Moving x changes only the density and cumulative outputs; the moments stay fixed because they depend on sigma, not x.
Units of measurement
Sigma and x must share units. A sigma of 5 m/s and an x of 10 m/s are consistent, but mixing metres and seconds breaks the result.
- • The model assumes two equal-variance normal components; when the components differ, a Rice or Weibull model fits better.
- • It is bounded below at zero and always one-sided, so it cannot represent a symmetric or negative-valued quantity the way a normal distribution can.
- • Real samples have estimation error; the theoretical moments here assume sigma is exact, not fitted from noisy data.
Sigma is estimated from data, commonly as the root-mean-square of the two component standard deviations, so its accuracy sets the accuracy of every output.
Wind speed work often uses a Weibull distribution as a more flexible alternative, but the rayleigh distribution is the special equal-shape case and remains a common default.
According to NIST/SEMATECH Engineering Statistics Handbook, the Rayleigh distribution is widely used as a simple model for wind speed because the orthogonal wind components are often approximately normal with equal variance.
When your quantity is bounded between two finite limits rather than from zero to infinity, the beta distribution calculator models proportions and rates on a fixed interval.
Frequently Asked Questions
Q: What is the Rayleigh distribution used for?
A: It models the magnitude of a vector built from two independent normal components with equal spread, so it appears in wind speed analysis, radar signal envelope strength, wave height summaries, and manufacturing position error. Its single scale parameter makes it a compact default when data are non-negative and start at zero.
Q: What is the formula for the Rayleigh distribution PDF?
A: The probability density is f(x; σ) = (x / σ²) · e^(−x² / (2σ²)) for x ≥ 0, where σ is the positive scale parameter. At x = 0 the density is 0, and it rises to a peak exactly at x = σ before tapering off.
Q: How do you find the mean of a Rayleigh distribution?
A: Multiply the scale parameter by the square root of π/2: mean = σ·√(π/2), which is about 1.2533·σ. Because the distribution has a long right tail, the mean sits above the mode at σ.
Q: What is the mode of the Rayleigh distribution?
A: The mode is exactly the scale parameter: mode = σ. This is the most likely single value and the point where the density curve turns over from rising to falling.
Q: How is the Rayleigh scale parameter sigma related to the mean?
A: The mean equals σ·√(π/2), so σ = mean / √(π/2) ≈ mean / 1.2533. Median and standard deviation follow the same fixed multiples, so any one moment recovers sigma and therefore the whole distribution.
Q: When should I use Rayleigh instead of exponential or normal?
A: Use Rayleigh when the quantity is the distance or magnitude from two equal-variance normal components and is bounded at zero, as in wind speed. Use exponential for a constant-hazard one-sided lifetime, and use normal when values can be negative and are symmetric around a centre.