You are on page 1of 11

VON MISES DISTRIBUTION

In probability theory and directional statistics, the von Mises distribution (also known as the
circular normal distribution or Tikhonov distribution) is a continuous probability distribution on the
circle. It is a close approximation to the wrapped normal distribution, which is the circular analogue of the
normal distribution. A freely diffusing angle on a circle is a wrapped normally distributed random
variable with an unwrapped variance that grows linearly in time. On the other hand, the von Mises
distribution is the stationary distribution of a drift and diffusion process on the circle in a harmonic
potential, i.e. with a preferred orientation.[1] The von Mises distribution is the maximum entropy
distribution for a given expectation value of . The von Mises distribution is a special case of the
von Mises–Fisher distribution on the N-dimensional sphere.

Probability density function


The support is chosen to be [−π,π] with μ = 0
Cumulative distribution function
The support is chosen to be [−π,π] with μ = 0

Definition
The von Mises probability density function for the angle x is given by[2]:

where I0(x) is the modified Bessel function of order 0.


The parameters μ and 1/κ are analogous to μ and σ2 (the mean and variance) in the normal distribution:
 μ is a measure of location (the distribution is clustered around μ), and
 κ is a measure of concentration (a reciprocal measure of dispersion, so 1/κ is analogous to σ2).
o If κ is zero, the distribution is uniform, and for small κ, it is close to uniform.
o If κ is large, the distribution becomes very concentrated about the angle μ with κ being a
measure of the concentration. In fact, as κ increases, the distribution approaches a normal
distribution in x with mean μ and variance 1/κ.

The probability density can be expressed as a series of Bessel functions (see Abramowitz and Stegun
§9.6.34)
where Ij(x) is the modified Bessel function of order j. The cumulative distribution function is not analytic
and is best found by integrating the above series. The indefinite integral of the probability density is:

The cumulative distribution function will be a function of the lower limit of integration x0:

Moments
The moments of the von Mises distribution are usually calculated as the moments of z = eix rather than the
angle x itself. These moments are referred to as "circular moments". The variance calculated from these
moments is referred to as the "circular variance". The one exception to this is that the "mean" usually
refers to the argument of the circular mean, rather than the circular mean itself.
The nth raw moment of z is:

where the integral is over any interval of length 2π. In calculating the above integral, we use the fact
that zn = cos(nx) + i sin(nx) and the Bessel function identity (See Abramowitz and Stegun §9.6.19):

The mean of z is then just

and the "mean" value of x is then taken to be the argument μ. This is the "average" direction of the
angular random variables. The variance of z, or the circular variance of x is:

Limiting behavior
In the limit of large κ the distribution becomes a normal distribution
where σ2 = 1/κ. In the limit of small κ it becomes a uniform distribution:

where the interval for the uniform distribution U(x) is the chosen interval of length 2π.

Estimation of parameters

A series of N measurements drawn from a von Mises distribution may be used to estimate
certain parameters of the distribution. (Borradaile, 2003) The average of the series is defined as

and its expectation value will be just the first moment:

In other words, is an unbiased estimator of the first moment. If we assume that the mean lies

in the interval , then Arg will be a (biased) estimator of the mean .


Viewing the as a set of vectors in the complex plane, the statistic is the square of the length
of the averaged vector:

and its expectation value is:

In other words, the statistic

will be an unbiased estimator of

and solving the equation


for will yield a (biased) estimator of . In analogy to the linear case, the solution to the equation

will yield the maximum likelihood estimate of and both will be equal in the limit of large N.

Distribution of the mean

The distribution of the sample mean for the von Mises distribution is given by:[3]

where N is the number of measurements and consists of intervals of in the variables, subject to the
constraint that and are constant, where is the mean resultant:

and is the mean angle:

Note that product term in parentheses is just the distribution of the mean for a circular uniform
distribution.[3]

Entropy
The information entropy of the Von Mises distribution is defined as[2]:

where is any interval of length . The logarithm of the density of the Von Mises distribution is
straightforward:

The characteristic function representation for the Von Mises distribution is:
where . Substituting these expressions into the entropy integral, exchanging the
order of integration and summation, and using the orthogonality of the cosines, the entropy may be
written:

For , the von Mises distribution becomes the circular uniform distribution and the entropy attains

its maximum value of .


List Program
PROGRAM von_Mises
REAL :: k
!LOGICAL :: first
REAL :: fn_val

! Local variables

INTEGER :: j, n
INTEGER, SAVE :: nk
REAL, PARAMETER :: pi = 3.14159265
REAL, SAVE :: p(20), theta(0:20)
REAL :: sump, r, th, lambda, rlast
REAL :: dk
print *,' '
10 write(*,"(' k = ')",advance='no'); read *, k
! write(*,"(' first = ')",advance='no'); read *, first
zero=0.0
one=1.0
half=0.5
!IF (first) THEN ! Initialization, if necessary
IF (k < zero) THEN
WRITE(*, *) '** Error: argument k for random_von_Mises = ', k
goto 10
END IF

nk = k + k + one
IF (nk > 20) THEN
WRITE(*, *) '** Error: argument k for random_von_Mises = ', k
goto 10
END IF

dk = k
theta(0) = zero
IF (k > half) THEN

! Set up array p of probabilities.

sump = zero
DO j = 1, nk
IF (j < nk) THEN
theta(j) = ACOS(one - j/k)
ELSE
theta(nk) = pi
END IF

! Numerical integration of e^[k.cos(x)] from theta(j-1) to theta(j)

CALL integral(theta(j-1), theta(j), p(j), dk)


sump = sump + p(j)
END DO
p(1:nk) = p(1:nk) / sump
ELSE
p(1) = one
theta(1) = pi
END IF ! if k > 0.5
!END IF ! if first

CALL RANDOM_NUMBER(r)
DO j = 1, nk
r = r - p(j)
IF (r < zero) EXIT
END DO
r = -r/p(j)

DO
th = theta(j-1) + r*(theta(j) - theta(j-1))
lambda = k - j + one - k*COS(th)
n=1
rlast = lambda

DO
CALL RANDOM_NUMBER(r)
IF (r > rlast) EXIT
n=n+1
rlast = r
END DO

IF (n .NE. 2*(n/2)) EXIT ! is n even?


CALL RANDOM_NUMBER(r)
END DO

fn_val = SIGN(th, (r - rlast)/(one - rlast) - half)


PRINT*,'fn_val =',fn_val
END PROGRAM von_Mises

SUBROUTINE integral(a, b, result, dk)

! Gaussian integration of exp(k.cosx) from a to b.

REAL :: dk
REAL :: a, b
REAL :: result

! Local variables

REAL :: xmid, range, x1, x2, &


x(3) = (/0.238619186083197, 0.661209386466265, 0.932469514203152/), &
w(3) = (/0.467913934572691, 0.360761573048139, 0.171324492379170/)
INTEGER :: i

xmid = (a + b)/2.
range = (b - a)/2.

result = 0.
DO i = 1, 3
x1 = xmid + x(i)*range
x2 = xmid - x(i)*range
result = result + w(i)*(EXP(dk*COS(x1)) + EXP(dk*COS(x2)))
END DO

result = result * range


RETURN
END SUBROUTINE integral
References
1. ^ Risken, H. (1989). The Fokker–Planck Equation. Springer. ISBN 978-3-540-61530-9.
http://www.amazon.com/dp/354061530X.
2. ^ a b Mardia, Kantilal; Jupp, Peter E. (1999). Directional Statistics. Wiley. ISBN 978-0-471-95333-
3. http://www.amazon.com/dp/0471953334. Retrieved 2011-07-19.
3. ^ a b Jammalamadaka, S. Rao; Sengupta, A. (2001). Topics in Circular Statistics. World Scientific
Publishing Company. ISBN 978-981-02-3778-3.
http://www.amazon.com/dp/9810237782#reader_9810237782. Retrieved 2010-03-03.
4. Abramowitz, M. and Stegun, I. A. (ed.), Handbook of Mathematical Functions, National Bureau of
Standards, 1964; reprinted Dover Publications, 1965. ISBN 0-486-61272-4
5. “Algorithm AS 86: The von Mises Distribution Function,” Mardia, Applied Statistics, 24, 1975
(pp. 268–272).
6. “Algorithm 518, Incomplete Bessel Function I0: The von Mises Distribution,” Hill, ACM
Transactions on Mathematical Software, Vol. 3, No. 3, September 1977, Pages 279–284.
7. Best, D. and Fisher, N. (1979). Efficient simulation of the von Mises distribution. Applied
Statistics, 28, 152–157.
8. Evans, M., Hastings, N., and Peacock, B., "von Mises Distribution." Ch. 41 in Statistical
Distributions, 3rd ed. New York. Wiley 2000.
9. Fisher, Nicholas I., Statistical Analysis of Circular Data. New York. Cambridge 1993.
10. “Statistical Distributions,” 2nd. Edition, Evans, Hastings, and Peacock, John Wiley and Sons, 1993,
(chapter 39). ISBN 0-471-55951-2
11. Borradaile, Graham (2003). Statistics of Earth Science Data. Springer. ISBN 978-3-540-43603-4.
http://books.google.com/books?id=R3GpDglVOSEC&printsec=frontcover&source=gbs_navlinks_s
#v=onepage&q=&f=false. Retrieved 31 Dec 2009.

You might also like