Cauchy Distribution Graph Calculator

Cauchy Distribution Graph Calculator

Growing AI Skill PRO

Enter Calculation

Formula

f(x)=1π·Scale b(x−Location a)2+Scale b2f(x) = \frac{1}{\pi} \cdot \frac{{{\text{Scale } b}}}{\left(x - {{\text{Location } a}}\right)^2 + {{\text{Scale } b}}^2}
Usage stats

Advertisement

Results

Probability density f — number of points
101
first value 0.008741 · last value 0.008741 · max 0.454728 · min 0.008741
x Probability density f
-5 0.00874135
-4.9 0.00909457
-4.8 0.00946948
-4.7 0.00986789
-4.6 0.01029177
-4.5 0.01074334
-4.4 0.01122503
-4.3 0.01173956
-4.2 0.01228996
-4.1 0.01287959
-4 0.01351225
-3.9 0.01419216
-3.8 0.01492411
-3.7 0.01571346
-3.6 0.01656631
-3.5 0.01748955
-3.4 0.01849103
-3.3 0.01957969
-3.2 0.02076579
-3.1 0.02206108
-3 0.02347913
-2.9 0.02503561
-2.8 0.02674873
-2.7 0.02863971
-2.6 0.03073337
-2.5 0.03305889
-2.4 0.03565071
-2.3 0.03854964
-2.2 0.0418043
-2.1 0.04547284
-2 0.04962515
-1.9 0.05434559
-1.8 0.05973644
-1.7 0.06592217
-1.6 0.07305473
-1.5 0.08132004
-1.4 0.09094568
-1.3 0.1022096
-1.2 0.11544918
-1.1 0.13106878
-1 0.14954156
-0.9 0.17139763
-0.8 0.19718312
-0.7 0.2273642
-0.6 0.26213755
-0.5 0.30110395
-0.4 0.34279526
-0.3 0.3841671
-0.2 0.42040928
-0.1 0.44563384
0 0.45472841
0.1 0.44563384
0.2 0.42040928
0.3 0.3841671
0.4 0.34279526
0.5 0.30110395
0.6 0.26213755
0.7 0.2273642
0.8 0.19718312
0.9 0.17139763
1 0.14954156
1.1 0.13106878
1.2 0.11544918
1.3 0.1022096
1.4 0.09094568
1.5 0.08132004
1.6 0.07305473
1.7 0.06592217
1.8 0.05973644
1.9 0.05434559
2 0.04962515
2.1 0.04547284
2.2 0.0418043
2.3 0.03854964
2.4 0.03565071
2.5 0.03305889
2.6 0.03073337
2.7 0.02863971
2.8 0.02674873
2.9 0.02503561
3 0.02347913
3.1 0.02206108
3.2 0.02076579
3.3 0.01957969
3.4 0.01849103
3.5 0.01748955
3.6 0.01656631
3.7 0.01571346
3.8 0.01492411
3.9 0.01419216
4 0.01351225
4.1 0.01287959
4.2 0.01228996
4.3 0.01173956
4.4 0.01122503
4.5 0.01074334
4.6 0.01029177
4.7 0.00986789
4.8 0.00946948
4.9 0.00909457
5 0.00874135

Report an error on this page

What is the Cauchy distribution?

The Cauchy distribution, also called the Lorentz distribution, is a continuous probability distribution defined by a location parameter a (the median and peak position) and a scale parameter b > 0 (the half-width at half-maximum). It is famous for its heavy tails: it has no finite mean and no finite variance. This calculator evaluates the distribution over a sequence of x values so you can build a plot-ready table of (x, value) pairs.

Bell-shaped Cauchy distribution curve with location and scale parameters marked
The Cauchy density is symmetric about its location a, with width controlled by the scale b.

How to use this calculator

Pick a function: probability density f, lower cumulative probability P, or upper cumulative probability Q. Enter the location a and scale b (must be positive). Then define the x sequence with an initial value, a step increment, and the number of points. The k-th x is x_k = xInitial + k * xStep for k = 0 to count-1. The defaults sweep x from -5 to +5 in steps of 0.1 (101 points).

