Manuscript Offprint
arXiv:2610.36227Directional Statistics on Circles and Spheres: A New Angle on Data
Summary
Two compass bearings near north can have an ordinary arithmetic mean pointing south: the difficulty is that angles live on a circle, not a straight line. Using real wind observations, diffusion-MRI orientations, and geometric examples from machine learning, this article introduces circular and axial averages, directional variability, and probability models on circles and spheres. The guiding principle is to identify the geometry and symmetries of the observations before choosing a statistical method.
Keywords: directional statistics; circular statistics; spherical data; axial data; geometry-aware statistics; von Mises distribution; von Mises–Fisher distribution; Watson distribution; cosine similarity; machine learning; medical imaging.
which points due south! The numbers are correct, but they have been treated as if they lay on a straight number line. On a compass, and are the same direction. The labels wrap around.
This distinction is not confined to navigation. Wind and ocean-current directions, the timing of daily biological cycles, animal migration bearings, cell and fiber orientations, geological directions, robot headings, surface normals in computer vision, and normalized feature vectors can all require similar care. The broader field of directional statistics studies observations that lie on circles, spheres, and related geometric spaces [1, 2]. Circular methods are already used across biology, including animal navigation and chronobiology [3]. Our theme is not that ordinary statistics is “wrong”, but that it quietly assumes a geometry. Familiar notions such as averages, spread, distance, probability, and similarity must sometimes be reinterpreted when observations wrap around, live on a sphere, or identify x with -x. The central question is therefore: what should routine statistical ideas mean on a non-Euclidean sample space?
*Corresponding author: siddhesh.s.kulkarni@gmail.com
2 Where do directional data appear?
Directional statistics is not a niche subject tied to compasses. The same geometric issues recur whenever a variable wraps around, lies on a sphere, represents an unoriented axis, or is deliberately normalized to unit length. Table 1 gives representative examples. Its purpose is breadth rather than completeness: the scientific meaning of a direction matters as much as its mathematical representation.
| Area | Example | Geometric issue |
|---|---|---|
| Weather / ocean | Wind, current, wave direction | Circular wraparound; multimodality |
| Ecology / chronobiology | Migration bearings; circadian phase | Preferred direction; 24-hour periodicity |
| Microscopy / medicine | Cell, collagen, or fiber orientation | Often axial: |
| Geology / astronomy | Faults, paleomagnetism, sky directions | Circular, spherical, or axial |
| Robotics / computer vision | Heading, attitude, surface normals | Periodic angles and 3-D orientation |
| Machine learning / AI | Unit-normalized features and embeddings | High-dimensional sphere; angular similarity |
Table 1: Directional data across science and technology. The appropriate analysis depends on geometry, symmetry, and the scientific meaning of the measurement; representative applications are discussed in standard directional-statistics, biology, diffusion-MRI, and spherical-clustering references [1, 3, 4, 5].
Three examples make the recurring patterns concrete. In circadian biology, 11:55 PM and 12:05 AM are ten minutes apart, not almost 24 hours apart. In microscopy, an elongated cell at 30° may have the same physical orientation as one recorded at 210° when its ends are indistinguishable. In machine learning, normalizing a vector makes angular comparison natural but deliberately removes information about overall magnitude. Although these problems involve periodicity, axial symmetry, and spherical similarity, they share one lesson: identify the sample space before choosing the statistic.
3 What kind of directional problem do I have?
The decision in Figure 1 separates several questions that are easily conflated. Is the variable intrinsically periodic? Does magnitude carry scientific information? If we use a unit vector, are x and -x different states or two labels for the same orientation? Only after answering those questions should we choose a summary or probability model.

