Statistics & probability

Circular circular correlation calculator for paired angles

Measure paired angular association with a centered-sine circular-circular correlation and a repeatable two-sided permutation test.

Your numbers

6–300 angles; preserve pairing order.
Same length and angular unit as first list.
Apply the selected unit to both samples.
Integer 99–4999; more draws improve Monte Carlo resolution.
Integer 1–2147483647 for repeatability.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Measure paired angular association with a centered-sine circular-circular correlation and a repeatable two-sided permutation test. Report circular means and resultant lengths alongside the coefficient.

THE FORMULAr=Σsin(αᵢ−ᾱ)sin(βᵢ−β̄)/√[Σsin²(αᵢ−ᾱ)Σsin²(βᵢ−β̄)]; p=(exceedances+1)/(B+1).

A worked example

The ten paired direction records give centered-sine correlation 0.983251; 999 permutations with seed 2718 produce p=0.001.

Good to know

6–300 independent angular pairs; same explicit degree/radian unit; stable nonzero circular resultants and centered-sine variation. Seeded 99–4999 two-sided unrestricted permutations with plus-one correction. No clustered/time-series permutation, causal inference or universal nonlinear dependence claim.

Treat both measurements as angles

Circular-circular correlation measures association between paired angular variables, such as two direction measurements taken on the same occasion. Ordinary linear correlation can fail near the wrap boundary because values just below a full turn are close to zero geometrically despite being far apart numerically.

This calculator uses the Jammalamadaka–Sarma centered-sine coefficient. It reports a signed association, circular means and resultant lengths for both variables, together with a seeded two-sided permutation test. Both variables must be angular; an angle paired with an ordinary scalar measurement requires a different circular-linear method.

Paired directions and their centered-sine associationFirst direction (degrees)Second direction (degrees)Centered-sine r=0.983
Scroll across to see the full diagram.
The ten paired direction records give centered-sine correlation 0.983251; 999 permutations with seed 2718 produce p=0.001.

Compare this with the Circular linear correlation calculator from paired angles and measurements. Measure association between two angular variables,with rotation-invariant centered sine products and permutation evidence.

Keep pairs and units consistent

The first and second lists must contain the same number of angles in matching observation order. Each pair belongs to one independent observational unit. Choose degrees or radians explicitly; the selected unit applies to both lists. Values outside one full turn are acceptable because sine and cosine wrap them naturally.

A conversion mistake can produce a mathematically finite but meaningless answer. For example, ninety degrees corresponds to pi divided by two radians, not to ninety radians. Changing the order of one list changes the pairing and therefore the association; sorting both lists separately would manufacture a different dataset.

Find a circular mean before centering

For each variable, the circular mean is the direction of the summed unit vectors. The mean resultant length is the magnitude of that sum divided by the sample size and lies between zero and one. It measures concentration around a common direction rather than the strength of association between variables.

If the resultant is nearly zero, a unique stable mean direction is not supported. The centered-sine coefficient depends on that mean, so the calculator rejects such a sample. Opposing or broadly balanced directions can have this problem even though an ordinary arithmetic mean of their numerical encodings is easy to calculate.

The coefficient compares centered sine deviations

Each angle is transformed to the sine of its deviation from its own circular mean. The coefficient is the sum of paired sine products divided by the square root of the two sums of squared sine deviations. This normalization bounds the coefficient between minus one and one within rounding error.

Adding a fixed rotation to either angular variable does not change the coefficient because its circular mean rotates with it. Reversing orientation for one variable changes the sign. This invariance is useful for compass-origin changes, but it does not make the coefficient a complete description of every nonlinear or multimodal directional relationship.

Read the paired example

The prefilled angles mostly increase together, with modest departures between their paired directions. The fitted coefficient is therefore strongly positive. The displayed means locate the two direction samples, while the resultant lengths describe their separate angular concentration; neither mean difference nor resultant length substitutes for the correlation.

The example has ten independent pairs and uses nine hundred ninety-nine permutations with a fixed integer seed. Repeating the calculation with those settings gives the same Monte Carlo result. Editing a single second-list angle changes the paired sine products even when the marginal list of first angles stays fixed.

Permutation evidence needs exchangeability

The test randomly shuffles the second-variable values among the fixed first-variable observations. Each shuffled coefficient is compared with the absolute observed coefficient, making the comparison two-sided. The p-value uses the number of exceedances plus one divided by the number of permutations plus one.

That plus-one convention avoids a reported zero merely because a finite random sample of permutations found no exceedance. It does not remove Monte Carlo uncertainty. Time-series pairs, clustered observations or repeated measurements can violate unrestricted exchangeability and would need a permutation scheme that respects their dependence, which this page does not implement.

Recognize degenerate and incomplete summaries

A variable can have a defined mean but zero centered-sine variation, as when every direction is identical. The correlation denominator then vanishes and the calculator returns an informative error. This prevents a constant directional variable from receiving a misleading perfect or zero coefficient.

The supported range is six to three hundred pairs, with ninety-nine to four thousand nine hundred ninety-nine permutations. A small coefficient does not prove independence, and a small p-value does not establish causation. Inspect paired direction plots and consider the sampling design before reducing a directional relationship to one signed statistic.

A few questions, answered

Why not use ordinary Pearson correlation?

Angular wrap boundaries make ordinary numerical distances depend on the chosen angle origin.

Does changing degrees to radians change r?

Correctly converting both lists and their unit selection leaves the coefficient unchanged.

Can the permutation p-value be zero?

No. The plus-one convention gives a minimum of one divided by B plus one.

Why reject a nearly zero resultant?

The circular mean is unstable there, so the centered-sine definition is not reliably identified.

Find your calculator

Start typing to explore the library.