Von Mises Distribution#

Univariate, Continuous, Symmetric

The Von Mises distribution is a continuous probability distribution on the unit circle. It is characterized by two parameters: \(\mu\) and \(\kappa\), which are the mean direction and concentration parameter, respectively.

The Von Mises distribution is the circular analogue of the normal distribution, and it is used to model circular data, such as wind directions, compass bearings, or angles.

Key properties and parameters#

Support

\(x \in (-\pi, \pi)\)

Mean

\(\mu\)

Variance

\(1 - I_1(\kappa) / I_0(\kappa)\)

Parameters:

  • \(\mu\) : (float) Mean direction, \(-\pi \leq \mu \leq \pi\).

  • \(\kappa\) : (float) Concentration parameter, \(\kappa \geq 0\).

Probability Density Function (PDF)#

\[ f(x|\mu, \kappa) = \frac{e^{\kappa \cos(x - \mu)}}{2\pi I_0(\kappa)} \]

where \(I_0(\kappa)\) is the modified Bessel function of the first kind.

Von Mises Distribution PDF

Cumulative Distribution Function (CDF)#

The Von Mises distribution does not have an analytical expression for the CDF. However, it can be evaluated numerically by integrating the PDF in the interval \((-\pi, x)\):

\[ F(x|\mu, \kappa) = \frac{1}{2\pi I_0(\kappa)} \int_{-\pi}^{x} e^{\kappa \cos(t - \mu)} dt \]
/home/docs/checkouts/readthedocs.org/user_builds/preliz/envs/stable/lib/python3.11/site-packages/pytensor/link/c/cmodule.py:2986: UserWarning: PyTensor could not link to a BLAS installation. Operations that might benefit from BLAS will be severely degraded.
This usually happens when PyTensor is installed via pip. We recommend it be installed via conda/mamba/pixi instead.
Alternatively, you can use an experimental backend such as Numba or JAX that perform their own BLAS optimizations, by setting `pytensor.config.mode == 'NUMBA'` or passing `mode='NUMBA'` when compiling a PyTensor function.
For more options and details see https://pytensor.readthedocs.io/en/latest/troubleshooting.html#how-do-i-configure-test-my-blas-library
  warnings.warn(
Von Mises Distribution CDF

See also

Related Distributions:

  • Normal Distribution - When \(\kappa \to \infty\), the Von Mises distribution approximates the normal distribution.

  • Uniform Distribution - When \(\kappa = 0\), the Von Mises distribution converges to the uniform distribution in the interval \((-\pi, \pi)\).

References#