After choosing the geometry, check for one mode, multiple modes, or near-uniformity.
Figure 1: A geometry-first decision guide. First check periodicity, then whether vector magnitude matters, and finally whether opposite vectors describe the same physical state. These are diagnostic questions, not a unique model-selection rule.
4 A real wind example: the same north, two different arithmetic means
Figure 2 uses 24 hourly wind directions recorded at JFK Airport on 15 January 2013 in the nycflights13::weather data, derived from ASOS observations obtained through the Iowa Environmental Mesonet [6]. Meteorological wind direction records where the wind comes from. The point of this one-day example is simple: north is the same physical direction whether we write it as 0° or 360°.
With north recorded as , the ordinary arithmetic mean is . If we change only the numerical label to the equivalent label , the ordinary mean becomes . Nothing about the weather has changed, yet the arithmetic mean moves by . The circular mean does not depend on that arbitrary cut: it is , just east of north, with mean resultant length . This is why a circular summary is needed. The 24 measurements are sequential hourly observations and may be serially dependent; here they are used to illustrate geometry and coding, not to make an independence-based inferential claim.
A North at both ends

B Circular wind rose

C Three competing means

Figure 2: Real hourly wind directions at JFK Airport on 15 January 2013. (A) A straight scale places the two equivalent labels for north, 0° and 360°, at opposite ends. (B) An outlined wind rose restores their adjacency; the circular mean is about 6.3° and . (C) Replacing the label 360° by the equivalent label 0° changes the arithmetic mean from 232.5° to 82.5°, while the circular mean remains unchanged. In panel C, the solid, dashed, and dotted arrows represent 232.5°, 82.5°, and 6.3°, respectively. Data: nycflights13::weather [6].
5 What does an average look like on a circle?
For convenience, let angles now be measured counterclockwise from the horizontal axis, in radians. The point corresponding to an angle is
The unit circle is the set . The key property is : the same point has many equivalent numerical labels.
5.1 The mean direction as an average of arrows
The unfamiliar-looking formulas for a circular mean come from an ordinary operation: averaging vectors coordinate by coordinate. An angle corresponds to the unit vector
Its cosine is the horizontal coordinate and its sine is the vertical coordinate. Therefore the average horizontal and vertical coordinates are
Thus is simply the average arrow. For example, the directions and correspond to and , whose average is ; that average arrow points at .
We now need to convert the coordinates of the average arrow back into an angle. Recall that for a right triangle
The inverse tangent, written arctan, reverses this relationship: when on the principal interval . Using only is not enough for a full circle, however, because opposite quadrants can have the same ratio . The two-coordinate angle function uses the signs of both coordinates to return the correct direction of the vector .
Hence the circular mean is simply the angle of the average vector:
For and , the sine components nearly cancel while the cosine components reinforce one another, so points almost exactly north. The apparent special formula is therefore just “average the arrows, then read off the direction of the average arrow.”
There is also a geometric way to understand this rule. For a proposed direction , consider the sum of squared distances between the observed unit vectors and the proposed unit vector:
Thus minimizing squared chord distances is equivalent to choosing the direction that maximizes the dot product with the average vector. This is precisely Equation (4). It is one principled notion of a circular center, though other notions (for example, based on shortest arc distances) are also possible.
5.2 When an average should not exist
Take and . Their vectors are and , which sum to zero. The circular mean direction is then undefined. That is an informative result: these two directions do not single out a unique preferred heading. Software should not silently report a direction in this case.
6 What does variability mean for directions?
The length of the average vector is called the mean resultant length:
If every arrow points in exactly the same direction, . If the arrows cancel, . A common analogue of variance is the circular variance
and one commonly used circular standard deviation is when . These quantities summarize concentration, but they do not describe shape completely: two tight clusters pointing in opposite directions can have . Standard circular inference therefore also includes tools such as the Rayleigh test for departure from uniformity and, under appropriate assumptions, the Watson–Williams test for comparing mean directions [1, 3].
7 What does a probability model look like on a circle?
How can we describe random variation around a preferred direction? On the real line, a normal distribution puts greater probability near its center. For circular data, a natural counterpart is the von Mises distribution:
Here is the preferred direction, is a concentration parameter, and is a modified Bessel function. Its role is normalization:
This integral makes the total area under the circular density equal to one. Readers need not evaluate it by hand.
Why the cosine? The identity measures alignment. It is largest when the observed direction matches the preferred direction and smallest when it points the other way. When , Equation (9) is uniform around the circle. As increases, the distribution concentrates near . For large , a small-angle approximation gives
Thus, near its peak, the kernel of a highly concentrated von Mises density resembles that of a normal density with angular variance approximately ; this local approximation suppresses the changing normalizing constant. It is not a claim that a normal distribution automatically respects circular wraparound.
7.1 Why the circular mean reappears in likelihood
Suppose are independent von Mises observations. If is fixed, the part of their log-likelihood that depends on is
Using the same trigonometric expansion as before, maximizing selects the direction of . Hence the circular mean is also a maximum-likelihood estimate of the preferred direction under this model, whenever the resultant is nonzero. The geometry and the statistical model lead to the same answer.

