Common-Information Witnesses

The common informations of a set of random variables form a total order [JC17],

\[0 \le \operatorname{K} \le \operatorname{J} \le \operatorname{B} \le \operatorname{C} \le \operatorname{G} \le \operatorname{F} \le \operatorname{M} \le \operatorname{H},\]

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]

n noisy copies of a latent fair bit: the n-variable doubly symmetric binary source.

A hidden fair bit \(Z \sim \operatorname{U}\{0, 1\}\) is observed through n independent 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 weight k of 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 = 2 it 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:
  • q (float or sequence of floats) – The binary symmetric channel crossover \(P(X_i \ne Z)\), in \([0, 1/2]\), or one crossover per copy.

  • n (int, None) – The number of noisy copies. Defaults to 3, or to the number of crossovers when q is a sequence.

Returns:

d – The n-variable doubly symmetric binary source, over n binary variables with \(2^n\) outcomes.

Return type:

Distribution

Raises:

ValueError – Raised if n differs 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, n noisy copies of a latent fair bit (noisy_copies()), and n private 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 = 2 the CAEKL mutual information and dual total correlation coincide with the mutual information, so the chain has one fewer distinct rung.

Parameters:
  • n (int) – The number of variables; at least 2. Defaults to 3.

  • q (float, optional) – The binary symmetric channel crossover for the noisy workhorse. When None (default) a value tuned per n (for n up to 5) is used, falling back to 0.15 otherwise.

Returns:

d – The exchangeable witness, over n variables with an eight-symbol alphabet and \(2^{2n+1}\) outcomes.

Return type:

Distribution

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 e otherwise. 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:

Distribution

reverse_erasure_channel(p)[source]

The binary erasure channel run backwards.

The input \(X\) is the erasure symbol e with probability \(p\) and otherwise a fair bit; the output \(Y\) copies a bit and replaces e with a fair coin flip [Cuf13]. It is erasure_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:

Distribution

task_assignment(k, n=2)[source]

n distinct tasks dealt uniformly at random from k.

The distribution is uniform over n-tuples of distinct values from range(k) [CPC10]. For n = 2 this 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 k rounded up to an even number. For n = 3 and k divisible 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:
  • k (int) – The number of tasks.

  • n (int) – The number of variables, each assigned a different task. Defaults to 2.

Returns:

d – The uniform distribution over the \(k! / (k - n)!\) assignments.

Return type:

Distribution