Advertisement
Comparison of Cauchy density, lower cumulative P, and upper cumulative Q curves
PDF gives the peak curve; CDF (P) rises from 0 to 1, and Q is its mirror falling from 1 to 0.

The formulas

Let \(z = (x - a) / b\). The density is $$f = \frac{1}{\pi} \cdot \frac{b}{(x-a)^2 + b^2},$$ equivalently \(\frac{1}{\pi b (1 + z^2)}\). The lower cumulative distribution is $$P = \frac{1}{2} + \frac{1}{\pi}\arctan(z),$$ and the upper (survival) function is $$Q = 1 - P = \frac{1}{2} - \frac{1}{\pi}\arctan(z).$$ Because arctan stays within \((-\pi/2, \pi/2)\), both P and Q remain strictly between 0 and 1.

Worked example

With \(a = 0\), \(b = 0.7\), evaluate density at \(x = 1\): \((x-a)^2 + b^2 = 1 + 0.49 = 1.49\), so $$f = \frac{1}{\pi}\left(\frac{0.7}{1.49}\right) \approx 0.14954.$$ For the lower cumulative at the same point, \(\arctan(1/0.7) = 0.96007\), so $$P = 0.5 + \frac{0.96007}{\pi} \approx 0.80559,$$ and \(Q = 1 - 0.80559 = 0.19441\). At the peak \(x = a\), \(f = \frac{1}{\pi b}\) and \(P = Q = 0.5\).

Standard Cauchy Reference Values (a = 0, b = 1)

For the standard Cauchy distribution (location \(a=0\), scale \(b=1\)) the density, lower cumulative probability P and upper cumulative probability Q at a point z are:

$$f(z)=\frac{1}{\pi(1+z^2)},\qquad P(z)=\frac12+\frac{\arctan z}{\pi},\qquad Q(z)=1-P(z)$$

z f(z) P(z) Q(z)
-3 0.03183 0.10242 0.89758
-2 0.06366 0.14758 0.85242
-1 0.15915 0.25000 0.75000
0 0.31831 0.50000 0.50000
1 0.15915 0.75000 0.25000
2 0.06366 0.85242 0.14758
3 0.03183 0.89758 0.10242

For a general Cauchy distribution, use \(z=(x-a)/b\) for P and Q, and divide the standard density by b to get \(f(x)\). The quartiles sit at \(x=a-b\) (P = 0.25) and \(x=a+b\) (P = 0.75), and the median is \(x=a\) (P = 0.5).

Advertisement

Interpreting the Curve and Table

  • Location a sets the position of the peak. It is also the median and the mode.
  • Scale b is the half-width at half-maximum: the density falls to half its peak value at \(x=a\pm b\). The interquartile range equals \(2b\).
  • Peak height is \(f(a)=\dfrac{1}{\pi b}\). A larger b gives a lower, wider curve, and a smaller b gives a taller, narrower one. The area under the curve always stays 1.
  • Heavy tails: for large \(|x-a|\) the density behaves like \(b/(\pi (x-a)^2)\), so the upper tail is about \(Q(x)\approx \dfrac{b}{\pi (x-a)}\). For example, in the standard case \(Q(10)\approx 0.0317\). A normal distribution would put almost nothing there, so in a Cauchy table P and Q approach 1 and 0 only slowly.
  • Symmetry: the curve is symmetric about \(x=a\), so Q at \(a+d\) equals P at \(a-d\). The Q column is the mirror image of the P column about \(x=a\).

The ratio of two independent standard normal variables follows a standard Cauchy distribution. The Cauchy distribution has no mean and no variance, because the defining integrals diverge. As a result, the sample mean of Cauchy data does not converge as the sample grows: the mean of n observations has the same Cauchy distribution as a single observation. Use the median and the scale b (a robust measure of spread) to describe such data, not the mean and standard deviation.

FAQ

Why must b be positive? A non-positive scale makes the density and CDF undefined (zero or negative width), so the calculator clamps b to a tiny positive value.

Why is there no mean shown? The Cauchy distribution has undefined mean and variance due to its heavy tails; this tool only reports pointwise density and tail probabilities.

What is the "value" column? It is the chosen function (f, P, or Q) evaluated at each x, ready to plot with x on the horizontal axis.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators