EpistemicPhysics
All articles
Field trip · Physics · Information geometry

A little π between belief and relativity

A coin, a circle, a spring, and a relativistic energy curve share the same square root. Follow it into the geometry of learning.

Place a standard probability textbook right next to a special relativity textbook.

The probability book asks how an observer should express prior ignorance about a coin toss before gathering any data. The relativity book asks how much energy a particle carries as it accelerates toward the cosmic speed limit.

At first glance, these two questions could not seem further apart: one belongs to the epistemology of beliefs, the other to the physics of spacetime.

Yet if you turn to the right pages, change a single coordinate, and set the two mathematical curves side by side, an astonishing thing happens. The two curves are identical, separated only by a factor of π.

Why on earth should a Bayesian rule for measuring human uncertainty know anything about the energy of a relativistic electron? And what is π, the universal constant of circles, doing right in the middle of a probability update?

When I first noticed the connection between light cones, Beta evidence, probability, and physics on August 12, 2026, this coincidence was one of the earliest signs that something deep and beautiful was happening. The first steps fit on the back of an envelope. By the end of this excursion, that envelope will hold a vibrating mechanical spring, an information-theoretic ruler, and an odds-combining formula that turns out to be Einstein’s velocity addition in disguise.

Meet the curve in a physics classroom

In special relativity, the total energy E of a particle with positive rest mass m is given by Einstein’s mass-energy relation:

E=γmc2.

Here c is the speed of light in vacuum (c≈3×108 m/s), and m is the particle’s invariant rest mass, which measures its intrinsic inertia when stationary.

Write the particle’s velocity along a single spatial axis as v. To make velocity dimensionless, we divide by c to define the speed ratio u=v/c. Because no massive body can reach or exceed the speed of light, u is strictly confined to the open interval (−1,1).

The quantity γ(u), pronounced “gamma,” is the famous Lorentz factor:

Emc2=γ(u)=11−u2,−1<u<1.

Look at how this function behaves as a particle speeds up:

When the particle is at rest (u=0), the Lorentz factor is γ(0)=1, returning Einstein’s most famous equation for rest energy, E=mc2.

If the particle reaches 60% of the speed of light (u=3/5=0.6), the Lorentz factor climbs to γ=1/1−0.36=1/0.8=5/4=1.25.

If it reaches 80% of the speed of light (u=4/5=0.8), γ rises to 1/1−0.64=1/0.6=5/3≈1.667.

As u approaches the cosmic boundary (u→±1), the denominator 1−u2 drops toward zero, and the curve shoots upward toward infinity. Accelerating a particle all the way to the speed of light would require infinite energy.

The mathematical silhouette of the Lorentz factor is unmistakable: a gentle, rounded basin near u=0 that curves upward into towering, vertical asymptotic walls at u=±1.

Meet it again in a probability classroom

Now close the relativity textbook and open the probability textbook.

Suppose you are studying a Bernoulli trial, an elementary random experiment with two possible outcomes: a coin lands heads or tails, a detector records a photon or darkness, a medical test reads positive or negative.

Let p∈(0,1) denote the unknown probability of success.

Before you observe a single trial, what prior probability distribution should you assign to p?

In Bayesian statistics, if you want a prior that represents complete neutrality and remains invariant under reparameterization, you choose the Jeffreys prior (named after geophysicist and statistician Sir Harold Jeffreys). For a Bernoulli model, this prior is the Beta distribution Beta⁡(1/2,1/2), whose probability density function is:

fP(p)=1πp(1−p),0<p<1.

A probability density measures probability mass per unit length of the horizontal axis. Notice the shape: it has a symmetric U-shape that dips to its lowest point at an even split (p=1/2) and curves upward toward infinity as p→0 and p→1.

Now let us bring probability into the coordinate system of physics.

In standard probability, p lives on the unit interval [0,1], where 0.5 represents neutral balance. In physics, velocity u lives on the interval (−1,1), where 0 represents rest.

Slide and rescale the probability coordinate so that neutral balance sits at zero:

u=2p−1.

Under this transformation, absolute refutation sits at u=−1, neutral uncertainty sits at u=0, and absolute confirmation sits at u=+1.

