Rayleigh Distribution Calculator
- The Rayleigh distribution with scale sigma = 2 describes the magnitude of a two-dimensional random walk - wind speeds, wave heights and fading radio signals all follow it.
- Its CDF is closed-form: P(X <= 3) = 1 - exp(-3^2 / (2 x 2^2)) = 0.6753, and the density there is 0.2435.
- The most likely single value is the mode, exactly sigma = 2; the mean sits higher at sigma x sqrt(pi / 2) = 2.5066 because the long right tail pulls it up.
- The median is 2.3548 and the variance is (4 - pi) / 2 x sigma^2 = 1.7168 - everything about a Rayleigh is pinned to the one scale parameter.
The Rayleigh Distribution Calculator computes probabilities and summary values for a variable that follows the Rayleigh distribution, which is defined by a single scale parameter, sigma. Enter sigma and a value of interest, and the page returns the cumulative probability P(X <= x) along with the mean and median. For example, with sigma 2, P(X <= 3) = 0.6753, the mean is 2.5066 and the median 2.3548. The calculator also reports the mode, which is exactly sigma and needs no calculation. With sigma 1, P(X <= 1) = 0.3935, showing that most of the probability sits above the mode. A wind example makes the output concrete: with sigma 5, P(X <= 8) = 0.7220, so gusts above 8 occur about 27.8% of the time.
The method behind these results is the standard treatment of the Rayleigh distribution in probability and statistics, so the probabilities, mean, median and mode follow directly from the distribution's definition rather than from an approximation chosen for this page. This page shows the formula, step-by-step workings, worked examples and sources, so you can check each number yourself and see how sigma drives every result. That transparency matters when a single parameter sets the whole shape of the distribution: the same sigma that fixes the mode at exactly sigma also determines the cumulative probability, the mean and the median. Whether you are working through a homework problem or interpreting wind gust data, the calculator and the workings together let you verify the answer and understand where it comes from.
Worked examples
Sigma 2 at x = 3
(2 · 3)
| P(X <= x) | 0.6753 |
| PDF at x | 0.2435 |
| Mean | 2.5066 |
| Median | 2.3548 |
| Mode | 2 |
| Variance | 1.7168 |
Sigma 1 at x = 1
(1 · 1)
| P(X <= x) | 0.3935 |
| PDF at x | 0.6065 |
| Mean | 1.2533 |
| Median | 1.1774 |
| Mode | 1 |
| Variance | 0.4292 |
Sigma 5 at x = 8 (a gusty wind case)
(5 · 8)
| P(X <= x) | 0.7220 |
| PDF at x | 0.0890 |
| Mean | 6.2666 |
| Median | 5.8871 |
| Mode | 5 |
| Variance | 10.7301 |
How Rayleigh probabilities are calculated
The Rayleigh distribution has a closed-form cumulative distribution function, which means a rayleigh distribution calculator does not need to approximate anything. For a scale parameter sigma, the probability that a value X falls at or below a given point x is 1 - exp(-x^2 / (2 sigma^2)). That single expression is the engine behind every probability the tool reports: plug in sigma and x, and the result comes back directly.
A worked example makes the formula concrete. Take sigma 2 and x = 3. The exponent becomes -3^2 / (2 times 2^2), which is -9/8. The CDF is then 1 - exp(-9/8), and that works out to 0.6753. So with sigma 2, P(X <= 3) = 0.6753: roughly two-thirds of the distribution lies at or below 3. The same setting gives a mean of 2.5066 and a median of 2.3548, so the value 3 sits comfortably above the center of the distribution, which is consistent with a probability above one-half.
One feature of the Rayleigh shape is worth noting because it surprises people. A Rayleigh variable's most likely value is exactly sigma, so the mode needs no calculation at all. Yet the probability below the mode is not especially large. With sigma 1, P(X <= 1) = 0.3935, which means most of the probability sits above the mode. The distribution is skewed to the right: values pile up near sigma, but a long upper tail carries a substantial share of the total probability. Any probability the calculator returns should be read with that asymmetry in mind.
The formula scales to practical settings without changing form. For wind with sigma 5, P(X <= 8) = 0.7220. The complement, 1 minus 0.7220, is about 0.278, so gusts above 8 occur about 27.8% of the time. That complement step is how the same closed-form CDF answers "above" questions as easily as "below" ones: compute the probability at or below the threshold, then subtract from one.
Because the CDF is exact and closed-form, the only inputs that matter are sigma and the value x. Change either one and the exponent changes, so the probability updates immediately. That is why a calculator built on this formula can return results for any sigma and any non-negative x, with no tables or iteration involved.
Mode, median and mean in that order
The three summaries of a Rayleigh distribution line up in a fixed order: mode first, then median, then mean. With sigma 2, that stack reads 2, then 2.3548, then 2.5066. Each step to the right is a direct consequence of the right-skewed shape, and a rayleigh distribution calculator will return all three side by side so you can see the spacing for yourself.
The mode is the easy one. A Rayleigh variable's most likely value is exactly sigma, so the mode needs no calculation at all. At sigma 2 the peak of the curve sits at 2. That is the value the distribution is built around, and it is the leftmost of the three summaries because the long tail pulls the other two away from it.
The median comes next, at 2.3548 when sigma is 2. Half of all outcomes fall below that value and half above. Notice how far it has already drifted from the mode: the extra 0.3548 is the tail's doing. Because the distribution stretches to the right rather than the left, the point that splits the probability in half must move right of the peak to compensate for the thin but long upper tail.
The mean is furthest right, at 2.5066 for sigma 2. It is the balance point of the shape, and a tail reaching toward large values drags that balance point past the median. The gaps grow as you move along the stack: 0.3548 from mode to median, then a further 0.1518 from median to mean. That widening pattern is the signature of right skew, and it is why the mean is never the right summary to quote on its own for this distribution.
The same skew shows up in cumulative probabilities. With sigma 1, P(X <= 1) = 0.3935, so most of the probability sits above the mode. At sigma 2, P(X <= 3) = 0.6753, meaning roughly a third of the probability lies beyond 3 even though the mode is only 2. The wind example makes the practical point: with sigma 5, P(X <= 8) = 0.7220, so gusts above 8 occur about 27.8% of the time. A summary anchored only at the mode would badly understate how often the larger values arrive.
- Mode = sigma exactly: 2 when sigma is 2 — no calculation needed.
- Median = 2.3548 at sigma 2, pushed right of the peak by the long upper tail.
- Mean = 2.5066 at sigma 2, the balance point and the furthest right of the three.
- Mode to median gap 0.3548; median to mean gap 0.1518 — the widening stack that marks a right-skewed shape.
Wind, waves and fading signals
Many natural quantities are best understood as the length of a two-dimensional random walk. Picture a point wandering randomly on a flat plane, one step in a horizontal direction and one in a vertical direction, each drawn from a bell-shaped distribution. The distance from the starting point to where the point ends up follows a Rayleigh distribution. That single picture explains why the same curve shows up in fields that seem to have nothing to do with each other: wind speeds, ocean wave heights and the fading of radio signals.
In wind engineering, the horizontal wind can be treated as two independent components, and the resulting speed is Rayleigh. The shape has a built-in consequence: the most likely value is exactly sigma, so the mode needs no calculation at all. With sigma 1, P(X <= 1) = 0.3935, which means most of the probability sits above the mode. That is a useful warning against reading the peak of the curve as a typical value. For wind with sigma 5, P(X <= 8) = 0.7220, so gusts above 8 occur about 27.8% of the time. Numbers like these are what a rayleigh distribution calculator is for: rather than eyeballing the curve, you enter sigma and read off the probability of exceeding a threshold.
Wave heights follow the same logic. A sea surface rising and falling in two directions produces a wave height whose distribution has the Rayleigh shape, so the statistics of extreme waves inherit the mode-at-sigma property and the long upper tail. The same applies to the envelope of a fading radio channel: when a transmitted signal arrives by many scattered paths, the received amplitude behaves like the length of that random walk, and the Rayleigh fading model describes how often the signal drops below a usable level.
The worked values show how much the scale parameter matters. With sigma 2, P(X <= 3) = 0.6753, the mean is 2.5066 and the median 2.3548. Notice that the mean sits above the median, which sits above the mode at 2, the familiar right-skewed pattern. Changing sigma stretches or compresses the whole curve without changing its shape, so one parameter controls both the typical size of the quantity and the frequency of extremes. That is why sigma is the number to get right before trusting any probability from the model.
Estimating sigma from data
If you have measured data and want the sigma that describes it, the Rayleigh distribution gives you two easy routes: work back from the average, or work back from the middle value. A rayleigh distribution calculator usually asks for sigma directly, so these conversions let you feed it a number you actually measured in the field. The mean of a Rayleigh variable is sigma times 1.2533, so dividing a measured mean by 1.2533 returns sigma. The median is sigma times 1.1774, so dividing a measured median by that factor gives an independent estimate. If the two answers land close together, your data is at least roughly Rayleigh-shaped; if they pull apart, treat sigma as a rough summary rather than a precise fit.
A worked check keeps the arithmetic honest. With sigma 2, the mean is 2.5066 and the median 2.3548. Divide 2.5066 by 1.2533 and you are back at 2; divide 2.3548 by 1.1774 and you are back at 2 as well. The mode gives a third, even simpler estimate: a Rayleigh variable's most likely value is exactly sigma, so the peak of your histogram is a direct read of sigma with no calculation at all. That is worth knowing before you reach for a formula, though the peak of a small sample can be noisy, so the mean and median routes are usually steadier.
The variance offers a sanity check on the same scale. For a Rayleigh variable the variance is (4 - pi) / 2 times sigma squared, which equals 1.7168 when sigma is 2. Square the standard deviation of your measurements and compare it with 1.7168 times your estimated sigma squared. A large mismatch suggests the spread of your data does not match the shape the Rayleigh model assumes, perhaps because of a shifted origin, a mixture of two conditions, or a few extreme outliers. Catching that early is better than reporting a sigma that quietly misrepresents the data.
One caution applies to all three routes: they assume the data really is Rayleigh. With sigma 1, P(X <= 1) = 0.3935, so most of the probability sits above the mode. That lopsided shape means a handful of large values can drag the mean upward while leaving the median almost untouched, which is exactly why comparing the two estimates is useful. With sigma 2, P(X <= 3) = 0.6753, so roughly two-thirds of observations fall below 3. If your measured proportion below a known threshold disagrees badly with that kind of figure, the sigma you backed out is suspect.
Wind data shows how these estimates translate into practical statements. For wind with sigma 5, P(X <= 8) = 0.7220, so gusts above 8 occur about 27.8% of the time. Estimate sigma from your own mean or median, then check whether the share of your observations above a chosen threshold matches what the model predicts. When it does, you can report sigma with reasonable confidence; when it does not, the mismatch is telling you something about the data that a single number cannot capture.
FAQs
What is the Rayleigh distribution used for?
The Rayleigh distribution describes magnitudes built from two perpendicular random components. Common uses include wind speeds, wave heights and fading radio signal strength. In each case, the overall size comes from combining two independent random parts at right angles, which is exactly the situation the Rayleigh model is designed to describe.
What is the mode of a Rayleigh distribution?
The mode is exactly sigma. In the worked example, the mode is 2, where the mean is 2.5066 and the median is 2.3548. So the peak of the density sits at sigma, below both the mean and the median, which shows the distribution's right skew.
What is P(X <= 3) when sigma is 2?
When sigma is 2, P(X <= 3) is 0.6753. This comes from 1 - exp(-9 / 8). The calculation plugs the value 3 and sigma 2 into the Rayleigh cumulative distribution formula, giving about a 67.5 percent chance that a value falls at or below 3.
How is Rayleigh related to the normal distribution?
If X and Y are independent normal variables with standard deviation sigma, then the length sqrt(X^2 + Y^2) follows a Rayleigh distribution with that same sigma. This is why the Rayleigh model fits magnitudes formed from two perpendicular random components, such as the combined effect of two independent normal sources.
What is the mean of a Rayleigh distribution?
The mean equals sigma times sqrt(pi / 2). At sigma 2, that gives 2.5066. This places the mean above both the mode at 2 and the median at 2.3548, reflecting the long right tail of the Rayleigh distribution.
Is Rayleigh a special case of Weibull?
Yes. A Weibull distribution with shape parameter 2 is a Rayleigh distribution. That is why wind engineers move between them, since the Rayleigh form is just the Weibull with a fixed shape of 2, making the two models easy to relate in practice.