Petty's Notebook
ArticlesPapersnfieldAbout
Get notified when new posts are published. No spam, just math.
Alexander S. Petty  |  ©2009-2026
← Back
Collisions

Magnitude Decorrelation in the Collision Spectrum

July 22, 20269 min read
Companion paper: Magnitude Decorrelation in the Collision Spectrum →
Two chains run along the same channels, and their big loops no longer rise together. The plain correlation fades to zero, yet the heavy loops still count in the squared weights, where the cubic law keeps a factor of three.
Two chains run along the same channels, and their big loops no longer rise together. The plain correlation fades to zero, yet the heavy loops still count in the squared weights, where the cubic law keeps a factor of three.

The Collision Spectrum ends with a question. Two magnitudes, both extracted from the digit function, keep rising and falling together. At base five the correspondence is exact. Their correlation is one. At base seven it is about 0.8440.8440.844. By base seventy-one it is still about 0.6750.6750.675.

Does that positive relation last as the base grows?

Its limit is zero.

The proof comes in three pieces. The first magnitude is a short character sum, read over a single block of digits. Adapting a recent and rather surprising theorem of Adam Harper, that character sums are typically a little smaller than a random walk of the same length would be, I show that most of these sums are small. The second magnitude is the size of a Dirichlet LLL-function at one, the kind of number that turns up in class number formulas and in the way primes spread through arithmetic progressions. I show that it has no runaway tail of large values, and that its spread never collapses to a single value. Together those three facts force the correlation to zero. They do it slowly. The bound shrinks like one over the fourth root of log⁡log⁡b\log\log bloglogb, which is why the tables still show large positive values at base seventy-one.

Zero correlation is a weaker verdict than it sounds. Take any number between minus one and one, and square it. The square is completely determined by the number you started with. Know one and you know the other. Yet if you choose the number at random, the correlation between it and its square is zero. Correlation, the measure statisticians have used since Galton and Pearson, asks whether two quantities rise and fall together. It can miss a relation that is total.

But something survives. Square the magnitudes before comparing them, and a substantial relation persists. The average of their product approaches three times the product of their separate averages. The cubic law determines that three.

I want to show how both can be true.

Your browser does not support embedded video.
A shrinking part of the character family carries nearly all the square mass. A video presentation, 7 min 53 sec.

Two walks on a circle of arrows

Make two walks from the arrows below. For the first, put arrows one through four end to end. For the second, use all twenty arrows, giving arrow rrr a length of r/25r/25r/25.

Now measure the straight-line distance from each starting point to its endpoint. Forget how far the path travels. We want how far it gets.

A twenty-arrow circle labels the nonzero character values modulo twenty-five. Arrows one through four are highlighted. Below, two exact head-to-tail paths use the short interval and the whole weighted remainder system. Gold start-to-end chords have lengths 2.762 and 2.470. A twenty-arrow circle labels the nonzero character values modulo twenty-five. Arrows one through four are highlighted. Below, two exact head-to-tail paths use the short interval and the whole weighted remainder system. Gold start-to-end chords have lengths 2.762 and 2.470.
One actual character modulo twenty-five, where multiplying by two moves an arrow one place clockwise. Below, the short walk adds arrows one through four, the long walk gives arrow r length r/25, and gold measures how far each gets.

The arrows follow a multiplication rule. Multiplying their remainder labels adds their angles. In this base-five example, multiplying by two turns the arrow eighteen degrees clockwise. Multiples of five get zero weight, so they contribute no arrows. Such a pattern is called a character. Choose a different character and the arrows turn differently. Repeat the two walks and we have another pair of distances.

These distances come from the two factors in The Collision Spectrum. The short walk comes from the boundaries between digit bins. The weighted walk reads the whole remainder system. Its distance is also, after rescaling, the magnitude of an LLL-function value. Both come from the same arithmetic, but they read different parts of it.

For the character in the figure the short walk ends 2.762 from where it started and the weighted walk 2.470, which is exactly 2/52/\sqrt52/5​ of the first. At base five, the comparison uses eight characters, and all eight pairs share that ratio. A larger short-walk distance always comes with a larger weighted-walk distance, in the same ratio. Their ordinary correlation is one.

Eight pairs, sixty-four pairings

Stay at base five. Label the eight arrow patterns A through H. Each supplies a short distance and a weighted distance.

Square both distances and multiply them. Do that for the eight original pairs. Their average is exactly thirty.

Now let every short distance meet every weighted distance. A’s short walk can meet B’s weighted walk, or C’s, or its own. Eight choices on each side give sixty-four pairings. Their average squared product is exactly twenty.