Because p=(u+1)/2, differentiating gives dp=du/2. A standard change of variables in calculus requires multiplying the density by the Jacobian factor |dp/du|=1/2 to preserve the total area under the curve:

fU(u)=fP(u+12)⋅12=1π(1+u2)(1−u2)⋅12=1π1−u2.

Look at that result! Set it alongside the Lorentz factor from relativity:

Emc2=γ(u)=πfU(u).

The centered Jeffreys prior of probability theory and the Lorentz factor of special relativity are the exact same mathematical curve!

The physics curve γ(u) is simply the probability density fU(u) scaled by π. Or viewed from the other direction, the Jeffreys prior is the Lorentz factor normalized so that the total area underneath it equals 1. In the uncentered coordinate p, the relation is γ(2p−1)=π2fP(p).

A probability curve meets relativity

Make the two curves meet.

01234−101centered coordinate u
● Relativistic energy ratio● Jeffreys density
γ=1.250fU=0.398ρ=0.693
Emc2=γ(u)=πfU(u)

Multiply the teal curve to reveal the shared shape. Switching coordinates changes density per unit of the horizontal axis.

E is total relativistic energy; m is positive rest mass; c is the speed of light. Compare signed speed u=v/c with centered probability u=2p−1. The curve height is γ (gamma); ρ=artanh⁡u (rho) is rapidity.

Use the interactive bridge above to test the connection. Slide along the curve, toggle between the centered coordinate u and the standard probability p, and watch the multiplier transition from π to π/2.

Why does a circle get a cameo?

Where did the factor of π come from?

To normalize the Lorentz factor into a valid probability density, we must integrate it over its entire domain from u=−1 to u=+1:

∫−11du1−u2=π.

Why does integrating a curve from physics and probability produce the geometric ratio of a circle’s circumference to its diameter?

The answer reveals itself through trigonometric substitution. Let u=sin⁡θ, where the angle θ ranges from −π/2 to +π/2.

Differentiating gives du=cos⁡θdθ.

Meanwhile, the square root simplifies via the Pythagorean identity:

1−u2=1−sin2⁡θ=cos2⁡θ=cos⁡θ.

Substitute both into the integral:

∫−11du1−u2=∫−π/2π/2cos⁡θdθcos⁡θ=∫−π/2π/2dθ=π2−(−π2)=π.

The speed factor 1−u2 in the denominator perfectly cancels the geometric contraction cos⁡θ in the numerator! The entire integral collapses into the length of the angle interval: π.

You can visualize this substitution using a flashlight and a semicircle.

Imagine a half-circle of unit radius. Place evenly spaced tick marks along its curved rim (say, every 10 degrees). Now shine a light straight down from above, projecting the shadow of each tick mark onto the horizontal diameter.

Near the middle of the diameter, the shadows are spaced widely apart. But near the left and right edges, the curvature of the circle causes many tick marks to project onto tiny, crowded slivers of the line.

If you pick an angle uniformly at random along the semicircle (Θ∼Uniform⁡(−π/2,π/2)) and drop its shadow U=sin⁡Θ onto the diameter, the probability density of that shadow is our centered Jeffreys curve:

fU(u)=1π1−u2.

This is why mathematicians also call this the arcsine distribution: the inverse trigonometric function arcsin⁡(u) unrolls the shadows back onto the uniform arc of a circle.

Even though the density diverges to infinity at the two edges (u→±1), the area remains strictly finite and equal to 1, because the width of the shadow intervals shrinks to zero just as fast as the curve rises.

A spring has been drawing this curve all along

We do not need to go to particle accelerators or abstract probability spaces to see this curve in action. A simple mechanical spring in a physics laboratory has been tracing it all along.

Consider a mass m oscillating back and forth on an ideal spring with amplitude A and angular frequency ω:

x(t)=Acos⁡(ωt).

Here x(t) is the displacement of the mass from equilibrium at time t. Divide by the amplitude to obtain the normalized position u(t)=x(t)/A=cos⁡(ωt), which oscillates back and forth within [−1,1].

Suppose you photograph this vibrating mass at a random moment chosen uniformly across a complete cycle. What is the probability density of finding the mass at position u?

Differentiate the position to find its velocity:

dudt=−ωsin⁡(ωt),|dudt|=ω|sin⁡(ωt)|=ω1−u2.

