*Update on 5/4/2023. The strictly positive integers $p$ and $q$ discussed in this post, in addition to being co-prime, must not contain any factor that is power of $2$, such $2,4,8$ and so on.
Let $B_1, B_2,\cdots$ be i.i.d. Bernouilli with mean $\frac{1}{2}$, and $$X=\sum_{k=1}^\infty \frac{B_k}{2^k}.$$ The random variables $B_k$ are the binary digits of the random number $X \in [0,1]$. Let's $p, q$ be strictly positive co-prime integers (that is, they have no common factors other than $1$). In addition, $p,q$ are odd numbers.
Let $C_k, D_k, k=1,2\cdots$ be the binary digits respectively of $pX$ and $qX$, starting after the decimal point. We define the cross-correlation $\rho_N$ as
$$\rho_N(p,q) = \mbox{Correl}(C_1,\cdots,C_N; D_1,\cdots,D_N).$$
The purpose here is three-fold:
- Establish that the limit $\rho_\infty$ exists
- Prove or disprove that $\rho_\infty=\frac{1}{pq}$
- Prove that the empirical correlation between the binary digits of (say) $\sqrt{2}$ and $\sqrt{3}$, is zero.
I am by a long shot mostly interested in answering the third question, which would be a spectacular result, unproven to this day. However, answering the second question is also of great interest, and probably of bigger interest to the readers.
Some great progress (with respect to the third question) was accomplished in a previous answer to a CV question, see here. @Whuber proved that the cross-correlation between the terms in the sequences $\{kp\alpha\}$ and $\{kq\alpha\}, k=1,2,\cdots$, is $\frac{1}{pq}$. Here the brackets represent the fractional part function, and $\alpha$ is irrational.
In my question here, the relevant sequences would be $\{2^k p\alpha\}$ and $\{2^k q\alpha\}$ as the $k$-th binary digit of $\alpha$ is $\lfloor 2\{2^k\alpha\}\rfloor$.
To answer the third question, note that $\sqrt{2}$ and $\sqrt{3}$ are linearly independent over the set of rational numbers, and $\rho_\infty$ can be approximated as close as you want using $p\alpha$ and $q\alpha$ instead of $\sqrt{2}$ and $\sqrt{3}$ for some irrational $\alpha$. But to get better and better approximations, you need $p$ and $q$ to tend to infinity, and the resulting correlation, equal to $\frac{1}{pq}$, tends to zero.
Example and code
Below is the code used for my computations, creating simulated random numbers $X$ and computing the correlations between the binary digits of $pX$ and $qX$. It shows the variability from one sample to the other.
$nsimul=10;
$kmax=1000000;
$p=13;
$q=31;
open(OUT2,">correl.txt");
for ($simul=0; $simul< $nsimul; $simul++) {
$rand=107*100000*$simul;
$prod=0;
$count=0;
for ($k=0; $k<$kmax; $k++) { # digits in reverse order
$rand=(10232193*$rand + 3701101) % 54198451371;
$b=int(2*$rand/54198451371); # digit of X
$c1=$p*$b;
$old_d1=$d1;
$old_e1=$e1;
$d1=($c1+ $old_e1/2) %2; # digit of pX
$e1=($old_e1/2) + $c1 - $d1;
$c2=$q*$b;
$old_d2=$d2;
$old_e2=$e2;
$d2=($c2+ $old_e2/2) %2; #digit of qX
$e2=($old_e2/2) + $c2 - $d2;
$prod+=($d1*$d2);
$count++;
$correl=4*$prod/$count - 1;
$limit=1/($p*$q);
if ($k% 1000 == 0) {
print "$simul\t$k\t$correl\t$x\n";
print OUT2 "$simul\t$k\t$correl\t$limit\n";
}
}
print "correl: $correl - $x\n";
}
close(OUT2);
Below is the chart showing one simulation, with 10 million random binary digits, with $p=1$ and $q=3$. The orange line corresponds to the limit $\rho_\infty = \frac{1}{3}$. The Y-axis represents the correlation computed over the first $n$ digits, for $n=1,2,\cdots, 10^7$ on the abcissa.
Possible approach to solve the problem
Instead of $X$ being irrational, consider a rational number with a large period, much larger than $p$ or $q$ (use same source code to produce the period) and let the period tends to infinity.