Projected normal distribution#Wider application of the normalized linear transform
{{Short description|Probability distribution}}
{{Infobox probability distribution
| name = Projected normal distribution
| type = density
| notation =
| parameters = (location)
(scale)
| support =
| pdf = complicated, see text
}}
In directional statistics, the projected normal distribution (also known as offset normal distribution, angular normal distribution or angular Gaussian distribution){{sfn|Wang|Gelfand|2013}}{{sfn|Pukkila|Rao|1988}} is a probability distribution over directions that describes the radial projection of a random variable with n-variate normal distribution over the unit (n-1)-sphere.
Definition and properties
Given a random variable that follows a multivariate normal distribution , the projected normal distribution represents the distribution of the random variable obtained projecting over the unit sphere. In the general case, the projected normal distribution can be asymmetric and multimodal. In case is parallel to an eigenvector of , the distribution is symmetric.{{sfn|Hernandez-Stumpfhauser|Breidt|van der Woerd|2017|p=115}} The first version of such distribution was introduced in Pukkila and Rao (1988).{{sfn|Pukkila|Rao|1988|p=381}}
Density function
The density of the projected normal distribution can be constructed from the density of its generator n-variate normal distribution by re-parametrising to n-dimensional spherical coordinates and then integrating over the radial coordinate.
In spherical coordinates with radial component and angles , a point can be written as , with . The joint density becomes
:
p(r, \boldsymbol \theta | \boldsymbol \mu, \boldsymbol \Sigma) =
\frac{r^{n-1}}{\sqrt
\boldsymbol \Sigma |
e^{-\frac{1}{2} (r \boldsymbol v - \boldsymbol \mu)^\top \Sigma^{-1} (r \boldsymbol v - \boldsymbol \mu)}
and the density of can then be obtained as{{sfn|Hernandez-Stumpfhauser|Breidt|van der Woerd|2017|p=117}}
:
p(\boldsymbol \theta | \boldsymbol \mu, \boldsymbol \Sigma) = \int_0^\infty p(r, \boldsymbol \theta | \boldsymbol \mu, \boldsymbol \Sigma) dr .
The same density had been previously obtained in Pukkila and Rao (1988, Eq. (2.4)){{sfn|Pukkila|Rao|1988|p=381}} using a different notation.
= Circular distribution =
Parametrising the position on the unit circle in polar coordinates as , the density function can be written with respect to the parameters and of the initial normal distribution as
:
p(\theta | \boldsymbol\mu, \boldsymbol\Sigma) =
\frac{e^{-\frac{1}{2} \boldsymbol \mu^\top \boldsymbol \Sigma^{-1} \boldsymbol \mu}}{2 \pi \sqrt
\boldsymbol \Sigma |
\left( 1 + T(\theta) \frac{\Phi(T(\theta))}{\phi(T(\theta))} \right) I_{[0, 2\pi)}(\theta)
where and are the density and cumulative distribution of a standard normal distribution, , and is the indicator function.{{sfn|Hernandez-Stumpfhauser|Breidt|van der Woerd|2017|p=115}}
In the circular case, if the mean vector is parallel to the eigenvector associated to the largest eigenvalue of the covariance, the distribution is symmetric and has a mode at and either a mode or an antimode at , where is the polar angle of . If the mean is parallel to the eigenvector associated to the smallest eigenvalue instead, the distribution is also symmetric but has either a mode or an antimode at and an antimode at .{{sfn|Hernandez-Stumpfhauser|Breidt|van der Woerd|2017|ps=, Supplementary material, p. 1.}}
= Spherical distribution =
Parametrising the position on the unit sphere in spherical coordinates as where are the azimuth and inclination angles respectively, the density function becomes
:
p(\boldsymbol \theta | \boldsymbol\mu, \boldsymbol\Sigma) =
\frac{e^{-\frac{1}{2} \boldsymbol \mu^\top \boldsymbol \Sigma^{-1} \boldsymbol \mu}}{\sqrt
\boldsymbol \Sigma |
\left(\frac{\Phi(T(\boldsymbol \theta))}{\phi(T(\boldsymbol \theta))} + T(\boldsymbol \theta) \left( 1 + T(\boldsymbol \theta) \frac{\Phi(T(\boldsymbol \theta))}{\phi(T(\boldsymbol \theta))} \right) \right)
I_{[0, 2\pi)}(\theta_1) I_{[0, \pi]}(\theta_2)
where , , , and have the same meaning as the circular case.{{sfn|Hernandez-Stumpfhauser|Breidt|van der Woerd|2017|p=123}}
Angular Central Gaussian Distribution
In the special case, , the projected normal distribution, with is known as the angular central Gaussian (ACG){{sfn|Tyler|1987}} and in this case, the density function can be obtained in closed form as a function of Cartesian coordinates. Let and project radially: so that (the unit hypersphere). We write , which as explained above, has density (with respect to Lebesgue measure pulled back to ):
:
p_{\text{ACG}}(\mathbf v\mid\boldsymbol\Sigma)
= \int_0^\infty r^{n-1}\mathcal N_n(r\mathbf v\mid\mathbf 0, \boldsymbol\Sigma)\,dr
= \frac{\Gamma(\frac n2)}{2\pi^{\frac n2}}\left|\boldsymbol\Sigma\right|^{-\frac12}(\mathbf v'\boldsymbol\Sigma^{-1}\mathbf v)^{-\frac n2}
where the integral can be solved by a change of variables and then using the standard definition of the gamma function. Notice that:
- For any there is the parameter indeterminacy:
:.
- If , the uniform distribution, results, with constant density equal to the reciprocal of the surface area of :
:
p_\text{ACG}(\mathbf v\mid\mathbf kI_n)=p_\text{uniform}=\frac{\Gamma(\frac n2)}{2\pi^\frac n2}
=ACG via transformation of normal or uniform variates=
Let be any -by- invertible matrix such that . Let (uniform) and (chi distribution), so that: (multivariate normal). Now consider:
:
\mathbf v = \frac{\mathbf{Tu}}{\lVert\mathbf{Tu}\rVert} = \frac{\mathbf x}{\lVert\mathbf x\rVert}\sim\operatorname{ACG}(\boldsymbol\Sigma)
which shows that the ACG distribution also results from applying, to uniform variates, the normalized linear transform:{{sfn|Tyler|1987}}
:
Some further explanation of these two ways to obtain may be helpful:
- If we start with , sampled from a multivariate normal, we can project radially onto to obtain ACG variates. To derive the ACG density, we first do a change of variables: , which is still an -dimensional representation, and this transformation induces the differential volume change factor, , which is proportional to volume in the -dimensional tangent space perpendicular to . Then, to finally obtain the ACG density on the -dimensional unitsphere, we need to marginalize over .
- If we start with , sampled from the uniform distribution, we do not need to marginalize, because we are already in dimensions. Instead, to obtain ACG variates (and the associated density), we can directly do the change of variables, , for which further details are given in the next subsection.
Caveat: when is nonzero, although , a similar duality does not hold:
:
\frac{\mathbf {Tu} + \boldsymbol\mu}{\lVert\mathbf {Tu} + \boldsymbol\mu\rVert}
\ne\frac{s\mathbf {Tu} + \boldsymbol\mu}{\lVert s\mathbf {Tu} + \boldsymbol\mu\rVert}\sim\mathcal{PN}_n(\boldsymbol{\mu,\Sigma})
Although we can radially project affine-transformed normal variates to get variates, this does not work for uniform variates.
=Wider application of the normalized linear transform=
The normalized linear transform, , is a bijection from the unitsphere to itself; the inverse is . This transform is of independent interest, as it may be applied as a probabilistic flow on the hypersphere (similar to a normalizing flow) to generalize other (non-uniform) distributions on hyperspheres, for example the Von Mises-Fisher distribution. The fact that we have a closed form for the ACG density allows us to recover also in closed form the differential volume change induced by this transform.
For the change of variables, on the manifold, , the uniform and ACG densities are related as:{{sfn|Sorrenson|Draxler|Rousselot|Hummerich|2024|ps=, Appendix A.}}
:
p_{\text{ACG}}(\mathbf v\mid\boldsymbol\Sigma) = \frac{p_{\text{uniform}}}{R(\mathbf v,\boldsymbol\Sigma)}
where the (constant) uniform density is and where is the differential volume change factor from the input to the output of the transformation; specifically, it is given by the absolute value of the determinant of an -by- matrix:
:
R(\mathbf v,\boldsymbol\Sigma) = \operatorname{abs}\left|\mathbf Q_{\mathbf v}'\mathbf J_{\mathbf u}\mathbf Q_{\mathbf u}\right|
where is the -by- Jacobian matrix of the transformation in Euclidean space, , evaluated at . In Euclidean space, the transformation and its Jacobian are non-invertible, but when the domain and co-domain are restricted to , then is a bijection and the induced differential volume ratio, is obtained by projecting onto the -dimensional tangent spaces at the transformation input and output: are -by- matrices whose orthonormal columns span the tangent spaces. Although the above determinant formula is relatively easy to evaluate numerically on a software platform equipped with linear algebra and automatic differentiation, a simple closed form is hard to derive directly. However, since we already have , we can recover:
:
R(\mathbf v, \boldsymbol\Sigma) = \left|\boldsymbol\Sigma\right|^{\frac12}(\mathbf v'\boldsymbol\Sigma^{-1}\mathbf v)^{\frac n2}
= \frac{\operatorname{abs}\left|\mathbf T\right|}{\lVert\mathbf{Tu}\rVert^n}
where in the final RHS it is understood that and .
The normalized linear transform can now be used, for example, to give a closed-form density for a more flexible distribution on the hypersphere, that is generalized from the Von Mises-Fisher. Let and ; the resulting density is:
:
p(\mathbf v\mid\boldsymbol\mu,\kappa,\mathbf T) = \frac{p_\text{VMF}\bigl(\mathbf f_{T^{-1}}(\mathbf v)\mid\boldsymbol\mu,\kappa\bigr)}{R(\mathbf v,\mathbf T\mathbf T')}
See also
References
{{reflist}}
Sources
- {{cite journal|title=Pattern recognition based on scale invariant discriminant functions|year=1988|journal=Information Sciences|volume=45|pages=379–389|issue=3|last1=Pukkila|first1=Tarmo M.|last2=Rao|first2=C. Radhakrishna|doi=10.1016/0020-0255(88)90012-6 }}
- {{cite journal|title=The General Projected Normal Distribution of Arbitrary Dimension: Modeling and Bayesian Inference|year=2017|journal=Bayesian Analysis|volume=12|pages=113–133|issue=1|last1=Hernandez-Stumpfhauser|first1=Daniel|last2=Breidt|first2=F. Jay|last3=van der Woerd|first3=Mark J.|doi=10.1214/15-BA989 |doi-access=free}}
- {{cite journal|title=Directional data analysis under the general projected normal distribution|last1=Wang|first1=Fangpo|last2=Gelfand|first2=Alan E|journal=Statistical Methodology|volume=10|number=1|pages=113–127|year=2013|publisher=Elsevier|doi=10.1016/j.stamet.2012.07.005 |pmid=24046539 |pmc=3773532 }}
- {{cite journal|title=Statistical analysis for the angular central Gaussian distribution on the sphere|last1=Tyler|first1=David E|journal=Biometrika|volume=74|number=3|pages=579–589|year=1987|doi=10.2307/2336697}}
- {{cite arxiv
| title = Learning Distributions on Manifolds with Free-Form Flows
| first1 = Peter | last1 = Sorrenson
| first2 = Felix | last2 = Draxler
| first3 = Armand | last3 = Rousselot
| first4 = Sander | last4 = Hummerich
| first5 = Ullrich | last5 = Köthe
| eprint = 2312.09852
| year = 2024
| class = cs.LG
}}
{{DEFAULTSORT:Projected normal distribution}}