Connect via MCP →

Enter Calculation

Formula

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

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\).

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: