To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

# von Mises distribution

Parameters Probability density function The support is chosen to be [−π,π] with μ = 0 Cumulative distribution function The support is chosen to be [−π,π] with μ = 0 ${\displaystyle \mu }$ real${\displaystyle \kappa >0}$ ${\displaystyle x\in }$ any interval of length 2π ${\displaystyle {\frac {e^{\kappa \cos(x-\mu )}}{2\pi I_{0}(\kappa )}}}$ (not analytic – see text) ${\displaystyle \mu }$ ${\displaystyle \mu }$ ${\displaystyle \mu }$ ${\displaystyle {\textrm {var}}(x)=1-I_{1}(\kappa )/I_{0}(\kappa )}$ (circular) ${\displaystyle -\kappa {\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}+\ln[2\pi I_{0}(\kappa )]}$ (differential) ${\displaystyle {\frac {I_{|t|}(\kappa )}{I_{0}(\kappa )}}e^{it\mu }}$

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 ${\displaystyle \theta }$ 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 circular data when the real and imaginary parts of the first circular moment are specified. The von Mises distribution is a special case of the von Mises–Fisher distribution on the N-dimensional sphere.

## Definition

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

${\displaystyle f(x\mid \mu ,\kappa )={\frac {e^{\kappa \cos(x-\mu )}}{2\pi I_{0}(\kappa )}}}$

where I0(${\displaystyle \kappa }$) is the modified Bessel function of order 0.

The parameters μ and 1/${\displaystyle \kappa }$ are analogous to μ and σ2 (the mean and variance) in the normal distribution:

• μ is a measure of location (the distribution is clustered around μ), and
• ${\displaystyle \kappa }$ is a measure of concentration (a reciprocal measure of dispersion, so 1/${\displaystyle \kappa }$ is analogous to σ2).
• If ${\displaystyle \kappa }$ is zero, the distribution is uniform, and for small ${\displaystyle \kappa }$, it is close to uniform.
• If ${\displaystyle \kappa }$ is large, the distribution becomes very concentrated about the angle μ with ${\displaystyle \kappa }$ being a measure of the concentration. In fact, as ${\displaystyle \kappa }$ increases, the distribution approaches a normal distribution in x  with mean μ and variance 1/${\displaystyle \kappa }$.

The probability density can be expressed as a series of Bessel functions[3]

${\displaystyle f(x\mid \mu ,\kappa )={\frac {1}{2\pi }}\left(1+{\frac {2}{I_{0}(\kappa )}}\sum _{j=1}^{\infty }I_{j}(\kappa )\cos[j(x-\mu )]\right)}$

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:

${\displaystyle \Phi (x\mid \mu ,\kappa )=\int f(t\mid \mu ,\kappa )\,dt={\frac {1}{2\pi }}\left(x+{\frac {2}{I_{0}(\kappa )}}\sum _{j=1}^{\infty }I_{j}(\kappa ){\frac {\sin[j(x-\mu )]}{j}}\right).}$

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

${\displaystyle F(x\mid \mu ,\kappa )=\Phi (x\mid \mu ,\kappa )-\Phi (x_{0}\mid \mu ,\kappa ).\,}$

## Moments

The moments of the von Mises distribution are usually calculated as the moments of the complex exponential 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 complex mean.

The nth raw moment of z is:

${\displaystyle m_{n}=\langle z^{n}\rangle =\int _{\Gamma }z^{n}\,f(x|\mu ,\kappa )\,dx}$
${\displaystyle ={\frac {I_{|n|}(\kappa )}{I_{0}(\kappa )}}e^{in\mu }}$

where the integral is over any interval ${\displaystyle \Gamma }$ of length 2π. In calculating the above integral, we use the fact that zn = cos(nx) + i sin(nx) and the Bessel function identity:[4]

${\displaystyle I_{n}(\kappa )={\frac {1}{\pi }}\int _{0}^{\pi }e^{\kappa \cos(x)}\cos(nx)\,dx.}$

The mean of the complex exponential z  is then just

${\displaystyle m_{1}={\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}e^{i\mu }}$

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

${\displaystyle {\textrm {var}}(x)=1-E[\cos(x-\mu )]=1-{\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}.}$

## Limiting behavior

When ${\displaystyle \kappa }$ is large, the distribution resembles a normal distribution. More specifically, for large positive real numbers ${\displaystyle \kappa }$,

${\displaystyle f(x\mid \mu ,\kappa )\approx {\frac {1}{\sigma {\sqrt {2\pi }}}}\exp \left[{\dfrac {-(x-\mu )^{2}}{2\sigma ^{2}}}\right]}$

where σ2 = 1/${\displaystyle \kappa }$ and the difference between the left hand side and the right hand side of the approximation converges uniformly to zero as ${\displaystyle \kappa }$ goes to infinity. Also, when ${\displaystyle \kappa }$ is small, the probability density function resembles a uniform distribution:

${\displaystyle \lim _{\kappa \rightarrow 0}f(x\mid \mu ,\kappa )=\mathrm {U} (x)}$

where the interval for the uniform distribution ${\displaystyle \mathrm {U} (x)}$ is the chosen interval of length ${\displaystyle 2\pi }$ (i.e. ${\displaystyle \mathrm {U} (x)=1/(2\pi )}$ when ${\displaystyle x}$ is in the interval and ${\displaystyle \mathrm {U} (x)=0}$ when ${\displaystyle x}$ is not in the interval).

## Estimation of parameters

A series of N measurements ${\displaystyle z_{n}=e^{i\theta _{n}}}$ drawn from a von Mises distribution may be used to estimate certain parameters of the distribution. (Borradaile, 2003) The average of the series ${\displaystyle {\overline {z}}}$ is defined as

${\displaystyle {\overline {z}}={\frac {1}{N}}\sum _{n=1}^{N}z_{n}}$

and its expectation value will be just the first moment:

${\displaystyle \langle {\overline {z}}\rangle ={\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}e^{i\mu }.}$

In other words, ${\displaystyle {\overline {z}}}$ is an unbiased estimator of the first moment. If we assume that the mean ${\displaystyle \mu }$ lies in the interval ${\displaystyle [-\pi ,\pi ]}$, then Arg${\displaystyle ({\overline {z}})}$ will be a (biased) estimator of the mean ${\displaystyle \mu }$.

Viewing the ${\displaystyle z_{n}}$ as a set of vectors in the complex plane, the ${\displaystyle {\bar {R}}^{2}}$ statistic is the square of the length of the averaged vector:

${\displaystyle {\bar {R}}^{2}={\overline {z}}\,{\overline {z^{*}}}=\left({\frac {1}{N}}\sum _{n=1}^{N}\cos \theta _{n}\right)^{2}+\left({\frac {1}{N}}\sum _{n=1}^{N}\sin \theta _{n}\right)^{2}}$

and its expectation value is:

${\displaystyle \langle {\bar {R}}^{2}\rangle ={\frac {1}{N}}+{\frac {N-1}{N}}\,{\frac {I_{1}(\kappa )^{2}}{I_{0}(\kappa )^{2}}}.}$

In other words, the statistic

${\displaystyle R_{e}^{2}={\frac {N}{N-1}}\left({\bar {R}}^{2}-{\frac {1}{N}}\right)}$

will be an unbiased estimator of ${\displaystyle {\frac {I_{1}(\kappa )^{2}}{I_{0}(\kappa )^{2}}}\,}$ and solving the equation ${\displaystyle R_{e}={\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}\,}$ for ${\displaystyle \kappa \,}$ will yield a (biased) estimator of ${\displaystyle \kappa \,}$. In analogy to the linear case, the solution to the equation ${\displaystyle {\bar {R}}={\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}\,}$ will yield the maximum likelihood estimate of ${\displaystyle \kappa \,}$ and both will be equal in the limit of large N. For approximate solution to ${\displaystyle \kappa \,}$ refer to von Mises–Fisher distribution.

## Distribution of the mean

The distribution of the sample mean ${\displaystyle {\overline {z}}={\bar {R}}e^{i{\overline {\theta }}}}$ for the von Mises distribution is given by:[5]

${\displaystyle P({\bar {R}},{\bar {\theta }})\,d{\bar {R}}\,d{\bar {\theta }}={\frac {1}{(2\pi I_{0}(\kappa ))^{N}}}\int _{\Gamma }\prod _{n=1}^{N}\left(e^{\kappa \cos(\theta _{n}-\mu )}d\theta _{n}\right)={\frac {e^{\kappa N{\bar {R}}\cos({\bar {\theta }}-\mu )}}{I_{0}(\kappa )^{N}}}\left({\frac {1}{(2\pi )^{N}}}\int _{\Gamma }\prod _{n=1}^{N}d\theta _{n}\right)}$

where N is the number of measurements and ${\displaystyle \Gamma \,}$ consists of intervals of ${\displaystyle 2\pi }$ in the variables, subject to the constraint that ${\displaystyle {\bar {R}}}$ and ${\displaystyle {\bar {\theta }}}$ are constant, where ${\displaystyle {\bar {R}}}$ is the mean resultant:

${\displaystyle {\bar {R}}^{2}=|{\bar {z}}|^{2}=\left({\frac {1}{N}}\sum _{n=1}^{N}\cos(\theta _{n})\right)^{2}+\left({\frac {1}{N}}\sum _{n=1}^{N}\sin(\theta _{n})\right)^{2}}$

and ${\displaystyle {\overline {\theta }}}$ is the mean angle:

${\displaystyle {\overline {\theta }}=\mathrm {Arg} ({\overline {z}}).\,}$

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

This means that the distribution of the mean direction ${\displaystyle \mu }$ of a von Mises distribution ${\displaystyle VM(\mu ,\kappa )}$ is a von Mises distribution ${\displaystyle VM(\mu ,{\bar {R}}N\kappa )}$, or, equivalently, ${\displaystyle VM(\mu ,R\kappa )}$.

## Entropy

By definition, the information entropy of the von Mises distribution is[2]

${\displaystyle H=-\int _{\Gamma }f(\theta ;\mu ,\kappa )\,\ln(f(\theta ;\mu ,\kappa ))\,d\theta \,}$

where ${\displaystyle \Gamma }$ is any interval of length ${\displaystyle 2\pi }$. The logarithm of the density of the Von Mises distribution is straightforward:

${\displaystyle \ln(f(\theta ;\mu ,\kappa ))=-\ln(2\pi I_{0}(\kappa ))+\kappa \cos(\theta )\,}$

The characteristic function representation for the Von Mises distribution is:

${\displaystyle f(\theta ;\mu ,\kappa )={\frac {1}{2\pi }}\left(1+2\sum _{n=1}^{\infty }\phi _{n}\cos(n\theta )\right)}$

where ${\displaystyle \phi _{n}=I_{|n|}(\kappa )/I_{0}(\kappa )}$. 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:

${\displaystyle H=\ln(2\pi I_{0}(\kappa ))-\kappa \phi _{1}=\ln(2\pi I_{0}(\kappa ))-\kappa {\frac {I_{1}(\kappa )}{I_{0}(\kappa )}}}$

For ${\displaystyle \kappa =0}$, the von Mises distribution becomes the circular uniform distribution and the entropy attains its maximum value of ${\displaystyle \ln(2\pi )}$.

Notice that the Von Mises distribution maximizes the entropy when the real and imaginary parts of the first circular moment are specified[6] or, equivalently, the circular mean and circular variance are specified.

## References

1. ^ Risken, H. (1989). The Fokker–Planck Equation. Springer. ISBN 978-3-540-61530-9.
2. ^ a b Mardia, Kantilal; Jupp, Peter E. (1999). Directional Statistics. Wiley. ISBN 978-0-471-95333-3.
3. ^ see Abramowitz and Stegun §9.6.34
4. ^ See Abramowitz and Stegun §9.6.19
5. ^ a b Jammalamadaka, S. Rao; Sengupta, A. (2001). Topics in Circular Statistics. World Scientific Publishing Company. ISBN 978-981-02-3778-3.
6. ^ Jammalamadaka, S. Rao; SenGupta, A. (2001). Topics in circular statistics. New Jersey: World Scientific. ISBN 981-02-3778-2. Retrieved 2011-05-15.