Figure 3: Properly normalized von Mises densities. Increasing concentration sharpens the peak around zero.
8 From a circle to a sphere: the same idea in higher dimensions
A compass bearing needs one angle. A three-dimensional direction needs more information, but the geometric idea survives. A unit vector in p dimensions belongs to
The circle is and the familiar sphere is . The von Mises–Fisher (vMF) distribution extends the von Mises idea:
The vector gives the preferred direction and controls concentration. is the normalizing constant for surface area on the sphere; explicitly, for ,
Here is the modified Bessel function of order . At , the distribution is uniform on the sphere, with the corresponding limiting normalizing constant.
The apparent new formula is really the same old idea. For unit vectors, , where is the angle between them. On , this becomes , exactly the quantity in Equation (9). For independent vMF observations with nonzero vector sum, the maximum-likelihood preferred direction is the normalized sum . Thus averaging arrows extends naturally from two to many dimensions [1, 7]. In high dimensions, however, evaluating the vMF normalizing constant and estimating can become numerically important; practical approximations are discussed by Banerjee et al. [5].
9 When opposite directions mean the same thing
Imagine a compass needle pointing north. Reversing it to south changes its heading. Now imagine a straight, unoriented fiber running north–south. Reversing the arrow used to draw the fiber does not change the fiber’s physical axis. In the second situation, x and -x are two descriptions of the same observation. Such data are called axial or unoriented.
A classical axial model is the Watson distribution, whose density (relative to uniform surface measure) is proportional to
The square ensures that . When , observations tend to align with the axis . When , the density favors directions perpendicular to that axis. The vMF model, by contrast, distinguishes from when .
This distinction arises naturally in diffusion magnetic resonance imaging (MRI). In a single-tensor model the diffusion-weighted signal has the form , where is a measurement direction and is the fitted diffusion tensor. Replacing by leaves the quadratic form unchanged, reflecting antipodal symmetry. The principal eigenvector of therefore represents an axis; its sign is not an anatomical label [8, 4, 9]. A statistical model that changed because software happened to return the opposite eigenvector sign would be scientifically inappropriate.
9.1 A medical example: what do diffusion-MRI data look like?
The phrase “fiber orientation” can sound abstract if one has never seen MRI data. Figure 4 therefore begins one step earlier. A diffusion-MRI experiment produces a series of grayscale brain volumes, each acquired with diffusion weighting applied along a specified gradient direction. The raw data are signal intensities in voxels, not tiny arrows drawn inside the brain. A model is then fitted to the directional signal pattern within each voxel. In the classical diffusion-tensor model, the fitted tensor can be pictured as an ellipsoid; its long principal axis summarizes the locally preferred diffusion orientation [4, 9].
That fitted axis creates the statistical issue. The eigenvector returned by an algorithm may be or , but both describe the same physical line. Panel C isolates the consequence using six synthetic orientations, , , , , , . If they are treated as directed arrows, opposite signs cancel. If they are treated as axes, they represent one common orientation, modulo .
A convenient estimator uses the matrix
Replacing by leaves unchanged, because . The eigenvector corresponding to the largest eigenvalue gives the dominant axis (its sign is arbitrary). In two dimensions, an equivalent classical trick is to double each axial angle, compute an ordinary circular mean on the doubled angles, and divide the result by two. For the six values above, both approaches give modulo . In real diffusion MRI, estimating tissue orientation from diffusion-weighted signals requires substantially more sophisticated measurement and modeling; the toy example isolates the statistical issue of antipodal symmetry.
A Schematic MRI slice
B Measurements → fitted tensor C Opposite signs, same axis

