|
| 1 | +--- |
| 2 | +layout: proof |
| 3 | +mathjax: true |
| 4 | + |
| 5 | +author: "Joram Soch" |
| 6 | +affiliation: "OvGU Magdeburg" |
| 7 | +e_mail: "joram.soch@ovgu.de" |
| 8 | +date: 2026-04-20 16:38:24 |
| 9 | + |
| 10 | +title: "Circular sample mean" |
| 11 | +chapter: "General Theorems" |
| 12 | +section: "Probability theory" |
| 13 | +topic: "Expected value" |
| 14 | +theorem: "Circular sample mean" |
| 15 | + |
| 16 | +sources: |
| 17 | + - authors: "Bishop CM" |
| 18 | + year: 2006 |
| 19 | + title: "Periodic variables" |
| 20 | + in: "Pattern Recognition for Machine Learning" |
| 21 | + pages: "pp. 105-106, eq. 2.169" |
| 22 | + url: "http://users.isr.ist.utl.pt/~wurmd/Livros/school/Bishop%20-%20Pattern%20Recognition%20And%20Machine%20Learning%20-%20Springer%20%202006.pdf" |
| 23 | + |
| 24 | +proof_id: "P533" |
| 25 | +shortcut: "meancirc-samp" |
| 26 | +username: "JoramSoch" |
| 27 | +--- |
| 28 | + |
| 29 | + |
| 30 | +**Theorem:** Let $x = \left\lbrace x_1, \ldots, x_n \right\rbrace$ be a [sample](/D/samp) from a [circular](/D/rvar-circ) [random variable](/D/rvar) $X$. Then, the [sample mean](/D/mean-samp) of $x$ is given by |
| 31 | + |
| 32 | +$$ \label{eq:meancirc-samp} |
| 33 | +\bar{x} = \arctan \left( \frac{\sum_{i=1}^n \sin x_i}{\sum_{i=1}^n \cos x_i} \right) |
| 34 | +$$ |
| 35 | + |
| 36 | +where $\sin$ and $\cos$ are the sine and cosine function, respectively, and $\arctan$ is the arctangent function. |
| 37 | + |
| 38 | + |
| 39 | +**Proof:** For observations of a [circular random variable](/D/rvar-circ) satisfying |
| 40 | + |
| 41 | +$$ \label{eq:rvar-circ-samp-x} |
| 42 | +0 \leq x_i < 2 \pi, \; i = 1,\ldots,n |
| 43 | +$$ |
| 44 | + |
| 45 | +calculating the [sample mean as the arithmetic mean](/D/mean-samp) is not appropriate as this does not preserve the periodic nature of the random variable. |
| 46 | + |
| 47 | +Instead and [in accordance with the definition of the circular expected value](/D/mean-circ), observation values are transformed to points on the unit circle ($r = 1$): |
| 48 | + |
| 49 | +$$ \label{eq:rvar-circ-samp-y} |
| 50 | +y_i = \left[ \begin{matrix} \cos x_i \\ \sin x_i \end{matrix} \right], \; i = 1,\ldots,n \; . |
| 51 | +$$ |
| 52 | + |
| 53 | +Then, we calculate the [sample mean](/D/mean-samp) of transformed data points |
| 54 | + |
| 55 | +$$ \label{eq:y-mean} |
| 56 | + \bar{y} |
| 57 | += \frac{1}{n} \sum_{i=1}^n y_i |
| 58 | += \left[ \begin{matrix} \frac{1}{n} \sum_{i=1}^n \cos x_i \\ \frac{1}{n} \sum_{i=1}^n \sin x_i \end{matrix} \right] |
| 59 | +$$ |
| 60 | + |
| 61 | +and equating this sample mean with its polar-coordinate representation |
| 62 | + |
| 63 | +$$ \label{eq:y-mean-pc} |
| 64 | + \left[ \begin{matrix} \frac{1}{n} \sum_{i=1}^n \cos x_i \\ \frac{1}{n} \sum_{i=1}^n \sin x_i \end{matrix} \right] |
| 65 | += \left[ \begin{matrix} \bar{r} \cos \bar{x} \\ \bar{r} \sin \bar{x} \end{matrix} \right] \; , |
| 66 | +$$ |
| 67 | + |
| 68 | +we obtain the solution for $\bar{x}$ by solving the equation system: |
| 69 | + |
| 70 | +$$ \label{eq:x-mean} |
| 71 | +\begin{split} |
| 72 | +\frac{\bar{r} \sin \bar{x}}{\bar{r} \cos \bar{x}} &= \frac{\frac{1}{n} \sum_{i=1}^n \sin x_i}{\frac{1}{n} \sum_{i=1}^n \cos x_i} \\ |
| 73 | +\frac{\sin \bar{x}}{\cos \bar{x}} &= \frac{\sum_{i=1}^n \sin x_i}{\sum_{i=1}^n \cos x_i} \\ |
| 74 | +\tan \bar{x} &= \frac{\sum_{i=1}^n \sin x_i}{\sum_{i=1}^n \cos x_i} \\ |
| 75 | +\bar{x} &= \arctan \left( \frac{\sum_{i=1}^n \sin x_i}{\sum_{i=1}^n \cos x_i} \right) \; . |
| 76 | +\end{split} |
| 77 | +$$ |
0 commit comments