The centre of mass of the primes and a reflection of Chebyshev's bias
Abstract
For $x\ge2$ we place a unit mass at $\log p$ for each prime $p\le x$, and let $D(x)$ be the distance from the centre of mass of this system to $\log x$; thus $D(p_n)=\log(p_n/G_n)$, where $G_n$ is the geometric mean of the first $n$ primes.
Let $D_0(x)$ be the distance obtained when $\pi$ is replaced by $\mathrm{Li}(x)=\int_2^x dt/\log t$.
We prove that $D(x)-D_0(x)\ll x^{\Theta-1+\varepsilon}$, where $\Theta$ is the supremum of the real parts of the zeros of $\zeta(s)$, and that the exponent cannot be lowered; in particular, the Riemann hypothesis is equivalent to $\log(p_n/G_n)=D_0(p_n)+O_\varepsilon(p_n^{-1/2+\varepsilon})$ for every $\varepsilon>0$.
Under the Riemann hypothesis we prove a pointwise mirror theorem: for large $x$ the centre of mass lies to the left of its predicted position only when $\pi(x)<\mathrm{li}(x)-1.95\sqrt{x}/\log x$.
Under the Riemann hypothesis and the linear independence hypothesis, the set of such $x$ has the same logarithmic density as the set on which $\pi(x)>\mathrm{li}(x)$, although for large $x$ the two sets are disjoint.
We prove analogues for primes in arithmetic progressions, for the higher moments of the system, and, under a linear independence hypothesis, for $\mathbb{F}_q[T]$, where the biases of even and odd degrees are interchanged.