EpistemicPhysics
All articles
Bayesian relativity · Probability · Number theory

Prime signs, wandering clocks, and the Jeffreys connection

Follow a wandering clock from the Jeffreys prior to prime parity, square lattices, and the interference patterns of Dirichlet beta.

Put two wandering insects on separate number lines. Both begin at zero. The first has walls at −1 and +1: when it touches a wall, ring a bell. Wherever the second insect happens to be when the bell rings, record its position.

After the right rescaling, those readings follow the same rapidity distribution as a Jeffreys belief. Their magnitude moments contain an alternating sum over odd integers. Factor those integers into primes, and the alternating signs turn into a precise rule about orientation. Draw integer points on a square lattice, and the same rule counts which circles contain them.

This is a field trip with several maps. Probability supplies the wandering clock, arithmetic supplies prime factorizations, and Epistemic Physics supplies the reason to care about Jeffreys rapidity. We will keep the maps aligned, so that each bridge has a visible equation beneath it.

Three betas, three jobs

The similar names can conceal different objects:

NameDefinition or role
Beta⁡(α,β)A probability distribution for a number between zero and one
Euler’s B(α,β)The integral that normalizes that distribution
Dirichlet’s βD(s)An alternating arithmetic sum over odd integers

For positive parameters,

B(α,β)=∫01bα−1(1−b)β−1db.

Choose the Jeffreys state, B∼Beta⁡(1/2,1/2). Here the two half-weights are prior contributions; they do not describe an observed half-trial. Define a centered random value U=2B−1 and its random rapidity Φ=artanh⁡U. These are random variables drawn from the full belief distribution. The state’s centered mean is EU=0.

The corresponding densities line up beautifully:

fB(b)=1πb(1−b),0<b<1,fU(u)=1π1−u2,−1<u<1,fΦ(ϕ)=sech⁡ϕπ,−∞<ϕ<∞.

Here sech⁡ϕ=1/cosh⁡ϕ. The last line follows from u=tanh⁡ϕ and du/dϕ=sech2⁡ϕ: stretch the horizontal ruler, and the density compensates. This is the full-distribution version of the rapidity transformation in the Bayesian relativity foundations.

Why arcsine? The centered cumulative probability is

Pr(U≤u)=12+arcsin⁡uπ.

Equivalently, choose an angle uniformly on (−π/2,π/2) and project it by U=sin⁡θ. Equal angular steps crowd together near the endpoints, producing the two high shoulders of the density.

Odd numbers emerge from the rapidity curve

Let R=|Φ|, the nonnegative rapidity magnitude. For r>0, a geometric-series expansion gives

sech⁡r=2(e−r−e−3r+e−5r−⋯).

Every odd decay rate appears, with alternating signs. Multiply by rs−1 and integrate. The elementary integral ∫0∞rs−1e−ardr=Γ(s)a−s uses the Gamma function, the continuous extension of factorials. We obtain

E[Rs−1]=4πΓ(s)βD(s),βD(s)=1−3−s+5−s−7−s+⋯.

Absolute interchange of the integrals and sum works for ℜs>1; analytic continuation extends this identity to ℜs>0, where the original moment integral exists. In particular,

βD(1)=π4,ER=4Gπ,ER2=π24,

where G=βD(2) is Catalan’s constant. These constants describe ordinary magnitudes in a probability distribution. The arithmetic appears because the rapidity curve has those particular exponential modes.

Prime factors carry orientation bits

Give each positive integer a label:

