INTRODUCTION / THE GEOMETRY OF DATA

What is
directional statistics?

The statistics of angles, directions, and orientations. The sample space might be a circle, a sphere, or a related geometric space.

01 / SAMPLE SPACES

Start with where the data live.

The circle

Compass bearings, time of day, and phase repeat after one full turn. 0° and 360° describe the same point.

S², Sᵖ⁻¹

Spheres & hyperspheres

Unit vectors describe directions in three or more dimensions. Their values lie on a sphere or hypersphere.

x ≡ −x

Unoriented axes

A line without an arrow is unchanged when reversed. For axial data, opposite directions represent the same observation.

Other manifolds

Rotations and shapes lead to other geometric spaces. This connects directional statistics to the wider study of data on manifolds.

02 / CIRCULAR SUMMARIES

Average the vectors,
not the angle labels.

359° and 1° have a circular mean of 0°. Working with unit vectors keeps nearby directions together, even when their labels lie on opposite sides of the scale.

Mean cosine & sine

C̄ = n⁻¹ Σ cos θᵢ
S̄ = n⁻¹ Σ sin θᵢ

Mean direction

μ̂ = atan2(S̄, C̄)

Mean resultant length

R̄ = √(C̄² + S̄²)

R̄ lies between 0 and 1. A value near 1 indicates strong alignment. At R̄ = 0, the mean direction is undefined; opposing clusters can cancel, so a small R̄ does not by itself imply uniformity. Express μ̂ in the chosen angular range.

ON A STRAIGHT SCALE

The numerical average is 180°.

A linear scale puts 1° and 359° at opposite ends An observation at 1 degree lies near the left end, and an observation at 359 degrees near the right end. Their arithmetic mean is 180 degrees in the middle. This ignores that the endpoints meet on a circle. 359° 180° · arithmetic mean 360°

(359° + 1°) / 2 = 180°

The calculation is correct on a line, but its result points away from both observations.

ON THE CIRCLE

The mean direction is 0°.

359° and 1° are neighbours on a circle Two observations lie one degree either side of north. Their shortest separation is two degrees. Their circular mean is north, zero degrees. The arithmetic mean, 180 degrees, points south, opposite the observations. Labels use leader lines; angular positions are drawn to scale. 359°N · 0°EW 2° apart 180° points the other way Angles drawn to scale
Same two observations, different geometry. Across north, 359° and 1° are separated by just 2°. The circular mean lies between them.

03 / SEE THE DISTRIBUTION

Meet the
rose diagram.

A histogram, arranged around a circle.

Divide the circle into angular bins, then count the observations in each bin. Each sector shows the frequency of directions in that range.

  1. Read the bearing. Here, north is 0° and angles increase clockwise. Mathematical plots may use a different convention.
  2. Compare the sectors. These bins are equally wide. Sector area represents count, so radius grows with √count. Some plots use radius directly; always check the scale.
  3. Look beyond the mean. Several clusters can be hidden by a single average. Try the two opposing directions to see why.

For the single-direction sample, use the concentration slider to set the mean resultant length R̄ from 0 to 1. Rotation changes its direction without changing R̄. The opposing and evenly spaced examples keep R̄ = 0 to illustrate cancellation.

The samples are illustrative, not research observations. Changing the bin width or origin can change a rose diagram’s appearance.

ANGULAR OBSERVATIONSS¹ / 001
Rose diagram of illustrative directionsSixteen equal angular bins. Sector area represents count. North is zero degrees; angles increase clockwise. An orange arrow shows the mean direction.0–22.5°: 6 observations22.5–45°: 13 observations45–67.5°: 29 observations67.5–90°: 29 observations90–112.5°: 13 observations112.5–135°: 6 observations135–157.5°: 4 observations157.5–180°: 3 observations180–202.5°: 2 observations202.5–225°: 1 observations225–247.5°: 2 observations247.5–270°: 2 observations270–292.5°: 1 observations292.5–315°: 2 observations315–337.5°: 3 observations337.5–360°: 4 observationsNESW0° / 360°90°180°270°
Frequency Mean direction Observations
Observations120
Mean direction · μ67.5°
Resultant length · R̄0.65
Illustrative data · 16 equal bins · sector area ∝ count
0° at north; angles increase clockwise.
View the counts and scale

Radius ∝ √count. Outer grid ring: 29 observations. Inner rings: 25%, 50%, and 75% of that count. The count scale adapts to the largest bin. At R̄ = 1 the observation marks overlap.

Counts in 22.5° angular bins
BearingCount
0.0–22.5°6
22.5–45.0°13
45.0–67.5°29
67.5–90.0°29
90.0–112.5°13
112.5–135.0°6
135.0–157.5°4
157.5–180.0°3
180.0–202.5°2
202.5–225.0°1
225.0–247.5°2
247.5–270.0°2
270.0–292.5°1
292.5–315.0°2
315.0–337.5°3
337.5–360.0°4

READING & DEFINITIONS

Rose-diagram construction and scaling: R circular: rose.diag ↗. Compass and mathematical conventions: R spatstat: rose ↗. Circular-mean definition: SciPy: circmean ↗.