The speed of the mass through position u is |du/dt|=ω1−u2.

Now pause and think about the physical motion:

As the mass passes through the center (u=0), the spring is relaxed, and the mass travels at its maximum speed ω. It sweeps past the center in a flash.

As the mass approaches the turnaround points (u=±1), the spring exerts maximum restoring force, slowing the mass down until it halts momentarily and reverses direction.

Because the time dt spent in any narrow window du is inversely proportional to speed (dt=du/|du/dt|), a random photograph is far more likely to capture the mass near the ends of its trajectory than near the center:

fU(u)∝1|du/dt|=1ω1−u2.

Normalizing this time distribution over [−1,1] yields our exact centered Jeffreys density:

fU(u)=1π1−u2.
A spring, a circle, a familiar curve

Where does a spring spend its time?

Circle: uniform phaseSpring: projected motion-1-10011cos θ = 0.500x / A = 0.500Time and prior in the same position bins0%10%20%Bin 1: 18.64% of the time; 18.64% Jeffreys probability.Bin 2: 8.13% of the time; 8.13% Jeffreys probability.Bin 3: 6.56% of the time; 6.56% Jeffreys probability.Bin 4: 5.85% of the time; 5.85% Jeffreys probability.Bin 5: 5.49% of the time; 5.49% Jeffreys probability.Bin 6: 5.33% of the time; 5.33% Jeffreys probability.Bin 7: 5.33% of the time; 5.33% Jeffreys probability.Bin 8: 5.49% of the time; 5.49% Jeffreys probability.Bin 9: 5.85% of the time; 5.85% Jeffreys probability.Bin 10: 6.56% of the time; 6.56% Jeffreys probability.Bin 11: 8.13% of the time; 8.13% Jeffreys probability.Bin 12: 18.64% of the time; 18.64% Jeffreys probability.-101normalized position u = x / A
Fraction of the cycleJeffreys probability in each bin
Position / amplitude 0.500
u=cos⁡θ,fU(u)=1π1−u2

Drag the circle's gold dot, play the motion, or scrub the phase. Arrow keys turn the focused dot by 5°. Its horizontal projection becomes the spring's position; both small axes run from −1 to 1. Here A is the spring's amplitude and θ is the circle angle.

The mass rushes through the center and lingers near the ends. Each teal bar is the exact fraction of a cycle spent in that bin. Each rose outline is the Jeffreys prior probability in the same bin, using u = 2p − 1. They agree in every bin, including the turning points.

Use the simulation above to watch the oscillator in real time. Notice how the histogram builds up tall spikes at the turning points and stays shallow in the middle.

Four completely different physical and mathematical phenomena have arrived at the exact same equation:

  1. The relativistic energy factor of a particle accelerating toward light speed.
  2. The invariant prior distribution for a Bayesian observer facing a coin toss.
  3. The geometric shadow cast by a uniform circle onto its diameter.
  4. The time budget of a mechanical mass bobbing on a spring.

Why do these four disparate worlds share the exact same mathematical signature?

The ruler inside a probability model

To find the unifying bridge, we look to information geometry, a field pioneered by Ronald Fisher and C. R. Rao.

Information geometry asks a geometric question: how distinguishable are two neighboring probability distributions?

If a coin has success probability p, and another coin has probability p+dp, how many experimental trials do you need to tell them apart?

For a single Bernoulli trial, this sensitivity is quantified by the Fisher information:

I(p)=1p(1−p).

Look at what this formula says:

If p=0.50, shifting the probability to 0.51 produces an imperceptible change in outcomes. You would need thousands of tosses to detect the difference. The denominator p(1−p)=0.25 is at its maximum, making Fisher information small (I=4).

Now suppose p=0.99, and someone claims the true probability is 1.00 (a coin that never fails). If you flip the coin and see even a single tail, the hypothesis p=1.00 is refuted instantly! Near the boundaries, tiny shifts in probability produce massive, easily detectable differences in outcomes. As p→0 or p→1, the denominator p(1−p) vanishes, and Fisher information explodes toward infinity.

Fisher information defines a natural Riemannian metric (a statistical ruler) on the parameter space:

ds2=I(p)dp2=dp2p(1−p).

Now transform this statistical ruler into our centered coordinate u=2p−1, where dp=du/2:

