Cauchy Distribution Calculator
Compute location-scale Cauchy probabilities and density where the mean is undefined.
What it does
The Cauchy distribution looks bell shaped at a glance but behaves very differently from a normal curve. Its tails are so heavy that the average of repeated samples does not settle down, and neither a mean nor a variance exists. The location parameter is the centre and the median instead.
It arises naturally as the ratio of two independent normal variables and in resonance problems where a driving frequency approaches a natural frequency. Physicists sometimes call it the Lorentz or Breit Wigner distribution.
This page asks for a location and a positive scale, then returns cumulative probability, survival probability, an interval chance or the density at a point. The standard Cauchy has location zero and scale one.
Because the moments are undefined, the tool reports the median rather than a mean. That is not a limitation of the calculation, it is a defining property of the distribution and a reason to be careful when summarizing such data.
How to use
- Choose whether you want a cumulative, survival, interval or density result.
- Enter the value x you are evaluating.
- For an interval, add a second value at or above x.
- Enter the location, which is the centre and median.
- Enter a positive scale that sets the spread.
- Read the result as a decimal and a percent where appropriate.
Formula
- x0
- Location parameter in the same units as x, equal to the median.
- gamma
- Positive scale parameter in the same units as x.
- F(x)
- Cumulative probability that the variable is at most x.
- f(x)
- Density at x, which is not itself a probability.
The survival probability is one minus the cumulative value. Subtracting two cumulative values gives an interval chance. The mean is undefined because the integral over the tails does not converge, so no standard deviation is reported.
Worked example
Example: standard Cauchy at x = 1
Location 0, scale 1 and x = 1, asking for the probability of a value at most 1.
- Standardize: (x - x0) / gamma = (1 - 0) / 1 = 1.
- atan(1) is PI / 4, so the cumulative value is 0.5 + 0.25 = 0.75.
- Density: 1 / (PI x 1 x (1 + 1 squared)) = 1 / (2 PI) = 0.1592.
- The median equals the location, which is 0.
- Tool shows probability 0.7500 (75.00 %), density 0.1592 and median 0.
Reference table
| Value x | P(X <= x) | Density |
|---|---|---|
| 0 | 0.5000 (50.00 %) | 0.3183 |
| 1 | 0.7500 (75.00 %) | 0.1592 |
| 3 | 0.8976 (89.76 %) | 0.0318 |
Limits
- Has no finite mean, variance or higher moments.
- Averages of samples are not reliable estimates of the centre.
- Assumes the heavy tailed shape is appropriate for the data.
- Extreme values should not be discarded as errors without checking.
Common mistakes
- Reporting the location as if it were a mean.
- Using a normal distribution when the tails are clearly heavier.
- Treating the density at x as the probability of an exact value.
- Forgetting that the scale must be positive.
- Applying a standard deviation to summarize the spread.
Try it yourself
Quick checks. Answers sit tucked under each question.
Standard Cauchy, chance of a value between -1 and 1?
0.5000 (50.00 %), from 0.75 minus 0.25.
Standard Cauchy, chance of a value at most 3?
0.8976 (89.76 %).
What is the median when the location is 0?
0. The location parameter is the median, and no mean is defined.
Questions
Why is there no mean?
The tail integrals do not converge, so the expected value is undefined rather than infinite in a useful sense.
What does the scale mean?
It sets the width of the curve. Doubling the scale doubles the distance between corresponding quantiles.
Where does this distribution appear?
In resonance physics, in ratios of normal variables and in robust statistics as a heavy tailed alternative.
Is it the same as the Lorentz distribution?
Yes. Lorentz and Breit Wigner are common names in physics for the same family.
Can I average Cauchy observations?
The sample average does not converge to the centre as sample size grows. Use the sample median instead.
How do I read a density value?
It is the height of the curve at a point. Probabilities come from areas under the curve over an interval.
Sources
- NIST and SEMATECH e-Handbook, Cauchy Distribution
- University of Southern California, Notes About Cauchy Distribution