An eight-by-eight heatmap shows all sixty-four squared products between short and weighted walks at base five. Gold outlines the eight original pairs on the diagonal. Their average is thirty, while all sixty-four products average twenty. An eight-by-eight heatmap shows all sixty-four squared products between short and weighted walks at base five. Gold outlines the eight original pairs on the diagonal. Their average is thirty, while all sixty-four products average twenty.
Rows pick a short distance and columns a weighted one, and each cell is their squared product. The gold diagonal keeps every character with its own partner and averages thirty. The whole grid averages twenty.

The gold diagonal keeps the original partners. The entire square mixes them. Keeping the partners gives 30/20=1.530/20=1.530/20=1.5 times the mixed-pairing average.

There is no need to enumerate every new pair at a larger base. The all-pairings average is the product of the two separate averages. Call the ratio RbR_bRb​,

Rb=paired averagemixed-pairing average.R_b=\frac{\text{paired average}} {\text{mixed-pairing average}}.Rb​=mixed-pairing averagepaired average​.

At base seventy-one it is about 2.7612.7612.761. Its limit is three. This is a ratio of averages rather than a correlation coefficient, so it is free to exceed one.

One large value among many

Squaring can change which part of a population controls the answer.

Take a hundred numbers. Ninety-nine are zero. The last is ten. Their average is 0.10.10.1, but their average square is one.

Take ten thousand numbers. All but one are zero. The last is a hundred. The average falls to 0.010.010.01. The average square is still one.

Two complete grids contain one hundred and ten thousand entries. Each has one nonzero corner cell, ten and one hundred respectively. Bars show ordinary averages falling from 0.1 to 0.01 while both average squares equal one. Two complete grids contain one hundred and ten thousand entries. Each has one nonzero corner cell, ten and one hundred respectively. Bars show ordinary averages falling from 0.1 to 0.01 while both average squares equal one.
A toy example. Every muted cell is zero. The gold cell becomes a hundred times rarer while its square becomes a hundred times larger, so the average falls and the average square stays at one.

The exceptional value gets larger as it gets rarer. Squaring gives it enough weight to compensate exactly.

The short character sums do something of this kind. To compare different bases, divide each short distance by the square root of the base. The average square of these normalized distances is exactly one, at every prime base under consideration.

Their ordinary average nevertheless tends to zero.

This forces the square mass into a shrinking part of the family. Pick any fixed positive threshold. Eventually almost every normalized distance is below it, while almost all the square mass is above it.

At base seventy-one we can see a finite version of that imbalance. The family contains 2,450 characters. Take the 245 largest short distances. They are a tenth of the family, yet they carry about 54.154.154.1 percent of its square mass.

A forty-nine by fifty mosaic shows the normalized short-distance square for every character at base seventy-one. Gold outlines the largest 245 entries. Two aligned bars compare their ten percent share of the characters with their 54.1 percent share of square mass. A forty-nine by fifty mosaic shows the normalized short-distance square for every character at base seventy-one. Gold outlines the largest 245 entries. Two aligned bars compare their ten percent share of the characters with their 54.1 percent share of square mass.
All 2,450 characters at base seventy-one in index order, colored by the squared short distance. Gold outlines mark the largest 245. The bars compare their share of the family with their share of the square mass.

In the picture the outlined cells are scattered thinly through the field, each one a large value among ordinary neighbors. The bars underneath give the count, a tenth of the family holding more than half the mass. That is one base. The theorem says the imbalance keeps growing, until a vanishing fraction carries almost everything.

The proof has to catch the exceptions

Showing that most short distances are small is not enough. A few enormous values could still keep their average product with the weighted distances large.

The proof controls both sides. An estimate adapted from Adam Harper’s work on short character sums makes the average of the normalized short distances raised to the power 3/23/23/2 tend to zero. That power lies between the ordinary average and the square average. It detects enough of the large values to close the gap.

On the other side, scale the weighted distances by π/b\pi/bπ/b so they too can be compared across bases. They have a bounded third moment, and their variance stays above a fixed positive amount. They neither grow an uncontrolled tail nor collapse to one common value.

Together these facts force the ordinary correlation to zero. The argument is unconditional. It does not assume the Riemann hypothesis or its generalization.

The squared comparison comes from a different result. Let EbE_bEb​ be the collision energy, the sum of squares of the centered digit table. The exact identity is

Rb=3Eb(b−1)(b2−1).R_b=\frac{3E_b}{(b-1)(b^2-1)}.Rb​=(b−1)(b2−1)3Eb​​.

Digit Collisions and the Cubic Law proves that Eb/b3E_b/b^3Eb​/b3 tends to one. The denominator grows like the same cube. That leaves the three. The Secondary Term of the Cubic Law gives its leading correction.