ds2=(du/2)2(1+u2)(1−u2)=du21−u2=γ(u)2du2.

Taking the square root gives an equation of singular beauty:

ds=γ(u)du.

The relativistic Lorentz factor squared, γ(u)2, is the metric coefficient of Bernoulli information geometry!

Its square root, γ(u), is the conversion factor that translates an ordinary step in probability into an invariant step of statistical distinguishability.

When Sir Harold Jeffreys looked for an uncommitted prior that would treat all parameterizations equally, his mathematical criterion was to set the prior density proportional to the square root of the Fisher metric: f(u)∝g(u)=γ(u).

The Jeffreys prior matches the Lorentz factor because both are governed by the same geometry of distinguishability.

We can make this geometry literal. Consider the square root probability vector:

q(p)=(p,1−p).

Because (p)2+(1−p)2=p+(1−p)=1, the vector q(p) always has unit Euclidean length. As p varies from 0 to 1, q(p) traces an arc along the unit circle in the positive quadrant!

Let ϕ be the angle along this circle, so that p=cos⁡ϕ and 1−p=sin⁡ϕ.

Then p=cos2⁡ϕ, and differentiating gives dp=−2cos⁡ϕsin⁡ϕdϕ.

Substitute this into the statistical distance formula:

ds2=dp2p(1−p)=4cos2⁡ϕsin2⁡ϕdϕ2cos2⁡ϕsin2⁡ϕ=4dϕ2.

Taking the square root:

ds=2dϕ.

Statistical distance along the space of Bernoulli probabilities is simply twice the angle along the circle!

Integrating across the entire positive quadrant from ϕ=0 to ϕ=π/2:

Total statistical length=∫0π/22dϕ=2⋅π2=π.

The entire universe of binary probabilities has a total statistical length of exactly π.

The mysterious factor of π was never a coincidence: it is the total geometric circumference of the space of Bernoulli beliefs.

Log-odds arrive wearing a spacesuit

Special relativity offers another coordinate that makes calculations remarkably simple: rapidity, denoted ρ (rho).

Because no particle can exceed the speed of light, velocities cannot add linearly: if rocket A travels at 0.8c and fires probe B forward at 0.8c, the probe does not travel at 1.6c.

Einstein solved this by mapping velocity u∈(−1,1) to an unbounded coordinate ρ∈(−∞,∞) using the inverse hyperbolic tangent:

ρ=artanh⁡(u)=12ln⁡(1+u1−u).

Under consecutive collinear boosts, rapidities add linearly:

ρcombined=ρ1+ρ2.

Now substitute our centered probability coordinate u=2p−1 into rapidity:

ρ=12ln⁡(1+(2p−1)1−(2p−1))=12ln⁡(2p2(1−p))=12ln⁡(p1−p).

Look at that expression!

The ratio p/(1−p) is the odds of success (for example, p=3/4 gives odds of 3:1).

The logarithm ln⁡(p/(1−p)) is the log-odds, also known as the logit function in statistics and machine learning.

Epistemic rapidity is exactly half the log-odds:

ρ=12logit⁡(p).

Now consider Bayes’ theorem for updating beliefs with new independent evidence:

Posterior Odds=Prior Odds×Likelihood Ratio.

Take the natural logarithm of both sides:

ln⁡(Posterior Odds)=ln⁡(Prior Odds)+ln⁡(Likelihood Ratio).

In Bayesian statistics, independent evidence adds linearly in log-odds.

In relativity, independent boosts add linearly in rapidity.

The two operations are mathematically identical!

What happens when you add two rapidities ρ1+ρ2 and convert back to centered velocity u?

Using the hyperbolic identity for tanh⁡(ρ1+ρ2):

ucombined=tanh⁡(ρ1+ρ2)=tanh⁡ρ1+tanh⁡ρ21+tanh⁡ρ1tanh⁡ρ2=u1+u21+u1u2.

Einstein’s relativistic velocity addition law is Bayes’ rule in disguise!

Let us test this with numbers.

Suppose your prior probability is p1=0.75 (odds 3:1, centered velocity u1=2(0.75)−1=0.50).

New independent evidence arrives with a likelihood ratio of 3:1 (which corresponds to an evidence velocity u2=0.50).

