Previous Up Next

20.4.14  Cauchy distribution

The probability density function for the Cauchy distribution.

The cauchy (or cauchyd) command computes the probability density function for the Cauchy distribution (sometimes called the Lorentz distribution).

Examples

cauchy(2.2,1.5,0.8)
     
0.113412073462           
cauchy(0.3)
     
0.292027418517           
The cumulative distribution function for the Cauchy distribution.

The cauchy_cdf (or cauchyd_cdf) command computes the cumulative distribution function for the Cauchy distribution.

It turns out that cauchy_cdf(a,b,x)=1/2+1/πarctanxa/b.

Examples

cauchy_cdf(2,3,1.4)
     
0.437167041811           
cauchy_cdf(1.4)
     
0.802568456711           
cauchy_cdf(2,3,-1.9,1.4)
     
0.228452641651           
The inverse distribution function for the Cauchy distribution.

The cauchy_icdf (or cauchyd_icdf) command computes the inverse distribution for the Cauchy distribution.

Example

cauchy_icdf(2,3,0.23)
     
−1.40283204777           

Previous Up Next