Schematic image; not patient data

Principal axis of fitted tensor

One physical axis
Do not average as opposing arrows
Figure 4: From an MRI image to an axial statistical problem. (A) A vector-drawn, schematic MRI-like slice illustrates the voxelized image on which diffusion measurements are made; diffusion MRI acquires many volumes under different gradient directions. (B) Within one voxel, the directional signal measurements are used to fit a local diffusion tensor, whose long principal axis summarizes orientation. (C) The orientations and describe the same physical axis; treating antipodal observations as ordinary arrows can therefore cause artificial cancellation. All panels are schematic rather than patient data [4, 9].
10 What does similarity mean in machine learning?
Machine-learning systems often represent documents, images, or other observations by vectors in a feature space. When their direction rather than their length is of interest, a vector can be normalized to . A common comparison is cosine similarity:
For normalized vectors, this is simply their dot product. Similar directions have similarity close to one, perpendicular vectors have similarity zero, and opposite directions have similarity minus one.
A useful identity follows by expanding a square:
Thus, for unit vectors, chord distance and cosine similarity produce equivalent pairwise rankings. We should not claim that Euclidean distance is universally “wrong” on a sphere. The deeper issue is whether a particular probability model, clustering method, or scientific interpretation respects the underlying geometry. Directional distributions, including mixtures of vMF components, offer one principled approach to clustering directional observations [7, 5].
There is an important caution. Normalizing a biomedical vector can discard meaningful magnitude information: a weak treatment response and a strong treatment response might have similar relative patterns but very different biological significance. Directional analysis is useful when relative pattern or orientation is the target of inference, not merely whenever normalization is mathematically possible.
10.1 A machine-learning example: comparing three short texts
Imagine that a text-retrieval system maps three phrases into two-dimensional vectors. For illustration, we choose these vectors by hand; they are not outputs of a trained language model:
A: “cancer therapy” (1, 0),
B: “tumor treatment” (0.8, 0.6),
C: “weather forecast” (0, 1).
All three have length one. The cosine similarities to A are
Thus B ranks above C as a match to A in this constructed feature space. The example does not establish how any real embedding model would represent these phrases; actual embedding models typically operate in hundreds or thousands of dimensions. The two-dimensional picture is only a projection of the same angular idea.
Now multiply B by five. Its Euclidean length changes from 1 to 5, but its cosine similarity to A remains 0.8. This makes cosine similarity useful when the pattern of features matters more than the overall scale. In contrast, if vector magnitude encodes confidence, expression strength, or another scientifically important quantity, discarding it may be undesirable. Directional statistics therefore begins with a scientific decision about what should count as similar, not with an automatic normalization step.