Using standard Bayes’ rule, the new odds are 3×3=9:1, giving posterior probability p=9/10=0.90.

Now calculate the combined velocity using Einstein’s formula:

ucombined=0.50+0.501+(0.50)(0.50)=1.001.25=0.80.

Convert centered velocity back to probability:

p=u+12=0.80+12=0.90.

The relativistic velocity addition formula produces the exact Bayesian posterior probability!

Try the update yourself. Change the starting probability or the likelihood ratio, then apply fresh evidence with the same ratio again. The population panel makes the parallel with natural selection visible: relative reproductive fitness multiplies population odds just as a likelihood ratio multiplies hypothesis odds.

The odds route

Dock three worlds with the same boost

1 / 3 · Cross the midpoint. Turn one-to-three odds into three-to-one odds. Choose evidence tiles to reach 75.0%. You can undo every move.

Belief probability25.0%p
Variant A's share25.0%two-type selection
Ship velocity / c-0.5002 × probability − 1
Equal tiles travel equal rapidity distancestarget−2.0+2.0rapidity ρ
Your route starts here.

Destination: belief and population 75.0%, ship velocity 0.50c. The gold dock marks their shared rapidity.

Why these three worlds move together

A tile multiplies Bayesian odds by a likelihood ratio L. In a population it changes the relative fitness of variant A; on the ship it supplies a collinear boost with velocity tanh(½ ln L). Reversing the tile uses 1/L.

O=p1−p,O′=LO,ρ=12ln⁡O,ρ′=ρ+12ln⁡L u=2p−1=tanh⁡ρ,u′=u+w1+uw,w=tanh⁡(12ln⁡L)

The three models share this update algebra. Inference assumes new evidence with the specified likelihood ratio at each step; selection assumes two variants with the chosen relative fitness; physical boosts act along one axis. These tiles reweight hypothesis odds rather than adding Bernoulli counts to a Beta distribution.

Two maps of the same territory

We now have two natural coordinate systems for a belief:

  1. The Fisher angle θ=arcsin⁡(u), which measures intrinsic statistical distance.
  2. The rapidity ρ=artanh⁡(u), which measures additive Bayesian evidence.

Both coordinates straighten the geometry of beliefs, but they straighten different features:

The Fisher angle straightens distinguishability. It treats both endpoints as reachable boundaries, placing them at a finite distance of π/2 from the neutral center.

Rapidity straightens evidence accumulation. It treats both endpoints as infinite horizons, requiring an infinite sum of evidence increments to reach absolute certainty (u→±1).

Just as a topographic map can show both horizontal trail distance and vertical elevation gain, the geometry of belief carries both metrics simultaneously.

This distinction sharpens the original surprise. We found an exact shared curve, and then discovered several operations that give it different jobs. That is a fertile place to start inventing:

  • What if learning algorithms take steps in statistical angle θ, moving along geodesics of the Fisher information metric to guarantee invariant progress regardless of parameterization?
  • What if interactions between communicating agents compose in rapidity ρ, multiplying odds like relativistic boosts?
  • What if total concentration τ supplies the scale that both coordinates leave out, providing the inertia of accumulated experience?

What would happen if a simulated world organized its histories this way? Could an autonomous agent represent particles as interacting evidence notebooks, where physical collisions exchange small units of evidence called tracelets? Such collisions would conserve total evidence and momentum while redistributing directional bias. We could test whether these exchange rules produce classical Newtonian inertia, relativistic kinematics, or entirely unexpected dynamics.

When probability is treated as a bare scalar number, these geometric symmetries remain hidden. But as soon as we preserve the evidence counts in a Beta notebook (α,β), tracking the lineage of evidence from incoming tracelets and trials, the full apparatus of spacetime emerges:

Total evidence τE=α+β acts as forward-ticking epistemic time.

Net balance xE=α−β acts as epistemic spatial position.

Certainty acts as the speed of light (cE=1).

And the clash of opposing evidence generates epistemic rest mass (mE=2αβ), providing the inertia that stabilizes our convictions against sudden whims.

The factor of π between the Jeffreys prior and the Lorentz factor was not a mathematical coincidence. It was a doorway into a unified physical geometry of learning. Step through with a circle in one pocket and an evidence notebook in the other.