Updated
In this lesson
Wide tables, equations, and code scroll sideways. Swipe, or Tab to focus them and use the left and right arrow keys.
Cauchy distribution
You will learn: Explain why finite samples do not establish a population mean or variance.
Start with: Normal distribution · Expectation and variance
The Cauchy distribution looks like a Normal from the centre but has radically heavier tails. Its mean is undefined and its second moment is infinite. The usual finite-mean Law of Large Numbers cannot be applied to its sample average.
The running-mean windows are fixed: 0 normal values exceed ±3 and 102 Cauchy values exceed ±5. The values are retained in calculations. The Cauchy density plot omits 7.917% of its probability outside ±8.
Repeat the mean and median estimators
| Statistic | Within [−1,1] | Outside plot [−5,5] |
|---|---|---|
| Sample mean (circles) | 47 / 100 | 15 |
| Sample median (squares) | 100 / 100 | 0 |
The exact probability that a sample mean lies in [−1,1] is 0.5 for every n here. An even-size sample median averages the two central ordered observations. Points beyond the plot are counted above, not moved onto its edges.
Read every repeated estimate, including off-chart values
| Run | Mean | Median | Smallest draw | Largest draw |
|---|---|---|---|---|
| 1 | 6.7945 | 0.0049277 | -356.30 | 2695.0 |
| 2 | -2.7041 | -0.066547 | -606.41 | 202.47 |
| 3 | -7.1329 | -0.089407 | -3074.4 | 72.831 |
| 4 | -0.41652 | 0.080172 | -226.60 | 71.837 |
| 5 | 0.012032 | 0.051795 | -74.016 | 54.548 |
| 6 | 0.24223 | 0.12135 | -132.55 | 165.37 |
| 7 | -4.1158 | -0.049060 | -1533.6 | 384.78 |
| 8 | -6.5085 | 0.068683 | -3483.9 | 135.17 |
| 9 | -0.68613 | 0.0080067 | -264.43 | 32.307 |
| 10 | 1.4350 | -0.10271 | -65.199 | 341.26 |
| 11 | -1.8312 | -0.13934 | -501.77 | 42.209 |
| 12 | 1.1143 | 0.063411 | -82.494 | 716.50 |
| 13 | 1.6603 | 0.029061 | -89.083 | 703.41 |
| 14 | 1.0149 | -0.0084347 | -112.52 | 746.25 |
| 15 | -0.28146 | 0.056145 | -135.74 | 256.05 |
| 16 | -0.27772 | 0.035710 | -247.07 | 175.14 |
| 17 | 4.0436 | -0.021321 | -45.938 | 1795.3 |
| 18 | -0.78372 | -0.12290 | -161.64 | 86.451 |
| 19 | -3.3948 | 0.039809 | -691.57 | 489.76 |
| 20 | 0.29360 | -0.16715 | -73.764 | 116.82 |
| 21 | 1.0148 | 0.099113 | -366.23 | 516.16 |
| 22 | -0.63924 | 0.048207 | -242.71 | 92.863 |
| 23 | 0.69428 | 0.016386 | -31.492 | 271.48 |
| 24 | 2.6148 | 0.12374 | -103.94 | 799.62 |
| 25 | -3.6331 | -0.015172 | -1758.8 | 153.91 |
| 26 | 572.90 | 0.034320 | -484.91 | 2.8667e+5 |
| 27 | -0.26798 | -0.090083 | -129.11 | 128.17 |
| 28 | -0.14204 | 0.011750 | -92.781 | 50.469 |
| 29 | 0.33988 | -0.048022 | -54.593 | 89.686 |
| 30 | 0.38560 | 0.046102 | -87.468 | 133.08 |
| 31 | 0.95631 | 0.069364 | -85.964 | 154.28 |
| 32 | -0.022967 | -0.020904 | -1185.1 | 1429.5 |
| 33 | 2.3726 | 0.11380 | -68.647 | 495.87 |
| 34 | 0.60236 | 0.012844 | -148.54 | 195.27 |
| 35 | 6.2835 | 0.085607 | -326.96 | 2694.9 |
| 36 | -2.5312 | -0.00087643 | -1757.0 | 488.20 |
| 37 | 0.36429 | -0.00090045 | -451.81 | 715.04 |
| 38 | -1.3115 | 0.027519 | -475.23 | 194.99 |
| 39 | -4.4610 | -0.086742 | -1651.4 | 145.97 |
| 40 | -1.3507 | -0.065762 | -619.69 | 109.20 |
| 41 | -0.55754 | 0.073214 | -293.14 | 66.320 |
| 42 | -0.66734 | 0.037174 | -169.67 | 64.391 |
| 43 | 1.4513 | 0.052924 | -313.15 | 1217.4 |
| 44 | -3.9321 | 0.063689 | -2124.5 | 105.52 |
| 45 | 1.1934 | 0.061178 | -136.02 | 334.39 |
| 46 | 0.85612 | 0.12135 | -78.148 | 333.86 |
| 47 | -0.47839 | -0.018952 | -575.62 | 182.46 |
| 48 | 1.1087 | 0.018142 | -174.41 | 342.14 |
| 49 | -0.92360 | 0.036381 | -319.55 | 49.614 |
| 50 | 3.4756 | 0.046980 | -34.126 | 1479.4 |
| 51 | 7.3711 | -0.031799 | -132.37 | 3560.9 |
| 52 | 0.64851 | 0.042267 | -135.82 | 230.59 |
| 53 | -1.0618 | 0.078819 | -333.67 | 51.130 |
| 54 | -3.1514 | -0.058238 | -1480.7 | 209.28 |
| 55 | -0.78782 | 0.057949 | -469.60 | 122.16 |
| 56 | 54.887 | -0.0095635 | -428.92 | 27576 |
| 57 | 0.76042 | 0.065793 | -255.28 | 255.87 |
| 58 | -1.1822 | -0.090075 | -267.69 | 202.12 |
| 59 | 1.9015 | 0.0077646 | -139.72 | 1462.4 |
| 60 | 10.976 | -0.092354 | -187.44 | 2915.3 |
| 61 | -0.086832 | 0.031177 | -63.445 | 45.269 |
| 62 | 1.4124 | 0.0086438 | -61.673 | 548.04 |
| 63 | 0.60902 | -0.090806 | -114.46 | 203.52 |
| 64 | -4.5820 | -0.031612 | -1929.1 | 82.144 |
| 65 | -3.4330 | 0.095950 | -932.80 | 40.937 |
| 66 | -0.45982 | -0.066405 | -964.42 | 611.04 |
| 67 | 3.6932 | -0.040937 | -80.512 | 1313.1 |
| 68 | 0.10373 | 0.0038274 | -331.81 | 226.97 |
| 69 | -1.4289 | -0.031562 | -314.44 | 67.698 |
| 70 | -4.6516 | 0.053917 | -1750.6 | 372.24 |
| 71 | 9.1071 | 0.051853 | -114.50 | 4151.6 |
| 72 | 0.72348 | 0.068963 | -108.62 | 211.97 |
| 73 | 0.77329 | 0.0065520 | -112.59 | 332.87 |
| 74 | 0.47722 | 0.064595 | -105.67 | 84.510 |
| 75 | 14.002 | -0.034961 | -1669.1 | 8727.5 |
| 76 | -0.014837 | -0.0098131 | -31.986 | 51.018 |
| 77 | 3.5853 | -0.063827 | -56.741 | 1695.0 |
| 78 | -3.4497 | -0.023466 | -2529.3 | 501.53 |
| 79 | 0.66379 | 0.0075807 | -181.59 | 363.30 |
| 80 | -6.2941 | -0.10746 | -2390.1 | 232.96 |
| 81 | 0.051403 | -0.015750 | -61.689 | 91.464 |
| 82 | 0.60416 | -0.0090384 | -200.71 | 535.68 |
| 83 | 0.17525 | -0.044416 | -461.49 | 241.84 |
| 84 | -0.39666 | 0.033809 | -269.47 | 115.22 |
| 85 | 0.91598 | 0.0040195 | -46.571 | 489.52 |
| 86 | -2.2272 | -0.0036251 | -1188.9 | 111.24 |
| 87 | -0.98617 | 0.020964 | -167.43 | 151.10 |
| 88 | 5.4673 | -0.051714 | -65.747 | 2530.6 |
| 89 | 0.13717 | 0.10071 | -153.42 | 247.64 |
| 90 | -1.3784 | 0.14320 | -640.15 | 131.86 |
| 91 | -1.2206 | 0.033564 | -515.17 | 247.87 |
| 92 | -0.29519 | -0.031236 | -206.24 | 115.18 |
| 93 | -5.5808 | -0.13772 | -2142.7 | 718.51 |
| 94 | 35.858 | -0.040439 | -915.31 | 19083 |
| 95 | -0.074522 | 0.029509 | -255.82 | 343.16 |
| 96 | 1.8545 | 0.099737 | -91.969 | 756.78 |
| 97 | -0.26435 | -0.067576 | -131.14 | 120.55 |
| 98 | 0.14427 | 0.035540 | -93.903 | 63.433 |
| 99 | -0.49383 | 0.018070 | -589.83 | 173.15 |
| 100 | 5.2358 | -0.017006 | -94.871 | 1874.1 |
What to notice
- PDFs look similar near the peak. Both distributions are symmetric and bell-shaped. The difference is in the tails: Cauchy’s tails decay as , while Normal’s decay exponentially.
- Running means behave differently. The normal running mean approaches zero as sampling continues, without a fixed finishing point. The Cauchy mean wanders indefinitely, with occasional violent jumps driven by extreme outliers.
- Resample to see how different Cauchy runs can look. The wandering is not a quirk of one bad draw — it is intrinsic to the distribution.
Why no mean?
The Cauchy mean integral diverges:
The positive and negative tails are equally heavy, so the integral does not converge absolutely. The usual i.i.d. Law of Large Numbers assumes a finite absolute first moment. For the Cauchy specifically, the averaging identity below shows why its averages do not concentrate at a constant.
The ratio connection
If X ~ Normal(0,1) and Y ~ Normal(0,1) independently, then X/Y ~ Cauchy(0,1). Dividing by a near-zero normal draw can give an arbitrarily large result, which is why heavy tails appear in ratios.
Symmetry gives a median, not a mean
The standard Cauchy CDF is F(x)=1/2+arctan(x)/π. Therefore F(0)=1/2 and its quartiles are −1 and 1. Those statements remain meaningful even though the expected value does not exist. Integrating x/(π(1+x²)) from zero to R gives log(1+R²)/(2π), which grows without bound. The negative side diverges in the opposite direction; choosing equal cutoffs to make them cancel is a principal value, not an expectation.
The experiment computes an ordinary finite-sample mean and median. Both numbers exist for the displayed draws. That does not supply the missing population mean. The median estimates the distribution’s center using ranks, so an extremely large observation has much less influence on it than on the average.
What averaging preserves
For independent standard Cauchy variables, the characteristic function of their average is [exp(−|t|/n)]ⁿ=exp(−|t|). Thus the average has exactly the original Cauchy law for every positive integer n. In particular, P(−1≤average≤1)=1/2, even at n=2,000. A sequence converging in probability to zero would instead have that probability tend to one.
At the default n=500, repeat the experiment and compare the fraction of means and medians inside [−1,1]. The exact one-half reference applies to means; the median uses a different sampling distribution. Each point represents a separate sample, not another observation appended to the running trajectory above. A quiet stretch of one trajectory is not evidence for concentration.
Keep extreme values visible in the accounting
The density window [−8,8] omits about 7.917% of standard Cauchy probability. The repeated-estimate plot clips at ±5, but the table retains those estimates and their extreme observations. Removing large observations would change the estimator and its distribution, so the experiment does not trim them.
Make a prediction
A simulation of Cauchy averages has a finite histogram and a sample mean near zero. Have you estimated the population expectation?
Explore the answer
No. The Cauchy expectation is undefined regardless of the finite simulation result. You can estimate a median or a tail probability, but must name that different target and retain the extreme values when checking the proposed model.
Reference
Random Services: Cauchy distribution derives the CDF, divergent moments, and stable sum identity. Compare the finite-variance normal averages and the Student t family, which includes Cauchy at one degree of freedom.
The symmetric stable family places the Cauchy average beside models whose averages narrow or widen.