This is documentation for an old release of SciPy (version 0.17.1). Search for this page in the documentation of the latest stable release (version 1.15.1).
Folded Normal Distribution¶
If Z is Normal with mean L and σ=S , then |Z| is a folded normal with shape parameter c=|L|/S , location parameter 0 and scale parameter S . This is a special case of the non-central chi distribution with one- degree of freedom and non-centrality parameter c2. Note that c≥0 . The standard form of the folded normal is
f(x;c)=√2πcosh(cx)exp(−x2+c22)F(x;c)=Φ(x−c)−Φ(−x−c)=Φ(x−c)+Φ(x+c)−1G(α;c)=F−1(x;c)
M(t)=exp[t2(t−2c)](1+e2ct)
k=erf(c√2)p=exp(−c22)μ=√2πp+ckμ2=c2+1−μ2γ1=√2πp3(4−πp2(2c2+1))+2ck(6p2+3cpk√2π+πc(k2−1))πμ3/22γ2=c4+6c2+3+6(c2+1)μ2−3μ4−4pμ(√2π(c2+2)+ckp(c2+3))μ22
Implementation: scipy.stats.foldnorm