# Cauchy distribution

The Cauchy distribution, named after Augustin Cauchy, is a continuous probability distribution. It is also known, especially among physicists, as the Lorentz distribution (after Hendrik Lorentz), Cauchy–Lorentz distribution, Lorentz(ian) function, or Breit–Wigner distribution. The Cauchy distribution $f(x;x_{0},\gamma )$ is the distribution of the x-intercept of a ray issuing from $(x_{0},\gamma )$ with a uniformly distributed angle. It is also the distribution of the ratio of two independent normally distributed random variables with mean zero.

Parameters Probability density function The purple curve is the standard Cauchy distribution Cumulative distribution function $x_{0}\!$ location (real)$\gamma >0$ scale (real) $\displaystyle x\in (-\infty ,+\infty )\!$ ${\frac {1}{\pi \gamma \,\left[1+\left({\frac {x-x_{0}}{\gamma }}\right)^{2}\right]}}\!$ ${\frac {1}{\pi }}\arctan \left({\frac {x-x_{0}}{\gamma }}\right)+{\frac {1}{2}}\!$ $x_{0}+\gamma \,\tan[\pi (F-{\tfrac {1}{2}})]$ undefined $x_{0}\!$ $x_{0}\!$ undefined undefined undefined $\log(4\pi \gamma )\!$ does not exist $\displaystyle \exp(x_{0}\,i\,t-\gamma \,|t|)\!$ The Cauchy distribution is often used in statistics as the canonical example of a "pathological" distribution since both its expected value and its variance are undefined. (But see the section Explanation of undefined moments below.) The Cauchy distribution does not have finite moments of order greater than or equal to one; only fractional absolute moments exist. The Cauchy distribution has no moment generating function.

In mathematics, it is closely related to the Poisson kernel, which is the fundamental solution for the Laplace equation in the upper half-plane. In spectroscopy, it is the description of the shape of spectral lines which are subject to homogeneous broadening in which all atoms interact in the same way with the frequency range contained in the line shape. Many mechanisms cause homogeneous broadening, most notably collision broadening.

It is one of the few distributions that is stable and has a probability density function that can be expressed analytically, the others being the normal distribution and the Lévy distribution.

## History

Functions with the form of the density function of the Cauchy distribution were studied by mathematicians in the 17th century, but in a different context and under the title of the witch of Agnesi. Despite its name, the first explicit analysis of the properties of the Cauchy distribution was published by the French mathematician Poisson in 1824, with Cauchy only becoming associated with it during an academic controversy in 1853. As such, the name of the distribution is a case of Stigler's Law of Eponymy. Poisson noted that if the mean of observations following such a distribution were taken, the mean error did not converge to any finite number. As such, Laplace's use of the Central Limit Theorem with such a distribution was inappropriate, as it assumed a finite mean and variance. Despite this, Poisson did not regard the issue as important, in contrast to Bienaymé, who was to engage Cauchy in a long dispute over the matter.

## Characterisation

### Probability density function

The Cauchy distribution has the probability density function (PDF)

$f(x;x_{0},\gamma )={\frac {1}{\pi \gamma \left[1+\left({\frac {x-x_{0}}{\gamma }}\right)^{2}\right]}}={1 \over \pi \gamma }\left[{\gamma ^{2} \over (x-x_{0})^{2}+\gamma ^{2}}\right],$

where $x_{0}$  is the location parameter, specifying the location of the peak of the distribution, and $\gamma$  is the scale parameter which specifies the half-width at half-maximum (HWHM), alternatively $2\gamma$  is full width at half maximum (FWHM). $\gamma$  is also equal to half the interquartile range and is sometimes called the probable error. Augustin-Louis Cauchy exploited such a density function in 1827 with an infinitesimal scale parameter, defining what would now be called a Dirac delta function.

The maximum value or amplitude of the Cauchy PDF is ${\frac {1}{\pi \gamma }}$ , located at $x=x_{0}$ .

It is sometimes convenient to express the PDF in terms of the complex parameter $\psi =x_{0}+i\gamma$