χ4(n)={0,n even,+1,n≡1(mod4),−1,n≡3(mod4).

The notation n≡3(mod4) means that division by four leaves remainder three. Multiplication preserves the rule: χ4(mn)=χ4(m)χ4(n). A negative sign acts like a flip; two flips restore the starting orientation. Thus

45=32⋅5⟶(−1)2(+1)=+1,

while 15=3⋅5 has negative orientation.

Unique prime factorization now reorganizes the sum into an Euler product, one factor per prime:

βD(s)=∏p≡1 (4)11−p−s∏p≡3 (4)11+p−s,ℜs>1.

The prime two is absent because its character is zero. This is a specialization of the Dirichlet-character Euler product.

To make a probability model, normalize positive weights first and measure the sign afterward. For a real exponent σ>1, choose an odd integer N with

Pr(N=n)=n−σZodd(σ),Zodd(σ)=(1−2−σ)ζ(σ).

Here ζ(σ)=∑n≥1n−σ. Large σ favors small integers. The orientation S=χ4(N) has mean

r(σ)=ES=βD(σ)(1−2−σ)ζ(σ).

Factor N=∏pKp. The multiplicities Kp are independent geometric random variables: Pr(Kp=k)=(1−p−σ)p−kσ. For a flipping prime,

E[(−1)Kp]=1−p−σ1+p−σ=tanh⁡(σlog⁡p2).

Therefore

r(σ)=∏p≡3 (4)tanh⁡(σlog⁡p2).

There is our velocity-rapidity function again! Each factor is the mean of a binary orientation. Independent orientations compose by multiplying their means; likelihood ratios compose by adding their log odds. Those are different measurements of a composite record.

At σ=2, r=8G/π2. As σ approaches one from above, r approaches zero while the normalizer diverges. The finite signed sum βD(1)=π/4 survives, but the infinite odd-integer probability ensemble has no normalization there.

Try the prime buttons before collecting any journeys. Can you predict which repeated factor restores positive orientation? Then lower σ and enlarge the prime cutoff: more flipping modes should reduce the expected sign.

Arithmetic meets probability

A prime switchboard and a wandering clock

Build an odd integer with prime tiles. Then reveal a wandering clock one piece at a time: its first wall crossing decides when the independent reader stops.

Let one wandering coordinate stop another

The rose clock X starts at 0 and stops on reaching either wall ±1. The independent sky reader W stops at the same time T. Start a journey, predict the reader's sign, then uncover the path until the clock stops it. The reading is rapidity Φ = πWₜ/2; U = tanh Φ.

Latest stopped journey

-1010Start a journey

● X: clock and walls● W: independent reader

Readings and the exact distribution

Probability per bin-5Φ = πWₜ/25

■ Simulated readings━ Exact bin probability

Completed journeys
0
Mean exit time, target 1
Waiting
Revealed rapidity Φ
Waiting
Simulation limits and exact comparison

Simulation: independent Gaussian increments with Δt = 1/512 (0.001953), first detected grid exit, and time cap 12. Grid monitoring misses some between-step crossings and biases exit times upward. 0 capped journeys excluded; 0 completed readings lie outside this chart. Bars divide by all completed journeys, including values outside the chart. The latest 2,048 journeys are retained. The gold marks integrate the exact continuous law. Seeded runs are reproducible; collecting more journeys reduces sampling noise but leaves the time-step approximation.

A prime cutoff P keeps all odd primes up to P, with unlimited multiplicities. It still permits arbitrarily large integers. An integer cutoff N≤M defines a different ensemble. This distinction matters especially near σ=1, where convergence slows.

A bell rung by Brownian motion

Now give the insects an exact mathematical motion. Let Xt and Wt be independent standard Brownian motions, continuous random paths whose increments over a duration h are Gaussian with mean zero and variance h. Both start at zero. Define the clock’s first exit time

T=inf{t≥0:|Xt|=1}.

The clock has a simple Laplace transform:

E[e−λT]=sech⁡2λ,λ≥0.

You can derive it by solving the backward equation u″/2=λu with u(−1)=u(1)=1 and evaluating at zero. Given T, the independent reader has law WT∼N(0,T). Thus, using a Fourier frequency k,

E[eik(π/2)WT]=E[e−π2k2T/8]=sech⁡πk2.

This is the characteristic function of our Jeffreys rapidity density. Consequently,

Φ =d π2WT =d π2TZ,Z∼N(0,1),Z independent of T.

The symbol =d means equal distributions. Transform the reading by U=tanh⁡Φ, and it acquires the centered arcsine law. The clock’s own endpoint is always a wall, XT=±1; using the independent reader is essential. These hyperbolic transforms and Brownian exit laws appear together in Biane, Pitman, and Yor’s probability constructions.

A possible Epistemic Physics interpretation is deliciously concrete: one internal process accumulates toward a decision threshold while another explores possible rapidities. A random commitment time mixes narrow and broad Gaussian explorations. Independence, Brownian increments, and symmetric thresholds are the chosen ingredients. An actual lineage of accumulating trials would need an update rule producing them. Repeated testimony does not become an independent tracelet merely because a diffusion model is convenient.

Turn the clock upside down

The same clock reaches farther into number theory. Its survival probability is a sum of odd modes:

Pr(T>t)=4π∑n=0∞(−1)n2n+1exp⁡[−π2(2n+1)2t8].

Integrating the survival probability against qtq−1 yields

E[Tq]=4πΓ(q+1)(8π2)qβD(2q+1),ℜq>0.

For example, ET=1 and ET2=5/3. Both tails of the exit law decay fast enough that all complex-order moments exist; the displayed formula extends with apparent singularities interpreted by limits.

Define an inverse exit scale and a completed arithmetic function:

Q=2πT,Λβ(s)=(4π)(s+1)/2Γ(s+12)βD(s).

The surprising correspondence is

E[Qs]=Λβ(s)=Λβ(1−s).

The Gamma and scale factors complete the function so that it reflects about s=1/2. The reciprocal law and completion are given in Biane, Pitman, and Yor, equations 39 through 41. As quick checks, EQ=1 and EQ2=4G/π.

Let L=log⁡Q have density p. Reflection takes the concrete form p(−ℓ)=eℓp(ℓ). Weight by eℓ/2 and normalize:

g(ℓ)=eℓ/2p(ℓ)Λβ(1/2)=p(ℓ)p(−ℓ)∫p(u)p(−u)du.

This density is symmetric. Its Fourier response is

Eg[eikL]=Λβ(1/2+ik)Λβ(1/2).

Picture one tiny compass arrow per log-scale reading, rotated through angle kL. At certain frequencies their average disappears. A zero on the critical line is precisely such a cancellation in a positive probability ensemble. Requiring every nontrivial Dirichlet-beta zero to lie on that line is this function’s instance of the generalized Riemann hypothesis. Symmetry supplies the mirror, while a theorem about all zeros requires more.

Which quantity gets the square root?

A half-moment needs a named random variable. Here are three different weights when the arithmetic argument is s=1/2+ik:

ObservableWeight in its moment integral
Rapidity magnitude R=|Φ|R−1/2eiklog⁡R
Exit time TT−1/4e(ik/2)log⁡T
Inverse exit scale QQ1/2eiklog⁡Q

The index shifts matter. A square root of velocity is another observable altogether. Substituting z=u2 in the arcsine density gives

E|U|q=1πB(q+12,12),ℜq>−1.

This time Euler’s Beta function appears. Taking |U| discards direction and compresses magnitudes. Taking the principal complex square root preserves the sign as a phase:

U={|U|,U≥0,i|U|,U<0.

For a symmetric law, EU=(1+i)E|U|/2. Both components are nonnegative, so these two directions cannot cancel like the rotating log-scale arrows. If we call A=U an amplitude, then A2=U and |A|2=|U| answer different questions. In a plane, square-rooting reiθ halves its angle: a continuous full turn changes the root’s sign. That invites a spinor analogy; a physical spin model needs a specified representation and dynamics.

Likewise, ordinary cumulants have integer orders. A useful alternative to an ambiguous “half-cumulant” is F(σ)=log⁡E[Qσ]. Its first two derivatives are the mean and variance of log⁡Q under the normalized Qσ weighting. At σ=1/2, the mean is zero by reflection symmetry. The half appears in the selected ensemble, while the derivatives retain their ordinary meaning.

A square lattice hiding in the prime signs

Write a lattice point (a,b) as a Gaussian integer a+ib. Its squared distance from the origin is a2+b2. A prime congruent to one modulo four splits into conjugate Gaussian factors, such as 5=(2+i)(2−i). A prime congruent to three modulo four stays prime in this larger number system. Conrad’s Gaussian-integer notes develop this geometry through factorization.

Let r2(n) count ordered integer pairs with a2+b2=n, including signs. The orientation character counts them:

r2(n)=4∑d∣nχ4(d).

For n=5 there are eight points, (±1,±2) and (±2,±1); for n=3 there are none. Summing by squared radius gives

ζ(s)βD(s)=14∑(a,b)≠(0,0)(a2+b2)−s,ℜs>1.

Build a squared radius from prime factors, predict whether its circle contains integer points, and try repairing an empty shell.

Prime factors leave footprints

Repair a lattice shell

Restore an empty shell. Make at least one integer point land on the circle. Build a squared radius with prime tiles, predict, then reveal.

a² + b² = 15Will integer points land on the circle?

Squared radius 15. The circle is visible; its integer points are waiting to be revealed.

The prime rule and the exact count

A prime congruent to 3 modulo 4 must occur an even number of times for an integer to be a sum of two squares. Pairing a lone 3 can restore an empty shell: 15 × 3 = 45. The number of ordered, signed pairs is r₂(n) = 4 Σ χ₄(d), summing over divisors d of n. Enumeration gives 0; the character formula gives 0. This is an arithmetic construction on a square lattice. Squared radius is capped at 325 to keep the playfield readable.

The factor four accounts for quarter-turn rotations. Combining this with the rapidity moment aligns the two worlds directly:

ζ(s)E[|Φ|s−1]=Γ(s)π∑(a,b)≠(0,0)(a2+b2)−s.

One exploratory construction is to begin with the Jeffreys circle and impose an integer lattice on its plane. Then the lattice supplies a discrete inventory of permitted radii. That discreteness is an added ingredient; its Euclidean squared norm also differs from the Lorentz difference of squares in the evidence cone.

Zeros as rhythms in a prime census

The bridge back to primes comes from differentiating the logarithm of the Euler product:

−βD′(s)βD(s)=∑n≥1χ4(n)ΛvM(n)n−s,ℜs>1.

The von Mangoldt weight ΛvM(n) is log⁡p when n=pk and zero otherwise. Thus this is a signed census of prime powers, including positive signs for even powers of flipping primes.

Give the census a finite size X>1 and a smooth taper:

J(X)=∑n≤Xχ4(n)ΛvM(n)(1−nX).

Mellin inversion represents this using −βD′/βD times Xs/[s(s+1)]. When its integration contour moves past a zero ρ of multiplicity mρ, that zero contributes the residue

−mρXρρ(ρ+1).

Other residues and contour terms complete the census formula. This one term already reveals the geometry: Xρ=Xℜρeiℑρlog⁡X. The real part controls growth; the imaginary part sets a rhythm along logarithmic size. The same zero that cancels a continuous probability response contributes an oscillation to a discrete arithmetic count.

Change the experiment and see what survives

Jeffreys has a special role here. A balanced Beta⁡(a,a) gives a rapidity density proportional to sech2a⁡ϕ. At a=1/2, the exponential expansion has unit coefficients and odd-integer rates. Other choices change those coefficients and rates, generally losing the multiplicative character that organizes the prime product.

Moving the clock walls from ±1 to ±a is gentler: Brownian scaling multiplies exit time by a2, so its moment transform acquires a nonzero scale factor. Adding a drift μ changes the shape:

E[e−λTμ]=cosh⁡μcosh⁡μ2+2λ.

Correlating the clock and reader is another experiment. At perfect correlation the reader stops at a wall too, and the continuous rapidity law collapses to two readings. These variations give a research program something to measure: which update rules preserve the Jeffreys law, which preserve reciprocal symmetry, and which retain arithmetic multiplication? The interesting part is how much structure the same small wandering-clock experiment manages to carry.

Further reading