Jump to content

Half-normal distribution

From Wikipedia, the free encyclopedia
Half-normal distribution
Probability density function
Probability density function of the half-normal distribution σ=1
σ=1
Cumulative distribution function
Cumulative distribution function of the half-normal distribution σ=1
σ=1
Parameters σ>0 — (scale)
Support x∈[0,∞)
PDF f(x;σ)=2σπexp⁡(−x22σ2)x>0
CDF F(x;σ)=erf⁡(xσ2)
Quantile Q(F;σ)=σ2erf−1(F)
Mean σ2π≈0.797885σ
Median σ2erf−1(1/2)≈0.674490σ
Mode 0
Variance σ2(1−2π)
Skewness 2(4−π)(π−2)3/2≈0.9952717
Excess kurtosis 8(π−3)(π−2)2≈0.869177
Entropy 12log2(2πeσ2)−1
MGF exp⁡(σ2t22)erfc⁡(−σt2)
CF w(σt2)
where w(x) is the Faddeeva function

In probability theory and statistics, the half-normal distribution is a special case of the folded normal distribution.

Let X follow an ordinary normal distribution, N(0,σ2). Then, Y=|X| follows a half-normal distribution. Thus, the half-normal distribution is a fold at the mean of an ordinary normal distribution with mean zero.

Properties

[edit]

Using the σ parametrization of the normal distribution, the probability density function (PDF) of the half-normal is given by

fY(y;σ)=2σπexp⁡(−y22σ2)y≥0,

where E[Y]=μ=σ2π.

Alternatively using a scaled precision (inverse of the variance) parametrization (to avoid issues if σ is near zero), obtained by setting θ=πσ2, the probability density function is given by

fY(y;θ)=2θπexp⁡(−y2θ2π)y≥0,

where E[Y]=μ=1θ.

The cumulative distribution function (CDF) is given by

FY(y;σ)=∫0y1σ2πexp⁡(−x22σ2)dx

Using the change-of-variables z=x/(2σ), the CDF can be written as

FY(y;σ)=2π∫0y/(2σ)exp⁡(−z2)dz=erf⁡(y2σ),

where erf is the error function, a standard function in many mathematical software packages.

The quantile function (or inverse CDF) is written:

Q(F;σ)=σ2erf−1(F)

where 0≤F≤1 and erf−1 is the inverse error function

The expectation is then given by

E[Y]=σ2/π,

The variance is given by

var⁡(Y)=σ2(1−2π).

Since this is proportional to the variance σ2 of X, σ can be seen as a scale parameter of the new distribution.

The differential entropy of the half-normal distribution is exactly one bit less the differential entropy of a zero-mean normal distribution with the same second moment about 0. This can be understood intuitively since the magnitude operator reduces information by one bit (if the probability distribution at its input is even). Alternatively, since a half-normal distribution is always positive, the one bit it would take to record whether a standard normal random variable were positive (say, a 1) or negative (say, a 0) is no longer necessary. Thus,

h(Y)=12log2(πeσ22)=12log2(2πeσ2)−1.

Applications

[edit]

The half-normal distribution is commonly utilized as a prior probability distribution for variance parameters in Bayesian inference applications.[1][2]

Parameter estimation

[edit]

Given numbers {xi}i=1n drawn from a half-normal distribution, the unknown parameter σ of that distribution can be estimated by the method of maximum likelihood, giving

σ̂=1n∑i=1nxi2

The bias is equal to

b≡E⁡[(σ̂mle−σ)]=−σ4n

which yields the bias-corrected maximum likelihood estimator

σ̂mle∗=σ̂mle−b̂.
[edit]

See also

[edit]

References

[edit]
  1. ↑ Gelman, A. (2006), "Prior distributions for variance parameters in hierarchical models", Bayesian Analysis, 1 (3): 515–534, doi:10.1214/06-ba117a
  2. ↑ Röver, C.; Bender, R.; Dias, S.; Schmid, C.H.; Schmidli, H.; Sturtz, S.; Weber, S.; Friede, T. (2021), "On weakly informative prior distributions for the heterogeneity parameter in Bayesian random-effects meta-analysis", Research Synthesis Methods, 12 (4): 448–474, arXiv:2007.08352, doi:10.1002/jrsm.1475, PMID 33486828, S2CID 220546288

Further reading

[edit]
[edit]
(note that MathWorld uses the parameter θ=1σπ/2