HalfCauchy Distribution#

If Z is Hyperbolic Secant distributed then eZ is Half-Cauchy distributed. Also, if W is (standard) Cauchy distributed, then |W| is Half-Cauchy distributed. Special case of the Folded Cauchy distribution with c=0. The support is x0. The standard form is

f(x)=2π(1+x2)F(x)=2πarctan(x)G(q)=tan(π2q)
M(t)=cost+2π[Si(t)costCi(t)sint]

where Si(t)=0tsinxxdx, Ci(t)=tcosxxdx.

md=0mn=tan(π4)

No moments, as the integrals diverge.

h[X]=log(2π)1.8378770664093454836.

Implementation: scipy.stats.halfcauchy