Angular mean
   HOME

TheInfoList



OR:

In mathematics and statistics, a circular mean or angular mean is a
mean There are several kinds of mean in mathematics, especially in statistics. Each mean serves to summarize a given group of data, often to better understand the overall value (magnitude and sign) of a given data set. For a data set, the '' ari ...
designed for
angle In Euclidean geometry, an angle is the figure formed by two rays, called the '' sides'' of the angle, sharing a common endpoint, called the '' vertex'' of the angle. Angles formed by two rays lie in the plane that contains the rays. Angles a ...
s and similar cyclic quantities, such as daytimes, and fractional parts of
real number In mathematics, a real number is a number that can be used to measure a ''continuous'' one-dimensional quantity such as a distance, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small variations. Every ...
s. This is necessary since most of the usual means may not be appropriate on angle-like quantities. For example, the arithmetic mean of 0° and 360° is 180°, which is misleading because 360° equals 0° modulo a full cycle.Christopher M. Bishop: ''Pattern Recognition and Machine Learning (Information Science and Statistics)'', 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. The circular mean is one of the simplest examples of
circular statistics Directional statistics (also circular statistics or spherical statistics) is the subdiscipline of statistics that deals with directions (unit vectors in Euclidean space, R''n''), axes ( lines through the origin in R''n'') or rotations in R''n''. Mo ...
and of statistics of non-Euclidean spaces. This computation produces a different result than the arithmetic mean, with the difference being greater when the angles are widely distributed. For example, the arithmetic mean of the three angles 0°, 0° and 90° is (0+0+90)/3 = 30°, but the vector mean is 26.565°. Moreover, with the arithmetic mean the circular variance is only defined ±180°.


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 In probability theory and statistics, variance is the expectation of the squared deviation of a random variable from its population mean or sample mean. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbe ...
of the angles: Convert all angles to corresponding points on the
unit circle In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
, e.g., \alpha to (\cos\alpha,\sin\alpha). That is, convert
polar coordinates In mathematics, the polar coordinate system is a two-dimensional coordinate system in which each point on a plane is determined by a distance from a reference point and an angle from a reference direction. The reference point (analogous to th ...
to Cartesian coordinates. Then compute the arithmetic mean of these points. The resulting point will lie within the unit disk but generally not on the unit circle. Convert that point back to polar coordinates. The angle is a reasonable mean of the input angles. The resulting radius will be 1 if all angles are equal. If the angles are uniformly distributed on the circle, then the resulting radius will be 0, and there is no circular mean. (In fact, it is impossible to define a continuous
mean operation In algebraic topology, a mean or mean operation on a topological space ''X'' is a continuous, commutative, idempotent binary operation on ''X''. If the operation is also associative, it defines a semilattice. A classic problem is to determine whic ...
on the circle.) In other words, the radius measures the concentration of the angles. Given the angles \alpha_1,\dots,\alpha_n a common formula of the mean using the atan2 variant of the arctangent function is :\bar = \operatorname\left(\frac\sum_^n \sin\alpha_j, \frac\sum_^n \cos\alpha_j\right) = \operatorname\left(\sum_^n \sin\alpha_j, \sum_^n \cos\alpha_j\right)


Using complex arithmetic

An equivalent definition can be formulated using
complex number In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the fo ...
s: :\bar = \arg\left(\frac\sum_^n \exp(i \cdot\alpha_j)\right) = \arg\left(\sum_^n \exp(i \cdot\alpha_j)\right) . In order to match the above derivation using arithmetic means of points, the sums would have to be divided by n. However, the scaling does not matter for \operatorname and \arg, thus it can be omitted. This may be more succinctly stated by realizing that directional data are in fact vectors of unit length. 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^, where \theta is the measured angle. The mean resultant vector for the sample is then: : \overline=\frac\sum_^N z_n. The sample mean angle is then the argument of the mean resultant: : \overline=\operatorname(\overline). The length of the sample mean resultant vector is: : \overline=, \overline, and will have a value between 0 and 1. Thus the sample mean resultant vector can be represented as: : \overline=\overline\,e^. Similar calculations are also used to define the circular variance.


Properties

The circular mean \bar * maximizes the
likelihood The likelihood function (often simply called the likelihood) represents the probability of random variable realizations conditional on particular values of the statistical parameters. Thus, when evaluated on a given sample, the likelihood functi ...
of the mean parameter of the
von Mises distribution In probability theory and directional statistics, the von Mises distribution (also known as the circular normal distribution or Tikhonov distribution) is a continuous probability distribution on the circle. It is a close approximation to the w ...
and * minimizes the sum of a certain distance on the circle, more precisely ::\bar = \underset \sum_^n d(\alpha_j,\beta), \text d(\varphi,\beta) = 1-\cos(\varphi-\beta). :The distance d(\varphi,\beta) is equal to half the squared
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of a line segment between the two points. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, therefor ...
between the two points on the unit circle associated with \varphi and \beta.


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. Consider the following three angles as an example: 10, 20, and 30 degrees. 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. By rotating this system anticlockwise through 15 degrees the three angles become 355 degrees, 5 degrees and 15 degrees. The arithmetic mean is now 125 degrees, which is the wrong answer, as it should be 5 degrees. 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 ( \sin (355^\circ) + \sin (5^\circ) + \sin (15^\circ) ) = \frac ( -0.087 + 0.087 + 0.259 ) \approx 0.086 : \bar c = \frac ( \cos (355^\circ) + \cos (5^\circ) + \cos (15^\circ) ) = \frac ( 0.996 + 0.996 + 0.966 ) \approx 0.986 : \bar \theta = \left. \begin \arctan \left( \frac \right) & \bar s > 0 ,\ \bar c > 0 \\ \arctan \left( \frac \right) + 180^\circ & \bar c < 0 \\ \arctan \left (\frac \right)+360^\circ & \bar s <0 ,\ \bar c >0 \end \right\} = \arctan \left( \frac \right) = \arctan (0.087) = 5^\circ.


Generalizations


Spherical mean


Weighted spherical mean

A weighted spherical mean can be defined based on spherical linear interpolation.


See also

* Circular distribution * Circular standard deviation * Directional statistics * Centroid * Center of mass * Fréchet mean


References


Further reading

* Jammalamadaka, S. Rao and SenGupta, A. (2001). ''Topics in Circular Statistics'', Section 1.3, World Scientific Press, Singapore. * {{cite book , last=Hotz , first=Thomas , title=Lecture Notes in Computer Science , chapter=Extrinsic vs Intrinsic Means on the Circle , publisher=Springer Berlin Heidelberg , publication-place=Berlin, Heidelberg , year=2013 , isbn=978-3-642-40019-3 , issn=0302-9743 , doi=10.1007/978-3-642-40020-9_47


External links


Circular Values Math and Statistics with C++11
A C++11 infrastructure for circular values (angles, time-of-day, etc.) mathematics and statistics Means Directional statistics