Common-Information Witnesses
The common informations of a set of random variables form a total order [JC17],
from the Gács-Körner \(\operatorname{K}\), through the CAEKL \(\operatorname{J}\), dual total correlation \(\operatorname{B}\), Wyner [Wyn75b] \(\operatorname{C}\), exact [KLEG14] \(\operatorname{G}\), functional \(\operatorname{F}\), and minimal sufficient statistic \(\operatorname{M}\) common informations, up to the joint entropy \(\operatorname{H}\). A witness is a single distribution on which every inequality is strict, certifying that no two of the measures coincide as functionals.
symmetric_common_information_witness() builds an exchangeable witness for any
number of variables \(n \ge 2\) by taking the independent product of three
layers, so that each variable is \(X_i = (G, Z \oplus N_i, P_i)\): a shared
“giant bit” \(G\) (giant_bit(), which lifts
\(0 < \operatorname{K}\)), a latent fair bit \(Z\) seen through an
independent binary symmetric channel with crossover \(q\) (the workhorse
noisy_copies(), which separates the middle of the chain), and a private fair
bit \(P_i\) (which opens \(\operatorname{M} < \operatorname{H}\)).
In [1]: from dit.example_dists import noisy_copies, symmetric_common_information_witness
In [2]: d = symmetric_common_information_witness(3)
In [3]: d.outcome_length(), len(d.outcomes), len(d.alphabet[0])
Out[3]: (3, 128, 8)
The workhorse already strictly separates the middle of the ordering, while having no private randomness (so \(\operatorname{M} = \operatorname{H}\)):
In [4]: from dit.multivariate import gk_common_information, caekl_mutual_information
In [5]: from dit.multivariate import dual_total_correlation, functional_common_information
In [6]: w = noisy_copies(0.1, 3)
In [7]: gk_common_information(w), caekl_mutual_information(w), dual_total_correlation(w)
Out[7]: (0.0, 0.3652977442985559, 0.5014221143790625)
In [8]: functional_common_information(w)
Out[8]: 1.6800770457282796
Between the dual total correlation and the functional common information shown
above sit the Wyner (wyner_common_information()) and exact
(exact_common_information()) common informations, with
\(\operatorname{B} < \operatorname{C} < \operatorname{G} < \operatorname{F}\)
strict (these are optimization-based, so they are omitted from this example). The
giant bit then lifts \(\operatorname{K}\) away from zero and the private bits
pull \(\operatorname{M}\) below \(\operatorname{H}\), so the assembled
witness strictly separates the whole chain. For n = 2 the CAEKL and dual total
correlation coincide with the mutual information, giving one fewer distinct rung.
Closed-Form Examples
A few distributions from the coordination and channel-synthesis literature have closed-form common informations, which makes them useful checks for the optimizers [Cuf13, CPC10].
erasure_channel() is a fair bit through an erasure channel, and
reverse_erasure_channel() is the same channel run backwards.
task_assignment() deals n distinct tasks uniformly from k. For
n = 2 (the “scatter” channel) its Wyner common information is
\(2 - \log_2 \frac{\lceil k \rceil_2}{\lceil k \rceil_2 - 1}\), where
\(\lceil k \rceil_2\) rounds k up to an even number. For n = 3 and
k divisible by three it is
\(3 \log_2 3 - \log_2 \frac{k}{k-1} - \log_2 \frac{k}{k-2}\).
In [9]: from dit.example_dists import task_assignment
In [10]: from dit.shannon import mutual_information
In [11]: d = task_assignment(4)
In [12]: mutual_information(d, [0], [1])
Out[12]: 0.4150374992788439
APIs
- noisy_copies(q, n=None)[source]
nnoisy copies of a latent fair bit: then-variable doubly symmetric binary source.A hidden fair bit \(Z \sim \operatorname{U}\{0, 1\}\) is observed through
nindependent binary symmetric channels, \(X_i = Z \oplus N_i\) with \(N_i \sim \operatorname{Bernoulli}(q)\), and \(Z\) is marginalized out. The result is exchangeable and depends only on the Hamming weightkof an outcome,\[p_k = \tfrac{1}{2}\left( q^k (1 - q)^{n - k} + q^{n - k} (1 - q)^k \right).\]It has no shared deterministic structure, so its Gacs-Korner common information is zero, and no private randomness, so its minimal sufficient statistic common information equals its entropy; between those extremes it strictly separates the CAEKL, dual total correlation, Wyner [Wyn75b], exact [KLEG14], and functional common informations. For
n = 2it is Wyner’s doubly symmetric binary source, with crossover \(2 q (1 - q)\). Its higher-order common information is \(1 - h\left(\tfrac{1}{2}(1 - (1 - 2q)^{2^{n-1}})\right)\), where \(h\) is the binary entropy [Ostergaard24].Each copy may instead have its own crossover \(q_i\), in which case the copies are no longer exchangeable.
- Parameters:
- Returns:
d – The
n-variable doubly symmetric binary source, overnbinary variables with \(2^n\) outcomes.- Return type:
- Raises:
ValueError – Raised if
ndiffers from the number of crossovers.
- symmetric_common_information_witness(n=3, q=None)[source]
An exchangeable witness separating the entire common-information ordering.
Returns the independent product of a shared giant bit,
nnoisy copies of a latent fair bit (noisy_copies()), andnprivate fair bits, so that each variable is \(X_i = (G, Z \oplus N_i, P_i)\) over a common eight-symbol alphabet. Every rung of the ordering\[0 < \operatorname{K} < \operatorname{J} < \operatorname{B} < \operatorname{C} < \operatorname{G} < \operatorname{F} < \operatorname{M} < \operatorname{H}\]is strict [JC17]. For
n = 2the CAEKL mutual information and dual total correlation coincide with the mutual information, so the chain has one fewer distinct rung.- Parameters:
- Returns:
d – The exchangeable witness, over
nvariables with an eight-symbol alphabet and \(2^{2n+1}\) outcomes.- Return type:
- erasure_channel(p)[source]
A fair bit passed through a binary erasure channel.
The input \(X\) is a fair bit and the output \(Y\) equals \(X\) with probability \(1 - p\), and is the erasure symbol
eotherwise. Its Wyner common information is [Cuf13]\[\begin{split}\operatorname{C}[X : Y] = \begin{cases} 1 & p < 1/2, \\ h(p) & p \ge 1/2, \end{cases}\end{split}\]where \(h\) is the binary entropy, while \(\I{X : Y} = 1 - p\) and the necessary conditional entropy is \(\H{Y \dagger X} = h(p)\).
- Parameters:
p (float) – The erasure probability, in \([0, 1]\).
- Returns:
d – The joint distribution of input and output.
- Return type:
- reverse_erasure_channel(p)[source]
The binary erasure channel run backwards.
The input \(X\) is the erasure symbol
ewith probability \(p\) and otherwise a fair bit; the output \(Y\) copies a bit and replacesewith a fair coin flip [Cuf13]. It iserasure_channel()with input and output exchanged.- Parameters:
p (float) – The erasure probability, in \([0, 1]\).
- Returns:
d – The joint distribution of input and output.
- Return type:
- task_assignment(k, n=2)[source]
ndistinct tasks dealt uniformly at random fromk.The distribution is uniform over
n-tuples of distinct values fromrange(k)[CPC10]. Forn = 2this is the “scatter” channel of [Cuf13], uniform over \(x \ne y\), with\[\I{X : Y} = \log_2 \frac{k}{k - 1}, \qquad \H{Y \dagger X} = \log_2 (k - 1), \qquad \operatorname{C}[X : Y] = 2 - \log_2 \frac{\lceil k \rceil_2}{\lceil k \rceil_2 - 1},\]where \(\lceil k \rceil_2\) is
krounded up to an even number. Forn = 3andkdivisible by three, the Wyner common information is\[\operatorname{C}[X : Y : Z] = 3 \log_2 3 - \log_2 \frac{k}{k - 1} - \log_2 \frac{k}{k - 2}.\]- Parameters:
- Returns:
d – The uniform distribution over the \(k! / (k - n)!\) assignments.
- Return type: