Continuous distribution · also called circular normal
Von Mises distribution
An angle or direction that clusters around a preferred one: wind directions, the heading of a migrating bird, the time of day an event happens (as an angle on a 24-hour clock), the phase of a signal, dihedral angles in proteins. It is the circle's answer to the normal: is the mean direction and the concentration. At every direction is equally likely; for large it is close to a normal with variance .
Von Mises probability calculator
P(X ≤ 0) = 0.5
At the parameters set by the sliders. The shaded region on the plot is the probability; the dots on the CDF mark F at its ends.
CDF
mean 0 · variance 0.7645 · sd 0.8743 · mode 0 · entropy 1.266 nats
Formulas
| Parameters |
|
|---|---|
| Support | |
| CDF | |
| Mean | |
| Variance | |
| Mode | |
| Entropy |
are modified Bessel functions of the first kind. For angles the usual measure of spread is the circular variance rather than the variance shown, which treats as a number on one particular interval of length . SciPy's vonmises takes kappa and loc , on .
Worked example
Wind directions at a site follow a von Mises distribution with mean direction west and . What fraction of the time does the wind blow within 45° of west?
Measure angles from west, so , and find from the Bessel series. About two-thirds of the time, against a quarter if every direction were equally likely. answer checked by code
How it relates to others
- Special case→ Uniform: Von Mises() is Uniform(): no preferred direction. checked by code
- Limit→ Normal: As , Von Mises() is approximately Normal(). checked by code
All the relationships, as a diagram →
In Python
from scipy import stats
import numpy as np
X = stats.vonmises(kappa=2, loc=0)
X.pdf(0.5) # f(0.5) = 0.4039
X.cdf(0.5) # P(X ≤ 0.5) = 0.7382
X.mean(), X.var() # 0, 0.7645
X.ppf(0.95) # 95th percentile
X.rvs(size=10, random_state=0)
rng = np.random.default_rng(0)
rng.vonmises(mu=0, kappa=2, size=10)Choosing between this and its neighbours? Which distribution for measurements and errors?