Watson U2 Test Calculator
Inputs
- Inputs: summed squared gaps S 0.0891, mean fitted value Fbar 0.470, sample size n 30.
- Watson recentres the gaps around their own mean: n (Fbar - 0.5)^2 = 0.0270, which makes the statistic independent of where the circle is cut.
- U-squared = S - centering + 1/(12n) = 0.0891 - 0.0270 + 0.0028.
- Watson U-squared = 0.0649; Stephens' points are 0.152 at 10%, 0.187 at 5% and 0.268 at 1%.
Some data live on a circle: wind directions, animal orientations, times of day, phases of a cycle. Testing whether such data fit a circular distribution has a trap - the answer must not depend on where you cut the circle to start measuring. Watson's U-squared removes the trap by recentring the gaps around their own mean before summing. This calculator takes the summed squared gaps S, the mean fitted value and the sample size, and returns U-squared with its corrections itemised, against Stephens' points of 0.152 at 10%, 0.187 at 5%, 0.222 at 2.5% and 0.268 at 1%.
Worked examples
Comfortable fit
(0.0891 · 0.47 · 30)
| Watson U-squared | 0.0649 |
| Centering correction | 0.0270 |
| Correction term 1/(12n) | 0.0028 |
| Critical value at 5% | 0.187 |
Borderline case
(0.214 · 0.55 · 18)
| Watson U-squared | 0.1736 |
| Centering correction | 0.0450 |
| Correction term 1/(12n) | 0.0046 |
| Critical value at 5% | 0.187 |
Perfectly centred mean
(0.0612 · 0.5 · 50)
| Watson U-squared | 0.0629 |
| Centering correction | 0.0000 |
| Correction term 1/(12n) | 0.0017 |
| Critical value at 5% | 0.187 |
Data on a circle
Cut a circle anywhere and it becomes a line - but the choice of cut is the analyst's, not the data's. An ordinary EDF statistic computed after the cut changes if the cut moves, because gaps that straddled the origin are torn apart or joined. For directional data that is an unacceptable property: the wind does not know where north was declared to be, and a test of uniformity or of a fitted von Mises distribution must not either.
Watson's 1961 construction fixes the statistic's invariance first and its distribution second. Transform the observations through the fitted distribution to values on the circle, form the usual squared gaps against the staircase, then subtract n times the squared deviation of the gaps' mean from 0.5. That recentring is exactly the adjustment that makes the total identical for every choice of origin.
- U-squared = S - n(Fbar - 0.5)^2 + 1/(12n)
- Invariant to the choice of origin on the circle
- Stephens' points: 0.152 (10%), 0.187 (5%), 0.222 (2.5%), 0.268 (1%)
- The standard goodness-of-fit test for circular data
Why recentring works
The mean fitted value Fbar records where, on average, the observations fell around the circle relative to the fitted distribution. If the fit is good, Fbar sits near 0.5 and the correction is small - in the first example it removes only 0.0270 from S of 0.0891, leaving U-squared of 0.0649. If the data cluster where the model says they should not, Fbar drifts and the uncorrected sum would depend on the cut; the subtraction removes precisely the cut-dependent part.
The third example is the limiting case that proves the construction: Fbar of exactly 0.5 makes the centering correction 0.0000, and U-squared is just S plus 1/(12n) - 0.0629. When the data are centred on the circle as the model expects, Watson's statistic and the naive sum coincide, and the correction reveals itself as insurance that costs nothing when it is not needed.
Worked examples
Example 1: Sum of squared EDF gaps S 0.0891; Mean fitted value Fbar 0.47; Sample size n 30. Watson U-squared = 0.0649. Supporting values: Centering correction 0.0270; Correction term 1/(12n) 0.0028; Critical value at 5% 0.187. Inputs: summed squared gaps S 0.0891, mean fitted value Fbar 0.470, sample size n 30. Watson recentres the gaps around their own mean: n (Fbar - 0.5)^2 = 0.0270, which makes the statistic independent of where the circle is cut. U-squared = S - centering + 1/(12n) = 0.0891 - 0.0270 + 0.0028. Watson U-squared = 0.0649; Stephens' points are 0.152 at 10%, 0.187 at 5% and 0.268 at 1%.
Example 2: Sum of squared EDF gaps S 0.214; Mean fitted value Fbar 0.55; Sample size n 18. Watson U-squared = 0.1736. Supporting values: Centering correction 0.0450; Correction term 1/(12n) 0.0046; Critical value at 5% 0.187. Inputs: summed squared gaps S 0.2140, mean fitted value Fbar 0.550, sample size n 18. Watson recentres the gaps around their own mean: n (Fbar - 0.5)^2 = 0.0450, which makes the statistic independent of where the circle is cut. U-squared = S - centering + 1/(12n) = 0.2140 - 0.0450 + 0.0046. Watson U-squared = 0.1736; Stephens' points are 0.152 at 10%, 0.187 at 5% and 0.268 at 1%.
Example 3: Sum of squared EDF gaps S 0.0612; Mean fitted value Fbar 0.5; Sample size n 50. Watson U-squared = 0.0629. Supporting values: Centering correction 0.0000; Correction term 1/(12n) 0.0017; Critical value at 5% 0.187. Inputs: summed squared gaps S 0.0612, mean fitted value Fbar 0.500, sample size n 50. Watson recentres the gaps around their own mean: n (Fbar - 0.5)^2 = 0.0000, which makes the statistic independent of where the circle is cut. U-squared = S - centering + 1/(12n) = 0.0612 - 0.0000 + 0.0017. Watson U-squared = 0.0629; Stephens' points are 0.152 at 10%, 0.187 at 5% and 0.268 at 1%.
Reading U-squared against Stephens' points
The verdict ladder is Stephens': 0.152, 0.187, 0.222, 0.268. The first example's 0.0649 clears none of them - the fit is comfortable. The second example's 0.1736 falls in the honest borderland: past the 10% point, short of the 5% point of 0.187, so uniformity (or the fitted model) is doubted at one level and acquitted at the stricter one. Reporting that as a verdict either way would overstate it; the statistic's job is to locate the evidence, and 0.1736 locates it at suggestive.
As with every EDF test, fitting parameters from the same data - estimating the von Mises mean and concentration before testing against them - shifts the null distribution and needs its own tables. The points printed here are for a fully specified distribution, and the page says so because circular data's small samples make the flattery worse, not better.
Watson vs Kuiper and Kolmogorov-Smirnov
Kuiper's statistic is the other classical answer to the circle: it adds the largest positive and negative gaps, which is also origin-invariant, and it is particularly sensitive to a single localised departure. Watson's accumulates squared gaps everywhere, in the Cramer-von Mises spirit, and is generally the more powerful against the smooth, spread-out departures that fitted-model testing usually faces. Kolmogorov-Smirnov, unmodified, is simply not a circular statistic - its value moves with the cut - and using it on directions without the Kuiper or Watson modification is a category error that still appears in print.
The three form the same ladder as their linear cousins: maximum-gap statistics (KS, Kuiper) for sharp local failures, integrated statistics (CvM, Watson) for broad ones. On a circle the ladder has only two rungs that respect the geometry, and this page provides the integrated one.
Testing uniformity in practice
The commonest application is the humblest: are these directions uniform at all? Orientation studies - nest entrances, migration headings, fracture strikes - stand or fall on that question before any von Mises machinery is warranted. The second example's borderline 0.1736 is the realistic outcome: a hint of directionality that a larger sample must arbitrate. The test's power against a von Mises alternative grows with concentration and n together, and at n of 18 even a real preference can hide at the 10% level.
A practical warning closes the page: circular data are often recorded coarsely - compass points, hours of the day - and heavy ties distort the EDF machinery just as they do on the line. Grouped-data versions of the statistic exist for exactly that case. With genuinely continuous directions and a specified model, though, Watson's statistic remains what it was designed to be in 1961: the goodness-of-fit test that does not care where the circle was cut.
The statistic's small-sample behaviour is the last piece of practical knowledge. Stephens' points are asymptotic; at the sample sizes circular studies actually run - the second example's 18, the third's 50 - the true levels sit close to the tabulated ones for a specified distribution, which is more than can be said for many EDF tests, but fitted-parameter cases drift further. Where the verdict decides a paper's claim, a parametric bootstrap on the circle is the modern arbiter, and U-squared is an excellent statistic to bootstrap precisely because its construction is transparent.
It is also worth recording what the test cannot see. U-squared integrates squared gaps, so it is least sensitive to a sharp, narrow departure - a small cluster of directions exactly where the model forbids them can hide inside a modest total. Kuiper's statistic, built from the extreme gaps, catches that shape better. The two tests are complements on the circle just as their linear cousins are, and reporting both costs one extra line.
The choice of fitted family deserves its sentence too. Watson's statistic is most often aimed at the von Mises distribution, the circle's analogue of the normal, but the construction is indifferent to the family - any fully specified circular distribution supplies the transform, and the recentring does the rest. Testing a wrapped normal or a bimodal mixture against directional data runs through the same three terms, which is why the calculator asks for the gaps and their mean rather than for a named distribution: the statistic's inputs are the test's entire interface with the model.
FAQs
What U-squared does the first worked example give?
0.0649 - S of 0.0891 minus the centering correction of 0.0270 plus 0.0028. Below the 10% point of 0.152, the fit is comfortable.
What is the centering correction in the first example?
0.0270 - n(Fbar - 0.5)^2 with Fbar of 0.47 at n = 30. It is the term that makes the statistic independent of where the circle is cut.
What is the 5% critical value?
0.187, from Stephens' tabulation: 0.152 at 10%, 0.187 at 5%, 0.222 at 2.5% and 0.268 at 1%.
What is the 1/(12n) term in the first example?
0.0028 at n = 30 - the staircase discretisation term shared with the Cramer-von Mises statistic.
What U-squared does the second example give?
0.1736 - between the 10% and 5% points. Suggestive evidence against the fit, honestly reported as borderline rather than a verdict.
What U-squared does the centred third example give?
0.0629. With Fbar exactly 0.5 the centering correction is 0.0000 and the statistic reduces to S plus 1/(12n).