From Surf Wiki (app.surf) — the open knowledge base
Half-normal distribution
Probability distribution
Probability distribution
\sigma=1 \sigma=1 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,\sigma^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 \sigma parametrization of the normal distribution, the probability density function (PDF) of the half-normal is given by
: f_Y(y; \sigma) = \frac{\sqrt{2}}{\sigma\sqrt{\pi}}\exp \left( -\frac{y^2}{2\sigma^2} \right) \quad y \geq 0,
where E[Y] = \mu = \frac{\sigma\sqrt{2}}{\sqrt{\pi}}.
Alternatively using a scaled precision (inverse of the variance) parametrization (to avoid issues if \sigma is near zero), obtained by setting \theta=\frac{\sqrt{\pi}}{\sigma\sqrt{2}}, the probability density function is given by
: f_Y(y; \theta) = \frac{2\theta}{\pi}\exp \left( -\frac{y^2\theta^2}{\pi} \right) \quad y \geq 0,
where E[Y] = \mu = \frac{1}{\theta}.
The cumulative distribution function (CDF) is given by
: F_Y(y; \sigma) = \int_0^y \frac{1}{\sigma}\sqrt{\frac{2}{\pi}} , \exp \left( -\frac{x^2}{2\sigma^2} \right), dx
Using the change-of-variables z = x/(\sqrt{2}\sigma), the CDF can be written as
: F_Y(y; \sigma) = \frac{2}{\sqrt{\pi}} ,\int_0^{y/(\sqrt{2}\sigma)}\exp \left(-z^2\right)dz = \operatorname{erf}\left(\frac{y}{\sqrt{2}\sigma}\right), where erf is the error function, a standard function in many mathematical software packages.
The quantile function (or inverse CDF) is written: :Q(F;\sigma)=\sigma\sqrt{2} \operatorname{erf}^{-1}(F) where 0\le F \le 1 and \operatorname{erf}^{-1} is the inverse error function
The expectation is then given by
: E[Y] = \sigma \sqrt{2/\pi},
The variance is given by
: \operatorname{var}(Y) = \sigma^2\left(1 - \frac{2}{\pi}\right).
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) = \frac{1}{2} \log_2 \left( \frac{\pi e \sigma^2}{2} \right) = \frac{1}{2} \log_2 \left( 2\pi e \sigma^2 \right) -1.
Applications
The half-normal distribution is commonly utilized as a prior probability distribution for variance parameters in Bayesian inference applications.
Parameter estimation
Given numbers {x_i}_{i=1}^n drawn from a half-normal distribution, the unknown parameter \sigma of that distribution can be estimated by the method of maximum likelihood, giving
: \hat \sigma = \sqrt{\frac 1 n \sum_{i=1}^n x_i^2}
The bias is equal to : b \equiv \operatorname{E}\bigg[;(\hat\sigma_\mathrm{mle} - \sigma);\bigg] = - \frac{\sigma}{4n}
which yields the bias-corrected maximum likelihood estimator
: \hat{\sigma,}^*\text{mle} = \hat{\sigma,}\text{mle} - \hat{b,}.
References
References
- Gelman, A.. (2006). "Prior distributions for variance parameters in hierarchical models". Bayesian Analysis.
- (2021). "On weakly informative prior distributions for the heterogeneity parameter in Bayesian random-effects meta-analysis". Research Synthesis Methods.
- (22 June 2021). "The Modified-Half-Normal distribution: Properties and an efficient sampling scheme". Communications in Statistics - Theory and Methods.
This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.
Ask Mako anything about Half-normal distribution — get instant answers, deeper analysis, and related topics.
Research with MakoFree with your Surf account
Create a free account to save articles, ask Mako questions, and organize your research.
Sign up freeThis content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.
Report