So the positive correlations in the tables fade, and still the arithmetic that paired the two walks leaves its mark. Keep those partners and square their distances. Even when the ordinary correlation has gone, breaking the pairs costs a factor of three.

The walks and the two comparisons, in notation

For a prime base b≥5b\ge5b≥5, work modulo b2b^2b2 with all (b−1)2/2(b-1)^2/2(b−1)2/2 primitive odd characters, including both members of every conjugate pair. A primitive character does not come from a smaller modulus. An odd character gives opposite arrows to opposite remainders. These are the restrictions supplied by the collision table’s centering and reflection.

The two walks are

Tb(χ)=∑k=1b−1χ(k)‾,T_b(\chi)=\sum_{k=1}^{b-1}\overline{\chi(k)},Tb​(χ)=k=1∑b−1​χ(k)​,

B1,χ‾=1b2∑a=1b2−1aχ(a)‾.B_{1,\overline\chi}=\frac1{b^2}\sum_{a=1}^{b^2-1}a\overline{\chi(a)}.B1,χ​​=b21​a=1∑b2−1​aχ(a)​.

Character values at multiples of bbb are zero. The diagonal factor in the collision spectrum is −2χ(b+1)‾Tb(χ)-2\overline{\chi(b+1)}T_b(\chi)−2χ(b+1)​Tb​(χ). Its magnitude is therefore twice the short-walk distance. The weighted walk satisfies the classical special-value identity

∣B1,χ‾∣=bπ∣L(1,χ)∣.|B_{1,\overline\chi}|=\frac b\pi|L(1,\chi)|.∣B1,χ​​∣=πb​∣L(1,χ)∣.

The normalized variables used in the atlas are X=∣Tb∣/bX=|T_b|/\sqrt bX=∣Tb​∣/b​ and Y=π∣B1,χ‾∣/b=∣L(1,χ)∣Y=\pi|B_{1,\overline\chi}|/b=|L(1,\chi)|Y=π∣B1,χ​​∣/b=∣L(1,χ)∣. Positive rescaling of either variable changes neither the ordinary correlation nor the squared-product ratio. Thus the raw distances in the eight-by-eight example give the same R5R_5R5​ as the normalized variables.

With averages over the character family,

EX2=1,\mathbb E X^2=1,EX2=1,

EY2=νb=π26(1−1b2),\mathbb E Y^2=\nu_b=\frac{\pi^2}{6}\left(1-\frac1{b^2}\right),EY2=νb​=6π2​(1−b21​),

rb=E(XY)−EX EYVar⁡(X)Var⁡(Y),r_b=\frac{\mathbb E(XY)-\mathbb E X\,\mathbb E Y} {\sqrt{\operatorname{Var}(X)\operatorname{Var}(Y)}},rb​=Var(X)Var(Y)​E(XY)−EXEY​,

Rb=E(X2Y2)EX2 EY2.R_b=\frac{\mathbb E(X^2Y^2)}{\mathbb E X^2\,\mathbb E Y^2}.Rb​=EX2EY2E(X2Y2)​.

At base five, ∣B1,χ‾∣=2∣T5(χ)∣/5|B_{1,\overline\chi}|=2|T_5(\chi)|/\sqrt5∣B1,χ​​∣=2∣T5​(χ)∣/5​ for every character in the family. The separate raw square averages are five and four. Their product is twenty, and the paired square-product average is thirty. Letters A through H in the figure are character indices 1,3,7,9,11,13,17,191,3,7,9,11,13,17,191,3,7,9,11,13,17,19 for the generator two modulo twenty-five.

From fractional moments to decorrelation

Harper’s stated theorem uses a prime modulus. The paper checks its transfer to this prime-square family, including the product-size and unit conditions required by character orthogonality. It does not simply substitute b2b^2b2 into a prime-modulus theorem.

Writing Hb=EX3/2H_b=\mathbb E X^{3/2}Hb​=EX3/2, the transferred estimate gives

Hb≪(log⁡log⁡b)−3/8.H_b\ll(\log\log b)^{-3/8}.Hb​≪(loglogb)−3/8.

Hölder’s inequality gives EX≤Hb2/3\mathbb E X\le H_b^{2/3}EX≤Hb2/3​ and

E(XY)≤Hb2/3(EY3)1/3.\mathbb E(XY)\le H_b^{2/3}(\mathbb E Y^3)^{1/3}.E(XY)≤Hb2/3​(EY3)1/3.

