Harman Patil (Editor)

Half normal distribution

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Parameters
  
σ 2 > 0 {\displaystyle \sigma ^{2}>0} — (scale)

Support
  
x ∈ [ 0 , ∞ ) {\displaystyle x\in [0,\infty )}

PDF
  
f ( x ; σ ) = 2 σ π exp ⁡ ( − x 2 2 σ 2 ) x > 0 {\displaystyle f(x;\sigma )={\frac {\sqrt {2}}{\sigma {\sqrt {\pi }}}}\exp \left(-{\frac {x^{2}}{2\sigma ^{2}}}\right)\quad x>0}

CDF
  
F ( x ; σ ) = erf ⁡ ( x σ 2 ) {\displaystyle F(x;\sigma )=\operatorname {erf} \left({\frac {x}{\sigma {\sqrt {2}}}}\right)}

Quantile
  
Q ( F ; σ ) = σ 2 erf − 1 ⁡ ( F ) {\displaystyle Q(F;\sigma )=\sigma {\sqrt {2}}\operatorname {erf} ^{-1}(F)}

Mean
  
σ 2 π {\displaystyle {\frac {\sigma {\sqrt {2}}}{\sqrt {\pi }}}}

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

Contents

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

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

f Y ( y ; σ ) = 2 σ π exp ( y 2 2 σ 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

f Y ( y ; θ ) = 2 θ π exp ( y 2 θ 2 π ) y 0 ,

where E [ Y ] = μ = 1 θ .

The cumulative distribution function (CDF) is given by

F Y ( y ; σ ) = 0 y 1 σ 2 π exp ( x 2 2 σ 2 ) d x

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

F Y ( y ; σ ) = 2 π 0 y / ( 2 σ ) exp ( z 2 ) d z = erf ( y 2 σ ) ,

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

The quantile function (or inverse CDF) is written:

Q ( F ; σ ) = σ 2 erf 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 entropy of the half-normal distribution is exactly one bit less the 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 ) = 1 2 log ( π σ 2 2 ) + 1 2 ,

The density functions satisfy the differential equations

σ 2 f ( x ) + x f ( x ) = 0 , f ( 1 ) = 2 π e 1 / ( 2 σ 2 ) σ .

and

π f ( x ) + 2 θ 2 x f ( x ) = 0 , f ( 1 ) = 2 e θ 2 / π θ π

Parameter estimation

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

σ ^ = 1 n i = 1 n x i 2
  • The distribution is a special case of the folded normal distribution with μ = 0.
  • It also coincides with a zero-mean normal distribution truncated from below at zero (see truncated normal distribution)
  • If Y has a half-normal distribution, then (Y/σ)2 has a chi square distribution with 1 degree of freedom, i.e. Y/σ has a chi distribution with 1 degree of freedom.
  • If Y has a half-normal distribution, then Y/σ has a chi distribution with 1 degree of freedom.
  • References

    Half-normal distribution Wikipedia