encyclopegia.org

Circular mean

In mathematics and statistics, a circular mean or angular mean is a mean designed for angles and similar cyclic quantities, such as times of day, and fractional parts of real numbers.[src] This is necessary since most of the usual means may not be appropriate on angle-like quantities.[src] For example, the arithmetic mean of 0° and 360° is 180°, which is misleading because 360° equals 0° modulo a full cycle.[src] As another example, the "average time" between 11 PM and 1 AM is either midnight or noon, depending on whether the two times are part of a single night or part of a single calendar day.[src] The circular mean is one of the simplest examples of directional statistics and of statistics of non-Euclidean spaces.[src] This computation produces a different result than the arithmetic mean, with the difference being greater when the angles are widely distributed.[src] For example, the arithmetic mean of the three angles 0°, 0°, and 90° is (0° + 0° + 90°) / 3 = 30°, but the vector mean is arctan(1/2) = 26.565°.[src] Moreover, with the arithmetic mean the circular variance is only defined ±180°.[src]

In mathematics and statistics, a circular mean or angular mean is a mean designed for angles and similar cyclic quantities, such as times of day, and fractional parts of real numbers.[src] This is necessary since most of the usual means may not be appropriate on angle-like quantities.[src] For example, the arithmetic mean of 0° and 360° is 180°, which is misleading because 360° equals 0° modulo a full cycle.[src] As another example, the "average time" between 11 PM and 1 AM is either midnight or noon, depending on whether the two times are part of a single night or part of a single calendar day.[src] The circular mean is one of the simplest examples of directional statistics and of statistics of non-Euclidean spaces.[src] This computation produces a different result than the arithmetic mean, with the difference being greater when the angles are widely distributed.[src] For example, the arithmetic mean of the three angles 0°, 0°, and 90° is (0° + 0° + 90°) / 3 = 30°, but the vector mean is arctan(1/2) = 26.565°.[src] Moreover, with the arithmetic mean the circular variance is only defined ±180°.[src] ==Definition== Since the arithmetic mean is not always appropriate for angles, the following method can be used to obtain both a mean value and measure for the variance of the angles: Convert all angles to corresponding points on the unit circle, e.g., \alpha to (\cos\alpha,\sin\alpha) .[src] That is, convert polar coordinates to Cartesian coordinates.[src] Then compute the arithmetic mean of these points.[src] The resulting point will lie within the unit disk but generally not on the unit circle.[src] Convert that point back to polar coordinates.[src] The angle is a reasonable mean of the input angles.[src] The resulting radius will be 1 if all angles are equal.[src] If the angles are uniformly distributed on the circle, then the resulting radius will be 0, and there is no circular mean.[src] (In fact, it is impossible to define a continuous mean operation on the circle.) In other words, the radius measures the concentration of the angles.[src] Given the angles \alpha_1,\dots,\alpha_n a common formula of the mean using the atan2 variant of the arctangent function is \bar{\alpha} = \operatorname{atan2}\left(\frac{1}{n}\sum_{j=1}^n \sin\alpha_j, \frac{1}{n}\sum_{j=1}^n \cos\alpha_j\right) = \operatorname{atan2}\left(\sum_{j=1}^n \sin\alpha_j, \sum_{j=1}^n \cos\alpha_j\right) ===Using complex arithmetic=== An equivalent definition can be formulated using complex numbers: \bar{\alpha} = \arg\left(\frac{1}{n}\sum_{j=1}^n \exp(i \cdot\alpha_j)\right) = \arg\left(\sum_{j=1}^n \exp(i \cdot\alpha_j)\right) .[src] In order to match the above derivation using arithmetic means of points, the sums would have to be divided by n .[src] However, the scaling does not matter for \operatorname{atan2} and \arg , thus it can be omitted.[src] This may be more succinctly stated by realizing that directional data are in fact vectors of unit length.[src] In the case of one-dimensional data, these data points can be represented conveniently as complex numbers of unit magnitude z=\cos(\theta)+i\,\sin(\theta)=e^{i\theta} , where \theta is the measured angle.[src] The mean resultant vector for the sample is then: \overline{\mathbf{\rho}}=\frac{1}{N}\sum_{n=1}^N z_n.[src] The sample mean angle is then the argument of the mean resultant: \overline{\theta}=\operatorname{Arg}(\overline{\mathbf{\rho}}).[src] The length of the sample mean resultant vector is: \overline{R}=|\overline{\mathbf{\rho}}| and will have a value between 0 and 1.[src] Thus the sample mean resultant vector can be represented as: \overline{\mathbf{\rho}}=\overline{R}\,e^{i\overline{\theta}}.[src] Similar calculations are also used to define the circular variance.[src] ==Properties== The circular mean, \bar{\alpha} maximizes the likelihood of the mean parameter of the von Mises distribution and minimizes the sum of a certain distance on the circle, more precisely \bar{\alpha} = \underset{\beta}{\operatorname{argmin}} \sum_{j=1}^n d(\alpha_j,\beta), \text{ where } d(\varphi,\beta) = 1-\cos(\varphi-\beta).[src] The distance d(\varphi,\beta) is equal to half the squared Euclidean distance between the two points on the unit circle associated with \varphi and \beta .[src] ==Example== A simple way to calculate the mean of a series of angles (in the interval [0°, 360°) ) is to calculate the mean of the cosines and sines of each angle, and obtain the angle by calculating the inverse tangent.[src] Consider the following three angles as an example: 10, 20, and 30 degrees.[src] Intuitively, calculating the mean would involve adding these three angles together and dividing by 3, in this case indeed resulting in a correct mean angle of 20 degrees.[src] By rotating this system anticlockwise through 15 degrees the three angles become 355 degrees, 5 degrees and 15 degrees.[src] The arithmetic mean is now 125 degrees, which is the wrong answer, as it should be 5 degrees.[src] The vector mean \bar \theta can be calculated in the following way, using the mean sine \bar s and the mean cosine \bar c \not = 0 : \bar s = \frac{1}{3} ( \sin (355^\circ) + \sin (5^\circ) + \sin (15^\circ) ) = \frac{1}{3} ( -0.087 + 0.087 + 0.259 ) \approx 0.086 \bar c = \frac{1}{3} ( \cos (355^\circ) + \cos (5^\circ) + \cos (15^\circ) ) = \frac{1}{3} ( 0.996 + 0.996 + 0.966 ) \approx 0.986 \bar \theta = \left.[src] \begin{cases} \arctan \left( \frac{\bar s}{\bar c} \right) & \bar s > 0 ,\ \bar c > 0 \\ \arctan \left( \frac{\bar s}{\bar c} \right) + 180^\circ & \bar c 0 \end{cases} \right\} = \arctan \left( \frac{0.086}{0.986} \right) = \arctan (0.087) = 5^\circ.[src] // If the resulting angle is negative, add 360 to bring it into the standard range 0 to 360, like: if result import math def circular_mean(hours: list[int]) -> float: """Convert hours to radians""" # To convert from hours to degrees, we need to # multiply hour by 360/24 = 15.[src] radians = [math.radians(hour * 15) for hour in hours] # Calculate the sum of sin and cos values sin_sum = sum([math.sin(rad) for rad in radians]) cos_sum = sum([math.cos(rad) for rad in radians]) # Calculate the circular mean using arctan2 mean_rad = math.atan2(sin_sum, cos_sum) # Convert the mean back to hours mean_hour = (math.degrees(mean_rad) / 15) % 24 return mean_hour Example usage: hours = [0, 12, 18] mean_hour = circular_mean(hours) print("First Circular mean:", round(mean_hour, 2)) hours = [0, 12] mean_hour = circular_mean(hours) print("Second Circular mean:", round(mean_hour, 2)) hours = [0, 0, 12, 12, 24] mean_hour = circular_mean(hours) print("Third Circular mean:", round(mean_hour, 2)) Note that the function above is already implemented by SciPy's circmean function.[src] ==Generalizations== ===Spherical mean=== ===Weighted spherical mean=== A weighted spherical mean can be defined based on spherical linear interpolation.[src] ==See also== Center of mass Centroid Circular distribution Circular standard deviation Directional statistics Fréchet mean Yamartino method ==References== ==Further reading== Jammalamadaka, S.[src] Rao and SenGupta, A.[src] (2001).[src] Topics in Circular Statistics, Section 1.3, World Scientific Press, Singapore.[src]

51 sentences · 51 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Circular mean." encyclopegia.org, 2026, https://encyclopegia.org/wiki/circular-mean. Accessed 30 November 2026.

Chicago

"Circular mean." encyclopegia.org. Accessed November 30, 2026. https://encyclopegia.org/wiki/circular-mean.

APA

encyclopegia.org. (2026). Circular mean. Retrieved November 30, 2026, from https://encyclopegia.org/wiki/circular-mean

Accessed November 30, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378370410 · 0.5 · snapshot enwiki-001378370410

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.