$f(x;\psi )={\frac {1}{\pi }}\,{\textrm {Im}}\left({\frac {1}{x-\psi }}\right)={\frac {1}{\pi }}\,{\textrm {Re}}\left({\frac {-i}{x-\psi }}\right)$

The special case when $x_{0}=0$  and $\gamma =1$  is called the standard Cauchy distribution with the probability density function

$f(x;0,1)={\frac {1}{\pi (1+x^{2})}}.\!$

In physics, a three-parameter Lorentzian function is often used:

$f(x;x_{0},\gamma ,I)={\frac {I}{\left[1+\left({\frac {x-x_{0}}{\gamma }}\right)^{2}\right]}}=I\left[{\gamma ^{2} \over (x-x_{0})^{2}+\gamma ^{2}}\right],$

where $I$  is the height of the peak. The three-parameter Lorentzian function indicated is not, in general, a probability density function, since it does not integrate to 1, except in the special case where $I={\frac {1}{\pi \gamma }}.\!$

### Cumulative distribution function

The cumulative distribution function of the Cauchy distribution is:

$F(x;x_{0},\gamma )={\frac {1}{\pi }}\arctan \left({\frac {x-x_{0}}{\gamma }}\right)+{\frac {1}{2}}$

and the quantile function (inverse cdf) of the Cauchy distribution is

$Q(p;x_{0},\gamma )=x_{0}+\gamma \,\tan \left[\pi \left(p-{\tfrac {1}{2}}\right)\right].$

It follows that the first and third quartiles are $(x_{0}-\gamma ,x_{0}+\gamma )$ , and hence the interquartile range is $2\gamma$ .

For the standard distribution, the cumulative distribution function simplifies to arctangent function $\arctan(x)$ :

$F(x;0,1)={\frac {1}{\pi }}\arctan \left(x\right)+{\frac {1}{2}}$

### Entropy

The entropy of the Cauchy distribution is given by:

{\begin{aligned}H(\gamma )&=-\int _{-\infty }^{\infty }f(x;x_{0},\gamma )\log(f(x;x_{0},\gamma ))\,dx\\[6pt]&=\log(4\pi \gamma )\end{aligned}}

The derivative of the quantile function, the quantile density function, for the Cauchy distribution is:

$Q'(p;\gamma )=\gamma \,\pi \,{\sec }^{2}\left[\pi \left(p-{\tfrac {1}{2}}\right)\right].\!$

The differential entropy of a distribution can be defined in terms of its quantile density, specifically:

$H(\gamma )=\int _{0}^{1}\log \,(Q'(p;\gamma ))\,\mathrm {d} p=\log(4\pi \gamma )$

The Cauchy distribution is the maximum entropy probability distribution for a random variate $X$  for which

$\operatorname {E} [\log(1+(X-x_{0})^{2}/\gamma ^{2})]=\log 4$

or, alternatively, for a random variate $X$  for which

$\operatorname {E} [\log(1+(X-x_{0})^{2})]=2\log(1+\gamma ).$

In its standard form, it is the maximum entropy probability distribution for a random variate $X$  for which

$\operatorname {E} \!\left[\ln(1+X^{2})\right]=\ln 4.$

## Properties

The Cauchy distribution is an example of a distribution which has no mean, variance or higher moments defined. Its mode and median are well defined and are both equal to $x_{0}$ .

When $U$  and $V$  are two independent normally distributed random variables with expected value 0 and variance 1, then the ratio $U/V$  has the standard Cauchy distribution.

If $\Sigma$  is a $p\times p$  positive-semidefinite covariance matrix with strictly positive diagonal entries, then for independent and identically distributed $X,Y\sim N(0,\Sigma )$  and any random $p$ -vector $w$  independent of $X$  and $Y$  such that $w_{1}+\cdots +w_{p}=1$  and $w_{i}\geq 0,i=1,\ldots ,p,$  (defining a categorical distribution) it holds that

$\sum _{j=1}^{p}w_{j}{\frac {X_{j}}{Y_{j}}}\sim \mathrm {Cauchy} (0,1).$ 

If $X_{1},\ldots ,X_{n}$  are independent and identically distributed random variables, each with a standard Cauchy distribution, then the sample mean $(X_{1}+\cdots +X_{n})/n$  has the same standard Cauchy distribution. To see that this is true, compute the characteristic function of the sample mean:

$\varphi _{\overline {X}}(t)=\mathrm {E} \left[e^{i{\overline {X}}t}\right]$

where ${\overline {X}}$  is the sample mean. This example serves to show that the hypothesis of finite variance in the central limit theorem cannot be dropped. It is also an example of a more generalized version of the central limit theorem that is characteristic of all stable distributions, of which the Cauchy distribution is a special case.

The Cauchy distribution is an infinitely divisible probability distribution. It is also a strictly stable distribution.

The standard Cauchy distribution coincides with the Student's t-distribution with one degree of freedom.

Like all stable distributions, the location-scale family to which the Cauchy distribution belongs is closed under linear transformations with real coefficients. In addition, the Cauchy distribution is closed under linear fractional transformations with real coefficients. In this connection, see also McCullagh's parametrization of the Cauchy distributions.

### Characteristic function

Let $X$  denote a Cauchy distributed random variable. The characteristic function of the Cauchy distribution is given by

$\varphi _{X}(t;x_{0},\gamma )=\operatorname {E} \left[e^{iXt}\right]=\int _{-\infty }^{\infty }f(x;x_{0},\gamma )e^{ixt}\,dx=e^{ix_{0}t-\gamma |t|}.$

which is just the Fourier transform of the probability density. The original probability density may be expressed in terms of the characteristic function, essentially by using the inverse Fourier transform:

$f(x;x_{0},\gamma )={\frac {1}{2\pi }}\int _{-\infty }^{\infty }\varphi _{X}(t;x_{0},\gamma )e^{-ixt}\,dt\!$

The nth moment of a distribution is the nth derivative of the characteristic function evaluated at $t=0$ . Observe that the characteristic function is not differentiable at the origin: this corresponds to the fact that the Cauchy distribution does not have well-defined moments higher than the zeroth moment.

## Explanation of undefined moments

### Mean

If a probability distribution has a density function $f(x)$ , then the mean, if it exists, is given by

$\int _{-\infty }^{\infty }xf(x)\,dx.\qquad \qquad (1)\!$

We may evaluate this two-sided improper integral by computing the sum of two one-sided improper integrals. That is,

$\int _{a}^{\infty }xf(x)\,dx+\int _{-\infty }^{a}xf(x)\,dx.\qquad \qquad (2)\!$

for an arbitrary real number $a$ .

For the integral to exist (even as an infinite value), at least one of the terms in this sum should be finite, or both should be infinite and have the same sign. But in the case of the Cauchy distribution, both the terms in this sum (2) are infinite and have opposite sign. Hence (1) is undefined, and thus so is the mean.

Note that the Cauchy principal value of the mean of the Cauchy distribution is

$\lim _{a\to \infty }\int _{-a}^{a}xf(x)\,dx,\!$

which is zero. On the other hand, the related integral

$\lim _{a\to \infty }\int _{-2a}^{a}xf(x)\,dx,\!$

is not zero, as can be seen easily by computing the integral. This again shows that the mean (1) can not exist.

Various results in probability theory about expected values, such as the strong law of large numbers, fail to hold for the Cauchy distribution.

### Higher moments

The Cauchy distribution does not have finite moments of any order. Some of the higher raw moments do exist and have a value of infinity, for example the raw second moment:

{\begin{aligned}\operatorname {E} [X^{2}]&\propto \int _{-\infty }^{\infty }{\frac {x^{2}}{1+x^{2}}}\,dx=\int _{-\infty }^{\infty }1-{\frac {1}{1+x^{2}}}\,dx\\[8pt]&=\int _{-\infty }^{\infty }dx-\int _{-\infty }^{\infty }{\frac {1}{1+x^{2}}}\,dx=\int _{-\infty }^{\infty }dx-\pi =\infty .\end{aligned}}

By re-arranging the formula, one can see that the second moment is essentially the infinite integral of a constant (here 1). Higher even-powered raw moments will also evaluate to infinity. Odd-powered raw moments, however, are undefined, which is distinctly different from existing with the value of infinity. The odd-powered raw moments are undefined because their values are essentially equivalent to $\infty -\infty$  since the two halves of the integral both diverge and have opposite signs. The first raw moment is the mean, which, being odd, does not exist. (See also the discussion above about this.) This in turn means that all of the central moments and standardized moments are undefined, since they are all based on the mean. The variance—which is the second central moment—is likewise non-existent (despite the fact that the raw second moment exists with the value infinity).

The results for higher moments follow from Hölder's inequality, which implies that higher moments (or halves of moments) diverge if lower ones do.

### Moments of truncated distributions

Consider the truncated distribution defined by restricting the standard Cauchy distribution to the interval [−10100, 10100]. Such a truncated distribution has all moments (and the central limit theorem applies for i.i.d. observations from it); yet for almost all practical purposes it behaves like a Cauchy distribution.

## Estimation of parameters

Because the parameters of the Cauchy distribution do not correspond to a mean and variance, attempting to estimate the parameters of the Cauchy distribution by using a sample mean and a sample variance will not succeed. For example, if an i.i.d. sample of size n is taken from a Cauchy distribution, one may calculate the sample mean as:

${\bar {x}}={\frac {1}{n}}\sum _{i=1}^{n}x_{i}$

Although the sample values $x_{i}$  will be concentrated about the central value $x_{0}$ , the sample mean will become increasingly variable as more observations are taken, because of the increased probability of encountering sample points with a large absolute value. In fact, the distribution of the sample mean will be equal to the distribution of the observations themselves; i.e., the sample mean of a large sample is no better (or worse) an estimator of $x_{0}$  than any single observation from the sample. Similarly, calculating the sample variance will result in values that grow larger as more observations are taken.

Therefore, more robust means of estimating the central value $x_{0}$  and the scaling parameter $\gamma$  are needed. One simple method is to take the median value of the sample as an estimator of $x_{0}$  and half the sample interquartile range as an estimator of $\gamma$ . Other, more precise and robust methods have been developed  For example, the truncated mean of the middle 24% of the sample order statistics produces an estimate for $x_{0}$  that is more efficient than using either the sample median or the full sample mean. However, because of the fat tails of the Cauchy distribution, the efficiency of the estimator decreases if more than 24% of the sample is used.

Maximum likelihood can also be used to estimate the parameters $x_{0}$  and $\gamma$ . However, this tends to be complicated by the fact that this requires finding the roots of a high degree polynomial, and there can be multiple roots that represent local maxima. Also, while the maximum likelihood estimator is asymptotically efficient, it is relatively inefficient for small samples. The log-likelihood function for the Cauchy distribution for sample size $n$  is:

${\hat {\ell }}(\!x_{0},\gamma \mid x_{1},\dotsc ,x_{n})=-n\log(\gamma \pi )-\sum _{i=1}^{n}\log \left(1+\left({\frac {x_{i}-x_{0}}{\gamma }}\right)^{2}\right)$

Maximizing the log likelihood function with respect to $x_{0}$  and $\gamma$  produces the following system of equations:

$\sum _{i=1}^{n}{\frac {x_{i}-x_{0}}{\gamma ^{2}+[x_{i}-\!x_{0}]^{2}}}=0$
$\sum _{i=1}^{n}{\frac {\gamma ^{2}}{\gamma ^{2}+[x_{i}-x_{0}]^{2}}}-{\frac {n}{2}}=0$

Note that

$\sum _{i=1}^{n}{\frac {\gamma ^{2}}{\gamma ^{2}+[x_{i}-x_{0}]^{2}}}$

is a monotone function in $\gamma$  and that the solution $\gamma$  must satisfy

$\min |x_{i}-x_{0}|\leq \gamma \leq \max |x_{i}-x_{0}|.$

Solving just for $x_{0}$  requires solving a polynomial of degree $2n-1$ , and solving just for $\gamma$  requires solving a polynomial of degree $n$  (first for $\gamma ^{2}$ , then $x_{0}$ ). Therefore, whether solving for one parameter or for both parameters simultaneously, a numerical solution on a computer is typically required. The benefit of maximum likelihood estimation is asymptotic efficiency; estimating $x_{0}$  using the sample median is only about 81% as asymptotically efficient as estimating $x_{0}$  by maximum likelihood. The truncated sample mean using the middle 24% order statistics is about 88% as asymptotically efficient an estimator of $x_{0}$  as the maximum likelihood estimate. When Newton's method is used to find the solution for the maximum likelihood estimate, the middle 24% order statistics can be used as an initial solution for $x_{0}$ .

## Multivariate Cauchy distribution

A random vector $X=(X_{1},\ldots ,X_{k})^{T}$  is said to have the multivariate Cauchy distribution if every linear combination of its components $Y=a_{1}X_{1}+\cdots +a_{k}X_{k}$  has a Cauchy distribution. That is, for any constant vector $a\in \mathbb {R} ^{k}$ , the random variable $Y=a^{T}X$  should have a univariate Cauchy distribution. The characteristic function of a multivariate Cauchy distribution is given by:

$\varphi _{X}(t)=e^{ix_{0}(t)-\gamma (t)},\!$

where $x_{0}(t)$  and $\gamma (t)$  are real functions with $x_{0}(t)$  a homogeneous function of degree one and $\gamma (t)$  a positive homogeneous function of degree one. More formally:

$x_{0}(at)=ax_{0}(t),$
$\gamma (at)=|a|\gamma (t),$

for all $t$ .

An example of a bivariate Cauchy distribution can be given by:

$f(x,y;x_{0},y_{0},\gamma )={1 \over 2\pi }\left[{\gamma \over ((x-x_{0})^{2}+(y-y_{0})^{2}+\gamma ^{2})^{1.5}}\right].$

Note that in this example, even though there is no analogue to a covariance matrix, $x$  and $y$  are not statistically independent.

We also can write this formula for complex variable. Then the probability density function of complex cauchy is :

$f(z;z_{0},\gamma )={1 \over 2\pi }\left[{\gamma \over (|z-z_{0}|^{2}+\gamma ^{2})^{1.5}}\right].$

Analogous to the univariate density, the multidimensional Cauchy density also relates to the multivariate Student distribution. They are equivalent when the degrees of freedom parameter is equal to one. The density of a $k$  dimension Student distribution with one degree of freedom becomes:

$f({\mathbf {x} };{\mathbf {\mu } },{\mathbf {\Sigma } },k)={\frac {\Gamma \left({\frac {1+k}{2}}\right)}{\Gamma ({\frac {1}{2}})\pi ^{\frac {k}{2}}\left|{\mathbf {\Sigma } }\right|^{\frac {1}{2}}\left[1+({\mathbf {x} }-{\mathbf {\mu } })^{T}{\mathbf {\Sigma } }^{-1}({\mathbf {x} }-{\mathbf {\mu } })\right]^{\frac {1+k}{2}}}}.$

Properties and details for this density can be obtained by taking it as a particular case of the multivariate Student density.

## Transformation properties

• If $X\sim \operatorname {Cauchy} (x_{0},\gamma )\,$  then $kX+\ell \sim {\textrm {Cauchy}}(x_{0}k+\ell ,\gamma |k|)$ 
• If $X\sim \operatorname {Cauchy} (x_{0},\gamma _{0})\,$  and $Y\sim \operatorname {Cauchy} (x_{1},\gamma _{1})\,$  are independent, then $X+Y\sim \operatorname {Cauchy} (x_{0}+x_{1},\gamma _{0}+\gamma _{1})\,$  and $X-Y\sim \operatorname {Cauchy} (x_{0}-x_{1},\gamma _{0}+\gamma _{1})\,$
• If $X\sim \operatorname {Cauchy} (0,\gamma )\,$  then ${\tfrac {1}{X}}\sim \operatorname {Cauchy} (0,{\tfrac {1}{\gamma }})\,$
• McCullagh's parametrization of the Cauchy distributions: Expressing a Cauchy distribution in terms of one complex parameter $\psi =x_{0}+i\gamma$ , define $X\sim \operatorname {Cauchy} (\psi )$  to mean $X\sim \operatorname {Cauchy} (x_{0},|\gamma |)$ . If $X\sim \operatorname {Cauchy} (\psi )$  then:
${\frac {aX+b}{cX+d}}\sim \operatorname {Cauchy} \left({\frac {a\psi +b}{c\psi +d}}\right)$

where $a$ , $b$ , $c$  and $d$  are real numbers.

• Using the same convention as above, if $X\sim \operatorname {Cauchy} (\psi )$  then:
${\frac {X-i}{X+i}}\sim \operatorname {CCauchy} \left({\frac {\psi -i}{\psi +i}}\right)$
where $\operatorname {CCauchy}$  is the circular Cauchy distribution.

## Lévy measure

The Cauchy distribution is the stable distribution of index 1. The Lévy–Khintchine representation of such a stable distribution of parameter $\gamma$  is given, for $X\sim \operatorname {Stable} (\gamma ,0,0)\,$  by:

$\operatorname {E} \left(e^{ixX}\right)=\exp \left(\int _{\mathbb {R} }(e^{ixy}-1)\Pi _{\gamma }(dy)\right)$

where

$\Pi _{\gamma }(dy)=\left(c_{1,\gamma }{\frac {1}{y^{1+\gamma }}}1_{\left\{y>0\right\}}+c_{2,\gamma }{\frac {1}{|y|^{1+\gamma }}}1_{\left\{y<0\right\}}\right)\,dy$

and $c_{1,\gamma },c_{2,\gamma }$  can be expressed explicitly. In the case $\gamma =1$  of the Cauchy distribution, one has $c_{1,\gamma }=c_{2,\gamma }$ .

This last representation is a consequence of the formula

$|x|=\int _{\mathbb {R} }(1-e^{ixy})\,{\frac {dy}{y^{2}}}$

## Related distributions

• $\operatorname {Cauchy} (0,1)\sim {\textrm {t}}(\mathrm {df} =1)\,$  Student's t distribution
• $\operatorname {Cauchy} (\mu ,\sigma )\sim {\textrm {t}}_{(\mathrm {df} =1)}(\mu ,\sigma )\,$  non-standardized Student's t distribution
• If $X,Y\sim {\textrm {N}}(0,1)\,X,Y$  independent, then ${\tfrac {X}{Y}}\sim {\textrm {Cauchy}}(0,1)\,$
• If $X\sim {\textrm {U}}(0,1)\,$  then $\tan \left(\pi \left(X-{\tfrac {1}{2}}\right)\right)\sim {\textrm {Cauchy}}(0,1)\,$
• If $X\sim \operatorname {Log-Cauchy} (0,1)$  then $\ln(X)\sim {\textrm {Cauchy}}(0,1)$
• The Cauchy distribution is a limiting case of a Pearson distribution of type 4[citation needed]
• The Cauchy distribution is a special case of a Pearson distribution of type 7.
• The Cauchy distribution is a stable distribution: if $X\sim {\textrm {Stable}}(1,0,\gamma ,\mu )$ , then $X\sim \operatorname {Cauchy} (\mu ,\gamma )$ .
• The Cauchy distribution is a singular limit of a hyperbolic distribution[citation needed]
• The wrapped Cauchy distribution, taking values on a circle, is derived from the Cauchy distribution by wrapping it around the circle.

## Relativistic Breit–Wigner distribution

In nuclear and particle physics, the energy profile of a resonance is described by the relativistic Breit–Wigner distribution, while the Cauchy distribution is the (non-relativistic) Breit–Wigner distribution.[citation needed]

## Occurrence and applications

• Applications of the Cauchy distribution or its transformation can be found in fields working with exponential growth. A 1958 paper by White  derived the test statistic for estimators of ${\hat {\beta }}$  for the equation $x_{t+1}=\beta {x}_{t}+\varepsilon _{t+1},\beta >1$  and where the maximum likelihood estimator is found using ordinary least squares showed the sampling distribution of the statistic is the Cauchy distribution.
• The Cauchy distribution is often the distribution of observations for objects that are spinning. The classic reference for this is called the Gull's lighthouse problem and as in the above section as the Breit–Wigner distribution in particle physics.