Harman Patil (Editor)

Wrapped distribution

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

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 will consist of points on the unit circle. If φ is a random variate in the interval (-∞,∞;) with probability density function p(φ), then z = e i φ will be a circular variable distributed according to the wrapped distribution pzw(z) and θ=arg(z) will be an angular variable in the interval (-π,π ] distributed according to the wrapped distribution pw(θ).

Contents

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

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

is

p w ( θ ) = k = p ( θ + 2 π k ) .

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

Theory

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

θ = ϕ + 2 π a .

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 π (e.g. 0 to 2 π ):

f ( θ ) = k = 2 π k 2 π ( 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 ( θ ) = 0 2 π p w ( θ ) f ( θ + 2 π a ) d θ

where p w ( θ ) is the pdf of the "wrapped" distribution and a' is another unknown integer (a'=a+k). It can be seen that the unknown integer a' introduces an ambiguity into the expectation value of f ( θ ) . A particular instance of this problem is encountered when attempting to take the mean of a set of measured angles. If, instead of the measured angles, we introduce the parameter z = e i θ it is seen that z has an unambiguous relationship to the "true" angle ϕ since:

z = e i θ = e i ϕ .

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

f ( z ) = 0 2 π p w ( θ ) f ( e i θ ) d θ

and it is for this reason that the z parameter is the preferred statistical variable to use in circular statistical analysis rather than the measured angles θ . This suggests, and it is shown below, that the wrapped distribution function may itself be expressed as a function of z so that:

f ( z ) = p w z ( z ) f ( z ) d z

where p w ( z ) is defined such that p w ( θ ) | d θ | = p w z ( z ) | d z | . 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:

p w ( θ ) = k 1 , . . . , k F = p ( θ + 2 π k 1 e 1 + + 2 π k F e F )

where e k = ( 0 , , 0 , 1 , 0 , , 0 ) T is the k th 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

p w ( θ ) = 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:

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

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

p w ( θ ) = 1 2 π p ( θ ) n = e i n ( θ θ ) d θ

again exchanging the order of summation and integration,

p w ( θ ) = 1 2 π n = p ( θ ) e i n ( θ θ ) 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:

p w ( θ ) = 1 2 π n = ϕ ( n ) e i n θ

or

p w z ( z ) = 1 2 π n = ϕ ( n ) z n .

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

Moments

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

z m = p w z ( z ) z m d z .

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

z m = 1 2 π n = ϕ ( n ) z m n d z .

From the theory of residues we have

z m n d z = 2 π δ m n

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:

z m = ϕ ( m ) .

Generation of random variates

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

Entropy

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

H = Γ p w ( θ ) ln ( p w ( θ ) ) d θ

where Γ is any interval of length 2 π . If both the probability density and its logarithm can be expressed as a Fourier series (or more generally, any integral transform on the circle) then the orthogonality property may be used to obtain a series representation for the entropy which may reduce to a closed form.

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

p w ( θ ) = 1 2 π n = ϕ n e i n θ

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

ln ( p w ( θ ) ) = m = c m e i m θ

where

c m = 1 2 π Γ ln ( p w ( θ ) ) e i m θ d θ

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

H = 1 2 π m = n = c m ϕ n Γ e i ( m n ) θ d θ

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

H = n = c n ϕ n

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

ln ( p w ( θ ) ) = c 0 + 2 m = 1 c m cos ( m θ )

and

c m = 1 2 π Γ ln ( p w ( θ ) ) cos ( m θ ) d θ

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

H = c 0 2 n = 1 c n ϕ n

References

Wrapped distribution Wikipedia