Wrapped distribution

From testwiki
Jump to navigation Jump to search

In probability theory and directional statistics, a wrapped probability distribution is a continuous probability distribution that describes data points that lie on a unit n-sphere. In one dimension, a wrapped distribution consists of points on the unit circle. If ϕ is a random variate in the interval (,) with probability density function (PDF) p(ϕ), then z=eiϕ is a circular variable distributed according to the wrapped distribution pwz(θ) and θ=arg(z) is an angular variable in the interval (π,π] distributed according to the wrapped distribution pw(θ).

Any probability density function p(ϕ) on the line can be "wrapped" around the circumference of a circle of unit radius.[1] That is, the PDF of the wrapped variable

θ=ϕmod2π in some interval of length 2π

is

pw(θ)=k=p(θ+2πk)

which is a periodic sum of period 2π. The preferred interval is generally (π<θπ) for which ln(eiθ)=arg(eiθ)=θ.

Theory

In most situations, a process involving circular statistics produces angles (ϕ) which lie in the interval (,), and are described by an "unwrapped" probability density function p(ϕ). However, a measurement will yield an angle θ which lies in some interval of length 2π (for example, 0 to 2π). In other words, a measurement cannot tell whether the true angle ϕ or a wrapped angle θ=ϕ+2πa, where a is some unknown integer, has been measured.

If we wish to calculate the expected value of some function of the measured angle it will be:

f(θ)=p(ϕ)f(ϕ+2πa)dϕ.

We can express the integral as a sum of integrals over periods of 2π:

f(θ)=k=2πk2π(k+1)p(ϕ)f(ϕ+2πa)dϕ.

Changing the variable of integration to θ=ϕ2πk and exchanging the order of integration and summation, we have

f(θ)=02πpw(θ)f(θ+2πa)dθ

where pw(θ) is the PDF of the wrapped distribution and a is another unknown integer (a=a+k). The unknown integer a introduces an ambiguity into the expected value of f(θ), similar to the problem of calculating angular mean. This can be resolved by introducing the parameter z=eiθ, since z has an unambiguous relationship to the true angle ϕ:

z=eiθ=eiϕ.

Calculating the expected value of a function of z will yield unambiguous answers:

f(z)=02πpw(θ)f(eiθ)dθ.

For this reason, the z parameter is preferred over measured angles θ in circular statistical analysis. This suggests that the wrapped distribution function may itself be expressed as a function of z such that:

f(z)=pwz(z)f(z)dz

where pw(z) is defined such that pw(θ)|dθ|=pwz(z)|dz|. This concept can be extended to the multivariate context by an extension of the simple sum to a number of F sums that cover all dimensions in the feature space:

pw(θ)=k1,...,kF=p(θ+2πk1𝐞1++2πkF𝐞F)

where 𝐞k=(0,,0,1,0,,0)𝖳 is the kth Euclidean basis vector.

Expression in terms of characteristic functions

A fundamental wrapped distribution is the Dirac comb, which is a wrapped Dirac delta function:

Δ2π(θ)=k=δ(θ+2πk).

Using the delta function, a general wrapped distribution can be written

pw(θ)=k=p(θ)δ(θθ+2πk)dθ.

Exchanging the order of summation and integration, any wrapped distribution can be written as the convolution of the unwrapped distribution and a Dirac comb:

pw(θ)=p(θ)Δ2π(θθ)dθ.

The Dirac comb may also be expressed as a sum of exponentials, so we may write:

pw(θ)=12πp(θ)n=ein(θθ)dθ.

Again exchanging the order of summation and integration:

pw(θ)=12πn=p(θ)ein(θθ)dθ.

Using the definition of ϕ(s), the characteristic function of p(θ) yields a Laurent series about zero for the wrapped distribution in terms of the characteristic function of the unwrapped distribution:

pw(θ)=12πn=ϕ(n)einθ

or

pwz(z)=12πn=ϕ(n)zn

Analogous to linear distributions, ϕ(m) is referred to as the characteristic function of the wrapped distribution (or more accurately, the characteristic sequence).[2] This is an instance of the Poisson summation formula, and it can be seen that the coefficients of the Fourier series for the wrapped distribution are simply the coefficients of the Fourier transform of the unwrapped distribution at integer values.

Moments

The moments of the wrapped distribution pw(z) are defined as:

zm=pwz(z)zmdz.

Expressing pw(z) in terms of the characteristic function and exchanging the order of integration and summation yields:

zm=12πn=ϕ(n)zmndz.

From the residue theorem we have

zmndz=2πδmn

where δk is the Kronecker delta function. It follows that the moments are simply equal to the characteristic function of the unwrapped distribution for integer arguments:

zm=ϕ(m).

Generation of random variates

If X is a random variate drawn from a linear probability distribution P, then Z=eiX is a circular variate distributed according to the wrapped P distribution, and θ=arg(Z) is the angular variate distributed according to the wrapped P distribution, with π<θπ.

Entropy

The information entropy of a circular distribution with probability density pw(θ) is defined as:

H=Γpw(θ)ln(pw(θ))dθ

where Γ is any interval of length 2π.[1] If both the probability density and its logarithm can be expressed as a Fourier series (or more generally, any integral transform on the circle), the orthogonal basis of the series can be used to obtain a closed form expression for the entropy.

The moments of the distribution ϕ(n) are the Fourier coefficients for the Fourier series expansion of the probability density:

pw(θ)=12πn=ϕneinθ.

If the logarithm of the probability density can also be expressed as a Fourier series:

ln(pw(θ))=m=cmeimθ

where

cm=12πΓln(pw(θ))eimθdθ.

Then, exchanging the order of integration and summation, the entropy may be written as:

H=12πm=n=cmϕnΓei(mn)θdθ.

Using the orthogonality of the Fourier basis, the integral may be reduced to:

H=n=cnϕn.

For the particular case when the probability density is symmetric about the mean, cm=cm and the logarithm may be written:

ln(pw(θ))=c0+2m=1cmcos(mθ)

and

cm=12πΓln(pw(θ))cos(mθ)dθ

and, since normalization requires that ϕ0=1, the entropy may be written:

H=c02n=1cnϕn.

See also

References

Template:More footnotes

Template:ProbDistributions Template:Use dmy dates