Lably
Skip to content

Wrapped distribution

Probability distribution on a hypersphere

  • 4 min read
  • 5 chapters

Related on Lably

Through Probability distribution, Unit circle and Expected value

Any probability density function p(ϕ) on the line can be "wrapped" around the circumference of a circle of unit radius. 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πk1e1+⋯+2πkFeF)

where ek=(0,…,0,1,0,…,0)T is the kth Euclidean basis vector.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Statistics