Figure 5: An illustrative document embedding: cosine similarity between A and B is 0.8, corresponding to an angle of approximately . The vectors are constructed, not outputs of a trained model.
11 Explore it yourself: Directional Statistics Lab
The companion Directional Statistics Lab provides short, reproducible R scripts for readers and instructors to explore the article's main geometric ideas [10]. Version 0.1.0 contains five demonstrations: (1) circular mean, resultant length, and circular variance; (2) the observed JFK wind-direction example; (3) the effect of von Mises concentration ; (4) axial orientation and the equivalence of angles separated by ; and (5) cosine similarity of normalized vectors. The examples generate figures and can be run separately or together using R/run_all.R. A targeted suite of 38 numerical and edge-case checks passed for this initial release. This is a collection of teaching scripts, not yet an interactive application or a general-purpose R package.
The publicly accessible source is the Directional Statistics Lab GitHub repository. For exact reproducibility, the October 2026 v0.1.0 archive has its own DOI, https://doi.org/10.5281/zenodo.23426629. The project-level DOI, https://doi.org/10.5281/zenodo.23426628, points to the latest archived version as the software develops. The JFK data subset is derived from nycflights13::weather [6]. Readers who need broader inferential workflows can also turn to established R packages such as circular and CircStats.
Questions for readers. Can a small mean resultant length arise from two tight clusters? Which formulas are unchanged if is added to an angle? When should x and -x be treated as the same observation? What scientific information can disappear after normalization?
12 Looking ahead: emerging questions
Directional statistics has mature foundations, but new data sources keep changing the scale of the questions. Broad frontiers include high-dimensional directional data, where normalized representations may contain hundreds or thousands of coordinates; dynamic directional data, where orientations evolve over time; multimodal populations, where one preferred direction is inadequate; and uncertainty-aware representations, where confidence itself must be expressed geometrically. These are open problem areas rather than prescriptions for particular models.
13 A geometry-first checklist and conclusion
Before choosing a method, ask: (1) Is the variable periodic? (2) Is the observation a direction or an unoriented axis? (3) Does magnitude itself carry scientific information? (4) Is the sample space a circle, sphere, axis, or higher-dimensional unit sphere? (5) Is there one preferred direction or several? (6) Does the fitted model resemble the observed shape? (7) Would moving an arbitrary angular cut change the conclusion?
These questions capture the article’s central message. Familiar statistical ideas do not disappear on circles and spheres; they must be reinterpreted to respect the geometry and symmetries of the sample space. An average becomes a mean direction, variability becomes concentration, probability models wrap around or live on a sphere, axial measurements identify opposite vectors, and cosine similarity reveals spherical geometry inside modern machine learning. Directional statistics is not a replacement for ordinary statistics; it is a reminder to ask, “What mathematical object was measured?” before choosing the statistic.
Data and illustration note. The JFK wind observations are an extract from the publicly available nycflights13 weather data, and the circular statistics are calculated from those observations. The MRI illustration and the document-embedding vectors are pedagogical schematics, not patient data or outputs from a trained language model. The companion R scripts reproduce the underlying teaching examples; the publication-layout illustrations were prepared separately.
Suggested Reading
Readers who would like to explore these ideas further can begin with Mardia and Jupp's textbook [1], which develops the geometry and probability theory of directional data, and the accessible overview by Pewsey and García-Portugués [2]. For biological applications, Landler, Ruxton, and Malkemper [3] discuss practical choices in circular-data analysis; the diffusion-MRI references [8, 4, 9] explain how orientation arises from medical-imaging measurements. The connection to clustering and machine learning is developed in [5, 7]. To reproduce the wind example, see the nycflights13 package [6]; the accompanying Directional Statistics Lab [10] supplies small worked examples and an archived, versioned code release.
References
[1] Kanti V. Mardia and Peter E. Jupp. Directional Statistics. Wiley, 2000.
[2] Arthur Pewsey and Eduardo García-Portugués. Recent advances in directional statistics. TEST, 30(1):1–58, 2021.
[3] Lukas Landler, Graeme D. Ruxton, and E. Pascal Malkemper. Circular data in biology: advice for effectively implementing statistical procedures. Behavioral Ecology and Sociobiology, 72(8):128, 2018.
[4] Derek K. Jones, editor. Diffusion MRI: Theory, Methods, and Applications. Oxford University Press, 2010.
[5] Arindam Banerjee, Inderjit S. Dhillon, Joydeep Ghosh, and Suvrit Sra. Clustering on the unit hypersphere using von Mises–Fisher distributions. Journal of Machine Learning Research, 6:1345–1382, 2005.
[6] Hadley Wickham. nycflights13: Flights that Departed NYC in 2013. CRAN, 2021.
[7] Suvrit Sra. Directional Statistics in Machine Learning: A Brief Review. arXiv preprint arXiv:1605.00316, 2016.
[8] Peter J. Basser, James Mattiello, and Denis LeBihan. MR diffusion tensor spectroscopy and imaging. Biophysical Journal, 66(1):259–267, 1994.
[9] Eleftherios Garyfallidis, Matthew Brett, Bagrat Amirbekian, Ariel Rokem, Stefan van der Walt, Maxime Descoteaux, Ian Nimmo-Smith, and Dipy Contributors. DIPY, a library for the analysis of diffusion mri data. Frontiers in Neuroinformatics, 8:8, 2014.
[10] Siddhesh Kulkarni. Directional Statistics Lab. Zenodo, version 0.1.0, 2026. Version DOI: 10.5281/zenodo.23426629.