The third moment of YYY is uniformly bounded. Since EX2=1\mathbb E X^2=1EX2=1, the variance of XXX tends to one. The exact identities Eχ(2)=0\mathbb E\chi(2)=0Eχ(2)=0 and E[Y2χ(2)]=νb/2\mathbb E[Y^2\chi(2)]=\nu_b/2E[Y2χ(2)]=νb​/2 yield Var⁡(Y)≥νb/16\operatorname{Var}(Y)\ge\nu_b/16Var(Y)≥νb​/16. These bounds keep the correlation denominator away from zero and give

∣rb∣=O ⁣((log⁡log⁡b)−1/4).|r_b|=O\!\left((\log\log b)^{-1/4}\right).∣rb​∣=O((loglogb)−1/4).

The slow double-logarithmic bound is compatible with positive correlations throughout the finite calculations. It is a proof of the limit, not a useful numerical prediction at these bases.

For the square ratio, the secondary energy term gives

Rb=3−3π2(log⁡b)2b+O ⁣(log⁡2(2b)blog⁡log⁡(3b)).\begin{aligned} R_b={}&3-\frac3{\pi^2}\frac{(\log b)^2}{b}\\ &+O\!\left(\frac{\log^2(2b)}{b\log\log(3b)}\right). \end{aligned}Rb​=​3−π23​b(logb)2​+O(bloglog(3b)log2(2b)​).​

In particular, Cov⁡(X2,Y2)→π2/3\operatorname{Cov}(X^2,Y^2)\to\pi^2/3Cov(X2,Y2)→π2/3. Neither this covariance nor RbR_bRb​ is the Pearson correlation of the squared variables.

Inspect the character families

Every character contributes one point with horizontal coordinate XXX and vertical coordinate YYY. Conjugate characters have identical magnitudes, so their points coincide. The atlas counts both.

Six character-family density maps at bases five, seven, seventy-one, 251, 509 and 1,009 use common horizontal and vertical scales. A fixed color scale records the fraction of characters in each small cell. The largest family contains 508,032 characters. Six character-family density maps at bases five, seven, seventy-one, 251, 509 and 1,009 use common horizontal and vertical scales. A fixed color scale records the fraction of characters in each small cell. The largest family contains 508,032 characters.
Every character at six bases, binned on the same axes. Horizontal is the normalized short distance X and vertical is the size of L at one. Color gives the share of the family in each cell. Open it at full resolution.

Each small cell has the same dimensions in all six panels. Its color is the fraction of the family falling inside it, on one fixed logarithmic scale. Empty cells remain blank. Outlines make the few occupied cells at bases five and seven visible at reading size. They add no observations.

Base Characters Correlation r Square ratio R
5 8 1.0000 1.5000
7 18 0.8440 1.8333
13 72 0.8004 2.2381
29 392 0.7203 2.5327
71 2,450 0.6753 2.7608
251 31,250 0.6082 2.9047
509 129,032 0.5841 2.9468
1,009 508,032 0.5646 2.9712

The paper’s ledger contains all eighteen prime bases from five through seventy-one, totaling 14,372 characters. I also ran the bases 101, 251, 509 and 1,009. Across both sets, the computation covers 687,686 characters. The atlas shows six of these families, not every base in the ledger.

Character sums are recomputed by a finite Fourier transform and checked against direct summation. The original ledger is also checked against the native C implementation. The square ratios agree with the exact finite collision energies. These checks verify the examples, not the asymptotic theorems. The finite correlation is not monotone at every prime.

The finite comparison plots

The eighteen-base ledger can also be read as two curves. These plots keep the ordinary correlation, the square ratio and the concentration of square mass together for comparison.

The eighteen-base paper ledger compares ordinary magnitude correlation with the squared-product ratio. The dashed limits are the proved values.
The eighteen-base paper ledger compares ordinary magnitude correlation with the squared-product ratio. The dashed limits are the proved values.
Sorting the short distances from largest to smallest gives the cumulative share of square mass. At base seventy-one the largest tenth carries about 54.1 percent.
Sorting the short distances from largest to smallest gives the cumulative share of square mass. At base seventy-one the largest tenth carries about 54.1 percent.
The paper and its sources

The full statements, proofs and finite verifiers are in Magnitude Decorrelation in the Collision Spectrum. The fractional-moment method comes from Adam Harper, The typical size of character and zeta sums is o(x)o(\sqrt{x})o(x​). The manuscript separates that method, its prime-square transfer and the exact collision-energy identities.

The spectral factorization is introduced in The Collision Spectrum, the cubic energy law in Digit Collisions and the Cubic Law, and its secondary term in The Secondary Term of the Cubic Law.

Companion paper: Magnitude Decorrelation in the Collision Spectrum →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: The Secondary Term of the Cubic Law
Next: The Clocks Beneath Collision Energy →