Causal inference using the algorithmic Markov condition

Dominik Janzing, Bernhard Schoelkopf

Introduction to causal inference from statistical data

Causal inference from statistical data has attracted increasing interest in the past decade. In contrast to traditional statistics where statistical dependences are only taken to prove that some kind of relation between random variables exists, causal inference methods in machine learning are explicitly designed to generate hypotheses on causal directions automatically based upon statistical independence tests . The crucial assumption connecting statistics with causality is the causal Markov condition explained below after we have introduced some notations and terminology.

We denote random variables by capitals and their values by the corresponding lowercase letters. Let X1,…,XnX_{1},\dots,X_{n} be random variables and GG be a directed acyclic graph (DAG) representing the causal structure where an arrow from node XiX_{i} to node XjX_{j} indicates a direct causal effect. Here the term direct is understood with respect to the chosen set of variables in the sense that the information flow between the two variables considered is not performed via using one or more of the other variables as intermediate nodes. We will next briefly rephrase the postulates that are required in the statistical theory of inferred causation .

When we consider the causal structure that links nn random variables V:={X1,…,Xn}{\cal V}:=\{X_{1},\dots,X_{n}\} we will implicitly assume that V{\cal V} is causally sufficient in the sense that all common causes of two variables in V{\cal V} are also in V{\cal V}. Then a causal hypothesis GG is only acceptable as potential causal structure if the joint distribution PP of X1,…,XnX_{1},\dots,X_{n} satisfies the Markov condition with respect to GG. There are several formulations of the Markov condition that are known to coincide under some technical condition (see Lemma 1). We will first introduce the following version which is sometimes referred to as the parental or the local Markov condition .

To this end, we introduce the following notations. PAjPA_{j} is the set of parents of XjX_{j} and NDjND_{j} the set of non-descendants of XjX_{j} except itself. If S,T,RS,T,R are sets of random variables, S\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}T\,|R means SS is statistically independent of TT, given RR.

If a directed acyclic graph GG formalizes the causal structure among the random variables X1,…,XnX_{1},\dots,X_{n}. Then

We call this postulate the statistical causal Markov condition because we will later introduce an algorithmic version. The fact that conditional irrelevance not only occurs in the context of statistical dependences has been emphasized in the literature (e.g. ) in the context of describing abstract properties (like semi-graphoid axioms) of the relation \cdot\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}\cdot\,|\cdot. We will therefore state the causal Markov condition also in an abstract form that does not refer to any specific notion of conditional informational irrelevance:

Given all the direct causes of an observable OO, its non-effects provide no additional information on OO.

Here, observables denote something in the real world that can be observed and the observation of which can be formalized in terms of a mathematical language. In this paper, observables will either be random variables (formalizing statistical quantities) or they will be strings (formalizing the description of objects). Accordingly, information will be statistical or algorithmic mutual information, respectively.

The importance of the causal Markov condition lies in the fact that it links causal terms like “direct causes” and “non-effects” to informational relevance of observables. The local Markov condition is rather intuitive because it echoes the fact that the information flows from direct causes to their effect and every dependence between a node and its non-descendants involves the direct causes. However, the independences postulated by the local Markov condition imply additional independences. It is therefore hard to decide whether an independence must hold for a Markovian distribution or not, solely on the basis of the local formulation. In contrast, the global Markov condition makes the complete set of independences obvious. To state it we first have to introduce the following graph-theoretical concept.

A path pp in a DAG is said to be d-separated (or blocked) by a set of nodes ZZ if and only if

pp contains a chain i→m→ji\rightarrow m\rightarrow j or fork i←m→ji\leftarrow m\rightarrow j such that the middle node mm is in ZZ, or

pp contains an inverted fork (or collider) i→m←ji\rightarrow m\leftarrow j such that the middle node mm is not in ZZ and such that no descendant of mm is in ZZ.

A set ZZ is said to d-separate XX from YY if and only if ZZ blocks every (possibly undirected) path from a node in XX to a node in YY.

The following Lemma shows that d-separation is the correct condition for deciding whether an independence is implied by the local Markov condition , Theorem 3.27.

Let P(X1,…,Xn)P(X_{1},\dots,X_{n}) have a density P(x1,…,xn)P(x_{1},\dots,x_{n}) with respect to a product measure. Then the following three statements are equivalent:

Recursive form: PP admits the factorization

where P(.∣paj)P(.|pa_{j}) is shorthand for the conditional probability density, given the values of all parents of XjX_{j}.

Local (or parental) Markov condition: for every node XjX_{j} we have

i.e., it is conditionally independent of its non-descendants (except itself), given its parents.

for all three sets S,T,RS,T,R of nodes for which SS and TT are d-separated by RR.

Moreover, the local and the global Markov condition are equivalent even if PP does not have a density with respect to a product measure.

The conditional densities P(xj∣paj)P(x_{j}|pa_{j}) are also called the Markov kernels relative to the hypothetical causal graph GG. It is important to note that every choice of Markov kernels define a Markovian density PP, i.e., the Markov kernels define exactly the set of free parameters remaining after the causal structure has been specified.

To select graphs among all those that render PP Markovian, we also need an additional postulate:

Among all graphs GG for which PP is Markovian, prefer the ones for which all the observed conditional independences in the joint measure P(X1,…,Xn)P(X_{1},\dots,X_{n}) are imposed by the Markov condition.

The idea is that the set of observed independences is typical for the causal structure under consideration rather than being the result of specific choices of the Markov kernels. This becomes even more intuitive when we restrict our attention to random variables with finite value set and observe that the values P(xj∣paj)P(x_{j}|pa_{j}) then define a natural parameterization of the set of Markovian distributions in a finite dimensional space. The non-faithful distributions form a submanifold of lower dimension, i.e., a set of Lebesgue measure zero . They therefore almost surely don’t occur if we assume that “nature chooses” the Markov kernels for the different nodes independently according to some density on the parameter space.

The above “zero Lebesgue measure argument” is close to the spirit of Bayesian approaches , where priors on the set of Markov kernels are specified for every possible hypothetical causal DAG and causal inference is performed by maximizing posterior probabilities for hypothetical DAGs, given the observed data. This procedure leads to an implicit preference of faithful structures in the infinite sampling limit given some natural conditions for the priors on the parameter space. The assumption that “nature chooses Markov kernels independently”, which is also part of the Bayesian approach, will turn out to be closely related to the algorithmic Markov condition postulated in this paper.

We now discuss the justification of the statistical causal Markov condition because we will later justify the algorithmic Markov condition in a similar way. To this end, we introduce functional models :

If a directed acyclic graph GG formalizes the causal relation between the random variables X1,…,XNX_{1},\dots,X_{N} then every XjX_{j} can be written as a deterministic function of PAjPA_{j} and a noise variable NjN_{j} ,

where all NjN_{j} are jointly independent.

Every joint distribution P(X1,…,Xn)P(X_{1},\dots,X_{n}) generated according to the functional model in Postulate 4 satisfies the local and the global Markov condition relative to GG.

We rephrase the proof in because our proof for the algorithmic version will rely on the same idea.

Functional models formalize the idea that the outcome of an experiment is completely determined by the values of all relevant parameters where the only uncertainty stems from the fact that some of these parameters are hidden. Even though this kind of determinism is in contrast with the commonly accepted interpretation of quantum mechanics , we still consider functional models as a helpful framework for discussing causality in real life since quantum mechanical laws refer mainly to phenomena in micro-physics.

Causal inference using the Markov condition and the faithfulness assumption has been implemented as causal learning algorithms . The following fundamental limitations of these methods deserve our further attention:

Markov equivalence: There are only few cases where the inference rules provide unique causal graphs. Often one ends up with a large class of Markov equivalent graphs, i.e., graphs that entail the same set of independences. For this reason, additional inference rules are desirable.

Dependence on i.i.d. sampling: the whole setting of causal inference relies on the ability to sample repeatedly and independently from the same joint distribution P(X1,…,Xn)P(X_{1},\dots,X_{n}). As opposed to this assumption, causal inference in real life also deals with probability distributions that change in time and often one infers causal relations among single observations without referring to statistics at all.

The idea of this paper is to develop a theory of probability-free causal inference that helps to construct causal hypotheses based on similarities of single objects. Here, similarities will be defined by comparing the length of the shortest description of single objects to the length of their shortest joint description. Despite the analogy to causal inference from statistical data (which is due to known analogies between statistical and algorithmic information theory) our theory also implies new statistical inference rules. In other words, our approach to address weakness 2 also yields new methods to address 1.

The paper is structured as follows. In the remaining part of this Section, i.e., Subsection 1.2, we describe recent approaches from the literature to causal inference from statistical data that address problem 1 above. In Section 2 we develop the general theory on inferring causal relations among individual objects based on algorithmic information. This framework appears, at first sight, as a straightforward adaption of the statistical framework (using well-known correspondences between statistical and algorithmic information theory). However, Section 3 describes that this implies novel causal inference rules for statistical inference because non-statistical algorithmic dependences can even occur in data that were obtained from statistical sampling. In Section 4 we describe how to replace causal inference rules based on the uncomputable algorithmic information with decidable criteria that are still motivated by the uncomputable idealization.

The table in fig. 1 summarizes the analogies between the theory of statistical and the theory of algorithmic causal inference described in this paper. The differences, however, which are the main subject of Sections 3 to 4, can hardly be represented in the table.

2 Seeking for new statistical inference rules

In and we have proposed causal inference rules that are based on the idea that the factorization of P(cause,effect)P({\rm cause},{\rm effect}) into P(effect∣cause)P({\rm effect}|{\rm cause}) and P(cause)P({\rm cause}) typically leads to simpler terms than the “artificial” factorization into P(effect)P(cause∣effect)P({\rm effect})P({\rm cause}|{\rm effect}). The generalization of this principle reads: Among all graphs GG that render PP Markovian prefer the one for which the decomposition in eq. (1) yields the simplest Markov kernels. We have called this vague idea the “principle of plausible Markov kernels”.

where λ\lambda determines the shift of the mean caused by switching between x=1x=1 and x=−1x=-1.

One will prefer the causal structure X→YX\rightarrow Y compared to Y→XY\rightarrow X because the former explains in a natural way why P(Y)P(Y) is bimodal: the effect of XX on YY is simply to shift the Gaussian distribution by 2λ2\lambda. In the latter model the bimodality of P(Y)P(Y) remains unexplained. To prefer one causal model to another one because the corresponding conditionals are simpler seems to be a natural application of Occam’s Razor. However, Section 3 will show that such an inference rule also follows from the theory developed in the present paper when simplicity is meant in the sense of low Kolmogorov complexity. In the remaining part of this section we will sketch some approaches to implement the “principle of plausible Markov kernels” in practical applications.

In we have defined a family of “plausible Markov kernels” by conditionals P(Xj∣PAj)P(X_{j}|PA_{j}) that are second order exponential models, i.e., log⁡P(xj∣paj)\log P(x_{j}|pa_{j}) is a polynomial of order two in the variables {Xj}∪{PAj}\{X_{j}\}\cup\{PA_{j}\} up to some additive partition function (for normalization) that depends only on the variables PAjPA_{j}. For every hypothetical causal graph, one thus obtains a family of “plausible joint distributions P(X1,…,Xn)P(X_{1},\dots,X_{n})” that are products of the plausible Markov kernels. Then we prefer the causal direction for which the plausible joint distributions provide the best fit for the given observations.

In we have proposed the following principle for causal inference: Given a joint distribution of the random variables X1,…,XnX_{1},\dots,X_{n}, prefer a causal structure for which

is minimal, where CC is some complexity measure on conditional probability densities.

There is also another recent proposal for new inference rules that refers to a related simplicity assumption, though formally quite different from the ones above. The authors of observe that there are joint distributions of X1,…,XnX_{1},\dots,X_{n} that can be explained by a linear model with additive non-Gaussian noise for one causal direction but require non-linear causal influence for the other causal directions. For real data they prefer the causal graph for which the observations are closer to the linear model.

To justify the belief that conditionals that correspond to the true causal direction tend to be simpler than non-causal conditionals (which is common to all the approaches above) is one of the main goals of this paper.

Inferring causal relations among individual objects

It has been emphasized that the application of causal inference principles often benefits from the non-determinism of causal relations between the observed random variables. In contrast, human learning in real-life often is about quite deterministic relations. Apart from that, the most important difference between human causal learning and the inference rules in is that the former is also about causal relations among single objects and does not necessarily require sampling. Assume, for instance, that the comparison of two texts show similarities (see e.g. ) such that the author of the text that appeared later is blamed to have copied it from the other one or both are blamed to have copied from a third one. The statement that the texts are similar could be based on a statistical analysis of the occurrences of certain words or letter sequences. However, such kind of simple statistical tests can fail in both directions: In Subsection 2.2 (before Theorem 3) we will discuss an example showing that they can erroneously infer causal relations even though they do not exist. This is because parts that are common two both objects, e.g., the two texts, are only suitable to prove a causal link if they are not “too straightforward” to come up with.

On the other hand, causal relations can generate similarities between texts for which every efficient statistical analysis is believed to fail. We will describe an idea from cryptography to show this. A cryptosystem is called ROR-CCA-secure (Real or Random under Chosen Ciphertext Attacks) if there is no efficient method to decide whether a text is random or the encrypted version of some known text without knowing the key . Given that there are ROR-CCA-secure schemes (which is unknown but believed by cryptographers) we have a causal relation leading to similarities that are not detected by any kind of simple counting statistics. However, once an attacker has found the key (maybe by exhaustive search), he recognizes similarities between the encrypted text and the plain text and infers a causal relation. This already suggests two things: (1) detecting similarities involves searching over potential rules how properties of one object can be algorithmically derived from the structure of the other. (2) It is likely that inferring causal relations therefore relies on computationally infeasible decisions (if computable at all) on whether two objects have information in common or not.

We will now describe how the information one object provides about the other can be measured in terms of Kolmogorov complexity. We start with some notation and terminology. Below, strings will always be binary strings since every description given in terms of a different alphabet can be converted into a binary word. The set of binary strings of arbitrary length will be denoted by {0,1}∗\{0,1\}^{*}. Recall that the Kolmogorov complexity K(s)K(s) of a string s∈{0,1}∗s\in\{0,1\}^{*} is defined as the length of the shortest program that generates ss using a previously defined universal Turing machine . The conditional Kolmogorov complexity K(t∣s)K(t|s) of a string tt given another string ss is the length of the shortest program that can generate tt from ss. In order to keep our notation simple we use K(x,y)K(x,y) to refer to the complexity of the concatenation of x,yx,y.

We will mostly have equations that are valid only up to additive constant terms in the sense that the difference between both sides does not depend on the strings involved in the equation (but it may depend on the Turing machines they refer to). To indicate such constants we denote the corresponding equality by =+\stackrel{{\scriptstyle+}}{{=}} and likewise for inequalities. In this context it is important to note that the number nn of nodes of the causal graph is considered to be a constant. Moreover, for every string ss we define s∗s^{*} as its shortest description. If the latter is not unique, we consider the first one in an lexicographic order. It is necessary to distinguish between K(⋅∣s)K(\cdot|s) and K(⋅∣s∗)K(\cdot|s^{*}). This is because there is a trivial algorithmic method to generate ss from s∗s^{*} (just apply the Turing machine to s∗s^{*}), but there is no algorithm of length O(1)O(1) that computes the shortest description s∗s^{*} from a general input ss. One can show that s∗≡(s,K(s))s^{*}\equiv(s,K(s)). Here, the equivalence symbol ≡\equiv means that both sides can be obtained from each other by O(1)O(1) programs. The following equation for the joint algorithmic information of two strings x,yx,y will be useful :

The most important notion in this paper will be the algorithmic mutual information measuring the amount of algorithmic information that two objects have in common. Following we define:

Let x,yx,y be two strings. Then the algorithmic mutual information of x,yx,y is

The mutual information is the number of bits that can be saved in the description of yy when the shortest description of xx is already known. The fact that one uses x∗x^{*} instead of xx ensures that it coincides with the symmetric expression :

In the following sections, non-vanishing mutual information will be taken as an indicator for causal relations, but more detailed information on the causal structure will be inferred from conditional mutual information. This is in contrast to approaches from the literature to measure similarity versus differences of single objects that we briefly review now. To measure differences between single objects, e.g. pictures , one defines the information distance E(x,y)E(x,y) between the two corresponding strings as the length of the shortest program that computes xx from yy and yy from xx. It can be shown that

where =log\stackrel{{\scriptstyle{\rm log}}}{{=}} means equality up to a logarithmic term. However, whether E(x,y)E(x,y) is small or large is not an appropriate condition for the existence and the strength of a causal link. Complex objects can have much information in common even though their distance is large. In order to obtain a measure that relates the amount of information that is disjoint for the two strings to the amount they share, Li et al. and Bennett et al. use the “normalized distance measure”

The intuitive meaning of ds(x,y)d_{s}(x,y) is obvious from its direct relation to mutual information, and 1−d(x,y)1-d(x,y) measures the fraction of the information of the more complex string that is shared with the other one. Bennett et al. propose to construct evolutionary histories of chain letters using such kinds of information distance measures. However, like in statistical causal inference, inferring adjacencies on the basis of strongest dependences is only possible for simple causal structures like trees. In the general case, non-adjacent nodes can share more information than adjacent ones when information is propagated via more than one path. Instead of constructing causal neighborhood relations by comparing information distances we will therefore use conditional mutual information.

In order to define its algorithmic version, we first observe that Definition 2 can be rewritten into the less concise form

This formula generalizes more naturally to the conditional analog :

Let x,y,zx,y,z be three strings. Then the conditional mutual algorithmic information of x,yx,y, given zz is

As shown in (Remark II.3), the conditional mutual information also is symmetric up to a constant term:

Given three strings x,y,zx,y,z, we call xx conditionally independent of yy, given zz (denoted by x\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}y\,|z) if

In words: Given zz, the additional knowledge of yy does not allow us a stronger compression of xx. This remains true if we are given the Kolmogorov complexity of yy, given zz.

The theory developed below will describe laws where symbols like x,y,zx,y,z represent arbitrary strings. Then one can always think of sequences of strings of increasing complexity and statements like “the equation holds up to constant terms” are well-defined. We will then understand conditional independence in the sense of I(x:y∣z)=+0I(x:y|z)\stackrel{{\scriptstyle+}}{{=}}0. However, if we are talking about three fixed strings that represent objects in real-life, this does not make sense and the threshold for considering two strings dependent will heavily depend on the context. For this reason, we will not specify the symbol ≈\approx any further. This is the same arbitrariness as the cutoff rate for statistical dependence tests.

The definitions and lemmas presented so far were strongly motivated by the statistical analog. Now we want to focus on a theorem in that provides a mathematical relationship between algorithmic and statistical mutual information. First we rephrase the following theorem Theorem 7.3.1 of , showing that the Kolmogorov complexity of a random string is approximatively given by the entropy of the underlying probability distribution:

Let x=x1,x2,⋯ ,xn{\bf x}=x_{1},x_{2},\cdots,x_{n} be a string whose symbols xj∈Ax_{j}\in{\cal A} are drawn i.i.d. from a probability distribution P(X)P(X) over the finite alphabet A{\cal A}. Slightly overloading notation, set P(x):=P(x1)⋯P(xn)P({\bf x}):=P(x_{1})\cdots P(x_{n}). Let H(.)H(.) denote the Shannon entropy of a probability distribution. Then there is a constant cc such that

where E(.)E(.) is short hand for the expected value with respect to P(x)P({\bf x}). Hence

However, for our purpose, we need to see the relation between algorithmic and statistical mutual information. If x=x1,x2,⋯ ,xn{\bf x}=x_{1},x_{2},\cdots,x_{n} and y=y1,y2,⋯ ,yn{\bf y}=y_{1},y_{2},\cdots,y_{n} such that each pair (xj,yj)(x_{j},y_{j}) is drawn i.i.d. from a joint distribution P(X,Y)P(X,Y), the theorem already shows that

This can be seen by writing statistical mutual information as

The above translations between entropy and algorithmic information refer to a particular setting and to special limits. The focus of this paper is mainly the situation where the above limits are not justified. Before we rephrase Theorem 5.3 in which provides insights into the general case, we recall that a function ff is called recursive if there is a program on a Turing machine that computes f(x)f(x) from the input xx, and halts on all possible inputs.

Given string-valued random variables X,YX,Y with a recursive probability mass function P(x,y)P(x,y) over pairs (x,y)(x,y) of strings. We then have

where K(P)K(P) is the length of the shortest prefix-free program that computes P(x,y)P(x,y) from (x,y)(x,y).

We want to provide an intuition about various aspects of this theorem.

(1) If I(X;Y)I(X;Y) is large compared to K(P)K(P) the expected algorithmic mutual information is dominated by the statistical mutual information.

(2) If K(P)K(P) is no longer assumed to be small, statistical dependences do not necessarily ensure that the knowledge of xx allows us to compress yy further than without knowing xx. It could be that the description of the statistical dependences requires more memory space than its knowledge would save.

(3) On the other hand, knowledge of xx could allow us to compress yy even in the case of a product measure on xx and yy. Consider, for instance, the case that we have the point mass distribution on the pair (x,y)(x,y) with x=yx=y. To describe a more sophisticated example generalizing this case we first have to introduce a family of product probability distributions on {0,1}n\{0,1\}^{n} that we will need several times throughout the paper.

Let P0,P1P_{0},P_{1} be two probability distributions on {0,1}\{0,1\} and cc be a binary string of length nn. Then

defines a distribution on {0,1}n\{0,1\}^{n}. We will later also need the following generalization: If P00,P01,P10,P11P_{00},P_{01},P_{10},P_{11} are four distributions on {0,1}\{0,1\}, then

defines also a family of product measures on {0,1}n\{0,1\}^{n} that is labeled by two strings.

Denote by Pc⊗m{\bf P}_{c}^{\otimes m} the mm-fold copy of Pc{\bf P}_{c} from Definition 5. It describes a distribution on {0,1}nm\{0,1\}^{nm} assigning the probbaility Pc⊗m(x){\bf P}^{\otimes m}_{c}(x) to x∈{0,1}nmx\in\{0,1\}^{nm}. If

knowledge of xx in the typical case provides knowledge of cc, provided mm is large enough. Then we can compress yy better than without knowing xx because we do not have to describe cc any more. Hence the algorithmic mutual information is large and the statistical mutual information is zero because QQ is by construction a product distribution. In other words, algorithmic dependences in a setting with i.i.d sampling can arise from statistical dependences and from algorithmic dependences between probability distributions.

2 Markov condition for algorithmic dependences among individual objects

Now we state the causal Markov condition for individual objects as a postulate that links algorithmic mutual dependences with causal structure:

Let x1,…,xnx_{1},\dots,x_{n} be nn strings representing descriptions of observations whose causal connections are formalized by a directed acyclic graph GG with x1,…,xnx_{1},\dots,x_{n} as nodes. Let pajpa_{j} be the concatenation of all parents of xjx_{j} and ndjnd_{j} the concatenation of all its non-descendants except xjx_{j} itself. Then

As in Definition 4, the appropriate cut-off rate for rejecting GG when I(xj:ndj∣paj∗)>0I(x_{j}:nd_{j}|pa^{*}_{j})>0 will not be specified here.

This formulation is a natural interpretation of Postulate 2 in terms of algorithmic independences. The only point that remains to be justified is why we condition on paj∗pa_{j}^{*} instead of pajpa_{j}, i.e., why we are given the optimal joint compression of the parent strings. The main reason is that this turns out to yield nice statements on the equivalence of different Markov conditions (in analogy to Lemma 1). Since the differences between I(xj:ndj∣paj)I(x_{j}:nd_{j}|pa_{j}) and I(xj:ndj∣paj∗)I(x_{j}:nd_{j}|pa_{j}^{*}) can only be logarithmic in the string lengths this is because K(x∣y)−K(x∣y∗)=O(log⁡∣y∣)K(x|y)-K(x|y^{*})=O(\log|y|), see we will not focus on this issue any further.

If we apply Postulate 5 to a trivial graph consisting of two unconnected nodes, we obtain the following statement.

If the mutual information I(x:y)I(x:y) between two objects x,yx,y is significantly greater than zero they have some kind of common past.

Here, common past between two objects means that one has causally influenced the other or there is a third one influencing both. The statistical version of this principle is part of Reichenbach’s principle of the common cause stating that statistical dependences between random variables The original formulation considers actually dependences between events, i.e., binary variables. XX and YY are always due at least one of the following three types of causal links: (1) XX is a cause of YY or (2) vice versa or (3) there is a common cause ZZ. For objects, the term “common past” includes all three types of causal relations. For a text, for instance, it reads: similarities of two texts x,yx,y indicate that one author has been influenced by the other or that both have been influenced by a third one.

Before we construct a model of causality that makes it possible to prove the causal Markov condition we want to discuss some examples. If one discovers significant similarities in the genome of two sorts of animals one will try to explain the similarities by relatedness in the sense of evolution. Usually, one would, for instance, assume such a common history if one has identified long substrings that both animals have in common. However, the following scenario shows two observations that superficially look similar, but nevertheless we cannot infer a common past since their algorithmic complexity is low (implying that the algorithmic mutual information is low, too).

Assume two persons are instructed to write down a binary string of length 10001000 and both decide to write the same string x=1100100100001111110...x=1100100100001111110.... It seems straightforward to assume that the persons have communicated and agreed upon this choice. However, after observing that xx is just the binary representation of π\pi, one can easily imagine that it was just a coincidence that both wrote the same sequence. In other words, the similarities are no longer significant after observing that they stem from a simple rule. This shows that the length of the pattern that is common to both observations, is not a reasonable criterion on whether the similarities are significant.

To understand the algorithmic causal Markov condition we will study its implications as well as its justification. In analogy to Lemma 1 we have

Given the strings x1,…,xnx_{1},\dots,x_{n} and a directed acyclic graph GG. Then the following conditions are equivalent:

Recursive form: the joint complexity is given by the sum of complexities of each node, given the optimal compression of its parents:

Local Markov condition: Every node is independent of its non-descendants, given the optimal compression of its parents:

Below we will therefore no longer distinguish between the different versions and just refer to “the algorithmic Markov condition”. The intuitive meaning of eq. (6) is that the shortest description of all strings is given by describing how to generate every string from its direct causes. A similar kind of “modularity” of descriptions will also occur later in a different context when we consider description complexity of joint probability distributions.

For the proof of Theorem 3 we will need a Lemma that is an analogue of the observation that for any two random variables X,YX,Y the statistical mutual information satisfies I(f(X);Y)≤I(X;Y)I(f(X);Y)\leq I(X;Y) for every measurable function ff. The algorithmic analog is to consider two strings x,yx,y and one string zz that is derived from x∗x^{*} by a simple rule.

Let x,y,zx,y,z be three strings such that K(z∣x∗)=+0K(z|x^{*})\stackrel{{\scriptstyle+}}{{=}}0. Then

This lemma is a special case of Theorem II.7 in . We will also need the following result:

Note that K(z∣x∗)≥+K(z∣x∗,y)K(z|x^{*})\stackrel{{\scriptstyle+}}{{\geq}}K(z|x^{*},y) and K(z∣x∗)≥+K(z∣x∗,y∗)K(z|x^{*})\stackrel{{\scriptstyle+}}{{\geq}}K(z|x^{*},y*) is obvious but Lemma 7 is non-trivial because the star operation is jointly applied to xx and yy.

Proof of Lemma 7: Clearly the string xx can be derived from x,yx,y by a program of length O(1)O(1). Lemma 6 therefore implies

where I(z:x,y)I(z:x,y) is shorthand for I(z:(x,y))I(z:(x,y)). Hence

Then we obtain the statement by subtracting K(z)K(z) and inverting the sign. □\Box

The following lemma will only be used in Subsection 3.3. We state it here because it is closely related to the ones above.

The name “data processing inequality” is justified because the assumption x\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}y\,|z^{*} may arise from the typical data processing scenario where yy is obtained from xx via zz.

where the second inequality holds because K(z)+K(y∣z∗)K(z)+K(y|z^{*}) can obviously be computed from the pair (K(z),K(y∣z∗))(K(z),K(y|z^{*})) by an O(1)O(1) program. The last equality uses, again, the equivalence of z∗z^{*} and (z,K(z))(z,K(z)). Hence we obtain:

The first step is by Definition 2, the second one uses Lemma 7, the third step is a direct application of ineq. (7), the fourth one is due to Definition 3, and the last step is by assumption. □\Box

Proof of Theorem 3: I ⇒\Rightarrow III: Define a probability mass function PP on ({0,1}∗)×n(\{0,1\}^{*})^{\times n}, i.e., the set of nn-tuples of strings, as follows. Set

where zjz_{j} is a normalization factor. In this context, it is important that the symbol pajpa_{j} refers to conditioning on the kk-tuple of strings xix_{i} that are parents of xjx_{j} (in contrast to conditional complexities where we can interpret K(.∣paj∗)K(.|pa^{*}_{j}) equally well as conditioning on one string given by the concatenation of all those xix_{i}). Note that Kraft’s inequality (see , Example 3.3.1) implies

for every yy entailing that the expression is indeed normalizable by zj≤1z_{j}\leq 1. We have

i.e., PP is by construction recursive with respect to GG. It is easy to see that K(x1,…,xn)K(x_{1},\dots,x_{n}) can be computed from PP:

Remarkably, we can also compute Kolmogorov complexities of subsets of {x1,…,xn}\{x_{1},\dots,x_{n}\} from the corresponding marginal probabilities. We start by proving

where =×\stackrel{{\scriptstyle\times}}{{=}} denotes equality up to a multiplicative constant. The equality follows from eq. (4) and the inequality is obtained by applying Kraft’s inequality to the conditional complexity K(.∣(x1,…,xn−1)∗)K(.|(x_{1},\dots,x_{n-1})^{*}). On the other hand we have

since adding the 11-bit string xn=0x_{n}=0 certainly can be performed by a program of length O(1)O(1). Hence we have

Since the same argument holds for marginalizing over any other variable xjx_{j} we conclude that

for every subset of strings of size kk with k≤nk\leq n. This follows by induction over n−kn-k.

Now we can use the relation between marginal probabilities and Kolmogorov complexities to show that conditional complexities are also given by the corresponding conditional probabilities, i.e., for any two subsets S,T⊂{x1,…,xn}S,T\subset\{x_{1},\dots,x_{n}\} we have

Without loss of generality, set S:={x1,…,xj}S:=\{x_{1},\dots,x_{j}\} and T:={xj+1,…,xk}T:=\{x_{j+1},\dots,x_{k}\} for j<k≤nj<k\leq n. Using eqs. (4) and (13) we get

Let S,T,RS,T,R be three subsets of {x1,…,xn}\{x_{1},\dots,x_{n}\} such that RR d-separates SS and TT. Then S\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}T\,|R with respect to PP because PP satisfies the recursion (9) (see Lemma 1) Since PP is, by construction, a discrete probability function, PP the density with respect to a product measure is directly given by the probability function itself.. Hence

This proves algorithmic independence of SS and TT, given R∗R^{*} and thus I ⇒\Rightarrow III.

To show that III ⇒\Rightarrow II it suffices to recall that ndjnd_{j} and xjx_{j} are d-separated by pajpa_{j}. Now we show II ⇒\Rightarrow I in strong analogy to the proof for the statistical version of this statement in : Consider first a terminal node of GG. Assume, without loss of generality, that it is xnx_{n}. Hence all strings x1,…,xn−1x_{1},\dots,x_{n-1} are non-descendants of xnx_{n}. We thus have (ndn,pan)≡(x1,…,xn−1)(nd_{n},pa_{n})\equiv(x_{1},\dots,x_{n-1}) where ≡\equiv means that both strings coincide up to a permutation (on one side) and removing those strings that occur twice (on the other side). Due to eq. (4) we have

Using, again, the equivalence of w∗≡(w,K(w))w^{*}\equiv(w,K(w)) for any string ww we have

The second step follows from K(ndn,pan)=K(pan)+K(ndn∣pan∗)K(nd_{n},pa_{n})=K(pa_{n})+K(nd_{n}|pa_{n}^{*}). The inequality holds because ndn,pan,K(pan)+K(ndn∣pan∗)nd_{n},pa_{n},K(pa_{n})+K(nd_{n}|pa_{n}^{*}) can be computed from ndn,pan∗,K(ndn∣pan∗)nd_{n},pa_{n}^{*},K(nd_{n}|pa^{*}_{n}) via a program of length O(1)O(1). The last step follows directly from the assumption x_{n}\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}nd_{n}\,|pa_{n}^{*}. Combining ineq. (15) with Lemma 7 yields

Then statement I follows by induction over nn. □\Box

To show that the algorithmic Markov condition can be derived from an algorithmic version of the functional model in Postulate 4 we introduce the following model of causal mechanisms.

Let GG be a DAG formalizing the causal structure among the strings x1,…,xnx_{1},\dots,x_{n}. Then every xjx_{j} is computed by a program qjq_{j} with length O(1)O(1) from its parents pajpa_{j} and an additional input njn_{j}. We write formally

meaning that the Turing machine computes xjx_{j} from the input paj,njpa_{j},n_{j} using the additional program qjq_{j} and halts. The inputs njn_{j} are jointly independent in the sense

By defining new programs that contain njn_{j} we can, equivalently, drop the assumption that the programs qjq_{j} are simple and assume that they are jointly independent instead.

We could also have assumed that xjx_{j} is a function fjf_{j} of all its parents, but our model is more general since the map defined by the input-output behavior of qjq_{j} need not be a total function , i.e., the Turing machine simulating the process would not necessarily halt on all inputs paj,njpa_{j},n_{j}.

The idea to represent causal mechanisms by programs written for some universal Turing machine is basically in the spirit of various interpretations of the Church-Turing thesis. One formulation, given by Deutsch , states that every process taking place in the real world can be simulated by a Turing machine. Here we assume that the way different systems influence each other by physical signals can be simulated by computation processes that exchange messages of bit strings. Note, however, that sending quantum systems between the nodes could transmit a kind of information (“quantum information” ) that cannot be phrased in terms of bits. It is known that this enables completely new communication scenarios, e.g. quantum cryptography. The relevance of quantum information transfer for causal inference is not yet fully understood. It has, for instance, been shown that the violation of Bell’s inequality in quantum theory is also relevant for causal inference . This is because some causal inference rules between classical variables break down when the latent factors are represented by quantum states rather than being classical variables.

Note that mathematics also allows us to construct strings that are linked to each other in an uncomputable way. For instance, let xx be an arbitrary binary string and yy be defined by y:=K(x)y:=K(x). However, it is hard to believe that a real causal mechanism could create such kind of relations between objects given that one believes that real processes can always be simulated by algorithms. These remarks are intended to give sufficient motivation for our model.

Postulate 6 implies the algorithmic causal Markov condition:

Let x1,…,xnx_{1},\dots,x_{n} be generated by the model in Postulate 6. Then they satisfy the algorithmic Markov condition with respect to GG.

It is trivial to construct examples where the causal Markov condition is violated if the programs qjq_{j} are mutually dependent (for instance, the trivial graph with two nodes x1,x2x_{1},x_{2} and no edge would satisfy I(x1:x2)>0I(x_{1}:x_{2})>0 if the programs q1,q2q_{1},q_{2} computing x1,x2x_{1},x_{2} from an empty input are dependent).

The last sentence of Postulate 6 makes apparent that the mechanisms that generate causal relations are assumed to be independent. This is essential for the general philosophy of this paper. To see that such a mutual independence of mechanisms is a reasonable assumption we recall that the causal graph is meant to formalize all relevant causal links between the objects. If we observe, for instance, that two nodes are generated from their parents by the same complex rule we postulate another causal link between the nodes that explains the similarity of mechanisms. One could argue that this would be just the causal principle implying that similarities of the “machines” generating xjx_{j} from pajpa_{j} has to be explained by a causal relation, i.e., a common past of the machines. However, in the context of this paper, such an argument would be circular. We have argued that the causal principle is a special case of the Markov condition and derived the latter from the algorithmic model above. We will therefore consider the independence of mechanisms as a first principle.

3 Relative causality

This subsection explains why it is sensible to define algorithmic dependence and the existence or non-existence of causal links relative to some background information. To this end, we consider genetic sequences s1,s2s_{1},s_{2} of two persons that are not relatives. We certainly find high similarity that leads to a significant violation of I(s1:s2)=0I(s_{1}:s_{2})=0 due to the fact that both genes are taken from humans. However, given the background information “s1s_{1} is a human genetic sequence”, s1s_{1} can be further compressed. The same applies to s2s_{2}. Let hh be a code that is particularly adapted to the human genome in the sense that the expected conditional Kolmogorov complexity, given hh, of a randomly chosen human genome is minimal. Then it would make sense to consider I(s1:s2∣h)>0I(s_{1}:s_{2}|h)>0 as a hint for a relation that goes beyond the fact that both persons are human. In contrast, for the unconditional mutual information we expect I(s1:s2)≥K(h)I(s_{1}:s_{2})\geq K(h). We will therefore infer some causal relation (here: common ancestors in the evolution) using the causal principle in Lemma 5 (cf. ).

The common properties between different and unrelated individuals of the same species can be screened off by providing the relevant background information. Given this causal background, we can detect further similarities in the genes by the conditional algorithmic mutual information and take them as an indicator for an additional causal relation that goes beyond the common evolutionary background. For this reason, every discussion on whether there exists a causal link between two objects (or individuals) requires a specification of the background information. In this sense, causality is a relative concept.

One may ask whether such a relativity of causality is also true for the statistical version of the causality principle, i.e., Reichenbach’s principle of the common cause. In the statistical version of the link between causality and dependence, the relevance of the background information is less obvious because it is evident that statistical methods are always applied to a given statistical ensemble. If we, for instance, ask whether there is a causal relation between the height and the income of a person without specifying whether we refer to people of a certain age, we observe the same relativity with respect to additionally specifying the “background information”, which is here given by referring to a specific ensemble.

In the following sections we will assume that the relevant background information has been specified and it has been clarified how to translate the relevant aspects of a real object into a binary string such that we can identify every object with its binary description.

Novel statistical inference rules from the algorithmic Markov condition

To describe the implications of the algorithmic Markov condition for statistical causal inference, we consider random variables XX and YY where XX causally influences YY. We can think of P(X)P(X) as describing a source SS that generates xx-values and sends them to a “machine” MM that generates yy-values according to P(Y∣X)P(Y|X). Assume we observe that

Then we conclude that there must be a causal link between SS and MM that goes beyond transferring xx-values from SS to MM. This is because P(X)P(X) and P(Y∣X)P(Y|X) are inherent properties of SS and MM, respectively which do not depend on the current value of xx that has been sent. Hence there must be a causal link that explains the similarities in the design of SS and MM. Here we have assumed that we know that X→YX\rightarrow Y is the correct causal structure on the statistical level. Then we have to accept that a causal link on the level of the machine design is present.

If the causal structure on the statistical level is unknown, we would prefer causal hypotheses that explain the data without needing a causal connection on the higher level provided that they satisfy the statistical Markov condition. Given this principle, we thus will prefer causal graphs GG for which the Markov kernels P(Xj∣PAj)P(X_{j}|PA_{j}) become algorithmically independent. This is equivalent to saying that the shortest description of P(X1,…,Xn)P(X_{1},\dots,X_{n}) is given by concatenating the descriptions of the Markov kernels, a postulate that has already been formulated by Lemeire and Dirkx :

A causal hypothesis GG (i.e., a DAG) is only acceptable if the shortest description of the joint density PP is given by a concatenation of the shortest description of the Markov kernels, i.e.

If no such causal graph exists, we reject every possible DAG and assume that there is a causal relation of a different type, e.g., a latent common cause, selection bias, or a cyclic causal structure.

The sum on the right hand side of eq. (18) will be called the total complexity of the causal model GG. Note that Postulate 7 implies that we have to reject every causal hypothesis for which the total complexity is not minimal because a model with shorter total complexity already provides a shorter description of the joint distribution. Inferring causal directions by minimizing this expression (or actually a computable modification) could also be interpreted in a Bayesian way if we consider K(P(Xj∣PAj))K(P(X_{j}|PA_{j})) as the negative log likelihood for the prior probability for having the conditional P(Xj∣PAj)P(X_{j}|PA_{j}) (after appropriate normalization). However, Postulate 7 contains an idea that goes beyond known Bayesian approaches to causal discovery because it provides hints on the incompleteness of the class of models under consideration (in addition to providing rules for giving preference within the class).

Lemeire and Dirkx already show that the causal faithfulness principle (Postulate 3) follows from Postulate 7. Now we want to show that it also implies causal inference rules that go beyond the known ones.

To this end, we focus again on the example in Subsection 1.2 with a binary variable XX and a continuous variable YY. The hypothesis X→YX\rightarrow Y is not rejected on the basis of Postulate 7 because I(P(X):P(Y∣X))=+0I(P(X):P(Y|X))\stackrel{{\scriptstyle+}}{{=}}0. For the equally weighted mixture of two Gaussians this already follows for the more general case P(X=1)=pP(X=1)=p with K(p)≫0K(p)\gg 0, this also follows if we assume that pp is algorithmically independent of the parameters that specify P(Y∣X)P(Y|X) from K(P(X))=+0K(P(X))\stackrel{{\scriptstyle+}}{{=}}0. On the other hand, Y→XY\rightarrow X violates Postulate 7. Elementary calculations show that the conditional P(X∣Y)P(X|Y) is given by the sigmoid function

We observe that the same parameters σ,λ,μ\sigma,\lambda,\mu that occur in P(Y)P(Y), also occur in P(X∣Y)P(X|Y). This already shows that the two Markov kernels are algorithmically dependent. To be more explicit, we observe that μ\mu, λ\lambda, and σ\sigma are required to specify P(Y)P(Y). To describe P(X∣Y)P(X|Y), we need λ/σ2\lambda/\sigma^{2} and μ\mu. Hence we have

where we have assumed that the strings μ,λ,σ\mu,\lambda,\sigma are jointly independent. Note that the information that P(Y)P(Y) is a mixture of two Gaussians and that P(X∣Y)P(X|Y) is a sigmoid counts as a constant because its description complexity does not depend on the parameters.

Therefore we reject the causal hypothesis Y→XY\rightarrow X due to Postulate 7. The interesting point is that we need not look at the alternative hypothesis X→YX\rightarrow Y. In other words, we do not reject Y→XY\rightarrow X only because the converse direction leads to simpler expressions. We can reject it alone one the basis of observing algorithmic dependences between P(Y)P(Y) and P(X∣Y)P(X|Y) making the causal model suspicious.

The fact that the set of mixtures of two Gaussians does not have six free parameters already shows that P(X,Y)P(X,Y) must be a more complex distribution than the one above. Fig. 3 shows an example of a joint distribution obtained for the “detuned” situation.

As already noted by , the independence of mechanisms is related to Pearl’s thoughts on the stability of causal statements: the causal mechanism P(Xj∣PAj)P(X_{j}|PA_{j}) does not change if one changes the input distribution P(PAj)P(PA_{j}) by influencing the variables PAjPA_{j}. The same conditional can therefore occur, under different background conditions, with different input distributions.

Postulate 7 naturally occurs in the probability-free version of the causal Markov condition. To explain this, assume we are given two strings x{\bf x} and y{\bf y} of length nn (describing two real-world observations) and noticed that x=y{\bf x}={\bf y}. Now we consider two alternative scenarios:

(I) Assume that every pair (xj,yj)(x_{j},y_{j}) of digits (j=1,…,nj=1,\dots,n) has been independently drawn from the same joint distribution P(X,Y)P(X,Y) of the binary random variables XX and YY.

(II) Let x{\bf x} and y{\bf y} be single instances of string-valued random variables XX and YY.

The difference between (I) and (II) is crucial for statistical causal inference: In case (I), statistical independence is rejected with high confidence proving the existence of a causal link. In constrast, there is no evidence for statistical dependence in case (II) since the underlying joint distribution on {0,1}n×{0,1}n\{0,1\}^{n}\times\{0,1\}^{n} could, for instance, be the point mass on the pair (x,y)({\bf x},{\bf y}), which is a product distribution, i.e.,

Hence, statistical causal inference would not infer a causal connection in case (II).

Algorithmic causal inference, on the other hand, infers a causal link in both cases because the equality x=y{\bf x}={\bf y} requires an explanation. The relevance of switching between (I) and (II) then consists merely in shifting the causal connection to another level: In the i.i.d setting, every xjx_{j} must be causally linked to yjy_{j}. In case (II), there must be a connection between the two mechanisms that have generated the entire strings because I(P(X):P(Y∣X))=I(P(X):P(Y))≫0I(P(X):P(Y|X))=I(P(X):P(Y))\gg 0. This can, for instance, be due to the fact that two machines emitting the same string were designed by the same engineer. A detailed discussion of the relevance of translating the i.i.d. assumption into the setting of algorithmic causal inference will be given in Subsection 3.2.

Examples with large probability spaces

In the preceding subsection we have ignored a serious problem with defining the Kolmogorov complexity of (conditional) probability distributions that even occurs in finite probability spaces. First of all the “true” probabilities may not be computable. For instance, a coin may produce “head” with probability pp where pp is some uncomputable number, i.e., K(p)=∞K(p)=\infty. And even if it were some computable value pp with large K(p)K(p) it would be quite artificial to call the probability distribution (p,1−p)(p,1-p) “complex” because K(p)K(p) is high and “simple” if we have, for instance p=1/πp=1/\pi. A more reasonable notion of complexity can be obtained by describing the probabilities only up to a certain accuracy ϵ\epsilon. If ϵ\epsilon is not to small we obtain small complexity values for the distribution of a binary variable, and also low complexity for a distribution on a larger set that is ϵ\epsilon-close to the values of some simple analytical expression like a Gaussian distribution. There will still remain some unease about the concept of Kolmogorov complexity of “the true distribution”. We will subsequently develop a formalism that avoids this concept. However, Kolmogorov complexity of distributions is a useful idea to start with since it provides an intuitive understanding of the roots of the asymmetries between cause and effects that we will describe in Subsection 3.2.

Below, we will describe a gedankenexperiment with two random variables X,YX,Y linked by the causal structure X→YX\rightarrow Y where the total complexities of the causal models X→YX\rightarrow Y and Y→XY\rightarrow X both are well-defined and, in the generic case, different. First we will show that they can at most differ by factor two.

For every joint distribution P(X,Y)P(X,Y) we have

Proof: Since marginals and conditionals both can be computed from P(X,Y)P(X,Y) we have

Then the statement follows because P(X,Y)P(X,Y) can be computed from P(X)P(X) and P(Y∣X)P(Y|X). □\square

To construct examples where the bound in Lemma 9 is attained we first introduce a method to construct conditionals with well-defined complexity:

Let M0,M1M_{0},M_{1} be two stochastic matrices that specify transition probabilities from {0,1}\{0,1\} to {0,1}\{0,1\}. Then

defines transition probabilities from {0,1}n\{0,1\}^{n} to {0,1}n\{0,1\}^{n}.

We also introduce the same construction for double indices: Let M00,M01,M10,M11M_{00},M_{01},M_{10},M_{11} be stochastic matrices describing transition probabilities from {0,1}\{0,1\} to {0,1}\{0,1\}. Let c,d∈{0,1}nc,d\in\{0,1\}^{n} be two strings. Then

defines a transition matrix from {0,1}n\{0,1\}^{n} to {0,1}n\{0,1\}^{n}. If the matrices MjM_{j} or MijM_{ij} denote joint distributions on {0,1}×{0,1}\{0,1\}\times\{0,1\} the objects Mc{\bf M}_{c} and Mc,d{\bf M}_{c,d} define joint distributions on {0,1}n×{0,1}n\{0,1\}^{n}\times\{0,1\}^{n} in a canonical way.

Let X,YX,Y be variables whose values are the set of strings in {0,1}n\{0,1\}^{n}. Define distributions P0,P1P_{0},P_{1} on {0,1}\{0,1\} and stochastic matrices A0,A1A_{0},A_{1} describing transition probabilities from {0,1}\{0,1\} to {0,1}\{0,1\}. Then a string c∈{0,1}nc\in\{0,1\}^{n} defines a distribution P(X):=PcP(X):={\bf P}_{c} (using Definition 5) that has well-defined Kolmogorov complexity K(c)K(c) if the description complexity of P0P_{0} and P1P_{1} is neglected. Furthermore, we set P(Y∣X):=AdP(Y|X):={\bf A}_{d} as in Definition 6, where we have used the canonical identification between stochastic matrices and conditional probabilities and d∈{0,1}nd\in\{0,1\}^{n} denotes some randomly chosen string. Let RijR_{ij} denote the joint distribution on {0,1}×{0,1}\{0,1\}\times\{0,1\} induced by the marginal PiP_{i} on the first component and the conditional AjA_{j} for the second, given the first. Denote the corresponding marginal dsitribution on the right component by QijQ_{ij}, i.e.,

and let BijB_{ij} be the stochastic matrix that describes the conditional probability for the first component, given the second.

Using these notations and the ones in Definition 6, we obtain

It is noteworthy that P(Y)P(Y) and P(X∣Y)P(X|Y) are labeled by both strings while P(X)P(X) and P(Y∣X)P(Y|X) are described by only one string each. This already suggests that the latter are more complex in the generic case.

Now we compare the sum K(P(X))+K(P(Y∣X))K(P(X))+K(P(Y|X)) to K(P(Y))+K(P(X∣Y))K(P(Y))+K(P(X|Y)) for the caseK(c)=+K(d)=+nK(c)\stackrel{{\scriptstyle+}}{{=}}K(d)\stackrel{{\scriptstyle+}}{{=}}n. We assume that PiP_{i} and AjA_{j} are computable and their complexity is counted as O(1)O(1) because it does not depend on nn. Nevertheless, we assume that PiP_{i} and AjA_{j} are “generic” in the following sense: All marginals QijQ_{ij} and conditionals BijB_{ij} are different whenever P0≠P1P_{0}\neq P_{1} and A0≠A1A_{0}\neq A_{1}. If we impose one of the conditions P0=P1P_{0}=P_{1} and A0=A1A_{0}=A_{1} or both, we assume that only those marginals QijQ_{ij} and conditionals BijB_{ij} coincide for which the equality follows from the conditions imposed. Consider the following cases:

Case 1: P0=P1P_{0}=P_{1}, A0=A1A_{0}=A_{1}. Then all the complexities vanish because the joint distribution does not depend on the strings cc and dd.

Case 2: P0≠P1P_{0}\neq P_{1}, A0=A1A_{0}=A_{1}. Then the digits of cc are relevant, but the digits of dd are not. Those marginals and conditionals in table (20) that formally depend on cc and dd, as well as those that depend on cc, have complexity nn. Those depending on dd have complexity 00.

Case 3: P0=P1P_{0}=P_{1}, A0≠A1A_{0}\neq A_{1}. Only the dependence on dd contributes to the complexity. This implies

Case 4: P0≠P1P_{0}\neq P_{1} and A0≠A1A_{0}\neq A_{1}. Every formal dependence of the conditionals and marginals on cc and dd in table (20) is a proper dependence. Hence we obtain

The general principle of the above example is very simple. Given that P(X)P(X) is taken from a model class that consists of NN different elements and P(Y∣X)P(Y|X) is taken from a class with MM different elements. Then the class of possible P(Y)P(Y) and the class of possible P(X∣Y)P(X|Y) both can contain N⋅MN\cdot M elements. If the simplicity of a model is quantified in terms of the size of the class it is taken from (within a hierarchy of more and more complex models), the statement that P(Y)P(Y) and P(X∣Y)P(X|Y) are typically complex is just based on this simple counting argument.

Detecting common causes via dependent Markov kernels

The following model shows that latent common causes can yield joint distributions whose Kolmogorov complexity is smaller than K(P(X))+K(P(Y∣X))K(P(X))+K(P(Y|X)) and K(P(Y))+K(X∣Y))K(P(Y))+K(X|Y)). Let X,Y,ZX,Y,Z have values in {0,1}n\{0,1\}^{n} and let P(Z):=δcP(Z):=\delta_{c} be the point mass on some random string c∈{0,1}nc\in\{0,1\}^{n}. Let P(X∣Z)P(X|Z) and P(Y∣Z)P(Y|Z) both be given by the stochastic matrix A⊗A⊗⋯⊗AA\otimes A\otimes\cdots\otimes A. Let P0≠P1P_{0}\neq P_{1} be the probability vectors given by the columns of AA. Then

with Pc{\bf P}_{c} as in Definition 5. Since P(Z)P(Z) is supported by the singleton set {c}\{c\}, we have P(X∣Y)=P(X)P(X|Y)=P(X) and P(Y∣X)=P(Y)P(Y|X)=P(Y). Thus

By observing that there is a third variable ZZ such that

we thus have obtained a hint that the latent model is the more appropriate causal hypothesis.

Analysis of the required sample size

The following arguments show that the above complexities of the Markov kernels become relevant already for moderate sample size. Readers who are not interested in technical details may skip the remaining part of the subsection.

Consider first the sampling required to estimate cc by drawing i.i.d. from Pc{\bf P}_{c} as in Definition 5. By counting the number of symbols 11 that occur at position jj we can guess whether cjc_{j} is 00 or 11 by choosing the distribution for which the relative frequency is closer to the corresponding probability. To bound the error probabilities from above set

Then the probability qq that the relative frequency deviates by more than μ/2\mu/2 decreases exponentially in the number of copies, i.e., q≤e−μmαq\leq e^{-\mu m\alpha} where α\alpha is an appropriate constant. The probability to have no error for any digit is then bounded from below by (1−e−μmα)n(1-e^{-\mu m\alpha})^{n}. We want to increase mm such that the error probability tends to zero. To this end, choose mm such that e−μmα≤1/n2e^{-\mu m\alpha}\leq 1/n^{2}, i.e., m≥ln⁡n2/(μα)m\geq\ln n^{2}/(\mu\alpha). Hence

The required sample size thus grows only logarithmically in nn. In the same way, one shows that the sample size needed to distinguish between different conditionals P(Y∣X)=AcP(Y|X)={\bf A}_{c} increases only with the logarithm of nn provided that P(X)P(X) is a strictly positive product distribution on {0,1}n\{0,1\}^{n}.

2 Resolving statistical ensembles into individual observations

The assumption of independent identically distributed random variables is one of the cornerstones of standard statistical reasoning. In this section we show that the independence assumption in a typical statistical sample is often due to prior knowledge on causal relations among single objects which can nicely represented by a DAG. We will see that the algorithmic causal Markov condition then leads to non-trivial implications.

Assume we describe a biased coin toss, mm times repeated, and obtain the binary string x1,…,xmx_{1},\dots,x_{m} as result. This is certainly one of the scenarios where the i.i.d. assumption is well justified because if we do not believe that the coin changes or that the result of one coin toss influences the other ones. The only relation between the coin tosses is that they refer to the same coin. We will thus draw a DAG representing the relevant causal relations for the scenario where CC (the coin) is the common cause of all xjx_{j} (see fig. 4).

Given the relevant information on CC (i.e., given the probability pp for “head”), we have conditional algorithmic independence between the xjx_{j} when applying the Markov condition to this causal graph. This is consistent with the following Bayesian interpretation: if we define a non-trivial prior on the possible values of pp, the individual observations are statistically dependent when marginalizing over the prior, but knowing pp renders them independent. However, there are two problems: (1) it does not make sense to consider algorithmic mutual information among binary strings of length 11. (2) Our theory developed so far (Theorems 3 and 4) considered the number of strings (which is m+1m+1 here) as constant and thus even the complexity of x1,…,xmx_{1},\dots,x_{m} is considered as O(1)O(1). To solve this problem, we define a new structure with three nodes as follows. For some arbitrary k<mk<m set x1:=x1,…,xk{\bf x}^{1}:=x_{1},\dots,x_{k} and x2:=xk+1,…,xm{\bf x}^{2}:=x_{k+1},\dots,x_{m}. Then CC is the common cause of x1{\bf x}^{1} and x2{\bf x}^{2} and I(x1;x2∣C)=0I({\bf x}^{1};{\bf x}^{2}|C)=0 because every similarity between x1{\bf x}^{1} and x2{\bf x}^{2} is due to their common source (note that the information that the strings xj{\bf x}^{j} have been obtained by combining kk and n−kn-k results, respectively, is here implicitly considered as background information in the sense of relative causality in Subsection 2.3). We will later discuss examples where a source generates symbols from a larger probability space. Then every xjx_{j} is a string and it is important to keep in mind the “format information”, i.e., the information how to read the concatenation x1,x2,⋯ ,xkx_{1},x_{2},\cdots,x_{k} as a sample of mm strings. This format information will always be considered as background, too.

Of course, we may also consider partitions into more than two substrings keeping in mind that their number is considered as O(1)O(1). When we consider causal relations between short strings we will thus always apply the algorithmic causal Markov condition to groups of strings rather than applying it to the “small objects” itself. The DAG that formalizes the causal relations between instances or groups of instances of a statistical ensemble and the source that determines the statistics in the above sense will be called the “resolution of statistical ensembles into individual observations”.

The resolution gets more interesting if we consider causal relations between two random variables XX and YY. Consider the following scenario where XX is the cause of YY. Let SS be a source generating xx-values x1,…,xmx_{1},\dots,x_{m} according to a fixed probability distribution P(X)P(X). Let MM be a machine that receives these values as inputs and generates yy-values y1,…,ymy_{1},\dots,y_{m} according to the conditional P(Y∣X)P(Y|X). Fig 5 (left) shows the causal graph for m=4m=4.

In analogy to the procedure above, we divide the string x:=x1,…,xm{\bf x}:=x_{1},\dots,x_{m} into x1:=x1,…,xk{\bf x}^{1}:=x_{1},\dots,x_{k} and x2:=xk+1,…,xm{\bf x}^{2}:=x_{k+1},\dots,x_{m} and use the same grouping for the yy-values. We then draw the causal graph in fig. 5 (right) showing causal relations between x1,x2,y1,y2,S,M{\bf x}^{1},{\bf x}^{2},{\bf y}^{1},{\bf y}^{2},S,M. Now we assume that P(X)P(X) and P(Y∣X)P(Y|X) are not known, i.e., we don’t have access to the relevant properties of SS and MM. Thus we have to consider SS and MM as “hidden objects” (in analogy to hidden variables in the statistical setting). Therefore we have to apply the Markov condition to the causal structure in such a way that only the observed objects x1,x2,y1,y2{\bf x}^{1},{\bf x}^{2},{\bf y}^{1},{\bf y}^{2} occur. One checks easily that x2{\bf x}^{2} d-separates x1{\bf x}^{1} and y2{\bf y}^{2} and x1{\bf x}^{1} d-separates x2{\bf x}^{2} and y1{\bf y}^{1}. Exhaustive search over all possible triples of subsets of x1,x2,y1,y2{\bf x}^{1},{\bf x}^{2},{\bf y}^{1},{\bf y}^{2} shows that these are the only non-trivial d-separation conditions. We conclude

The most remarkable property of eq. (21) is that it is asymmetric with respect to exchanging the roles of XX and YY since, for instance, I(y1;x2∣y2)=+0I({\bf y}^{1};{\bf x}^{2}|{\bf y}^{2})\stackrel{{\scriptstyle+}}{{=}}0 can be violated. Intuitively, the reason is that given y2{\bf y}^{2}, the knowledge of x2{\bf x}^{2} provides better insights into the properties of SS and MM than knowledge of x1{\bf x}^{1} would do, which can be an advantage when describing y1{\bf y}^{1}. The following example shows that this asymmetry can even be relevant for sample size m=2m=2 provided that the probability space is large.

which correctly lets us prefer the causal direction X→YX\rightarrow Y because these dependences violate the global algorithmic Markov condition in Theorem 3 when applied to a hypothetical graph where y1{\bf y}^{1} and y2{\bf y}^{2} are the outputs of the source and x1{\bf x}^{1} and x2{\bf x}^{2} are the outputs of a machine that has received y1{\bf y}^{1} and y2{\bf y}^{2}.

Even though the condition in eq. (21) does not explicitly contain the notion of complexities of Markov kernels it is closely related to the algorithmic independence of Markov kernels. To explain this, assume we would generate algorithmic dependences between SS and MM by adding an arrow S→MS\rightarrow M or S←MS\leftarrow M or by adding a common cause. Then x2{\bf x}^{2} would no longer d-separate x1{\bf x}^{1} from y2{\bf y}^{2}. The possible violation of eq. (21) could then be an observable result of the algorithmic dependences between the hidden objects SS and MM (and their statistical properties P(X)P(X) and P(Y∣X)P(Y|X), respectively).

3 Conditional density estimation on subsamples

Now we develop an inference rule that is even closer to the idea of checking algorithmic dependences of Markov kernels than condition (21), but still avoids the notion of Kolmogorov complexity of the “true” conditional distributions by using finite sample estimates instead. Before we explain the idea we mention two simpler approaches for doing so and describe their potential problems. It would be straightforward to apply Postulate 7 to the finite sample estimates of the conditionals. In particular, minimum description length (MDL) approaches appear promising from the theoretical point of view due to their close relation to Kolmogorov complexity. We rephrase the minimum complexity estimator described by Barron and Cover : Given a string-valued random variable XX and a sample x1,…,xmx_{1},\dots,x_{m} drawn from P(X)P(X), set

where QQ runs over all probability densities on the probability space under consideration. If the data is sampled from a computable distribution, then P^m(X)\hat{P}_{m}(X) converges in probability to P(X)P(X) . Let us define a similar estimator P^m(Y∣X)\hat{P}_{m}(Y|X) for the conditional density P(Y∣X)P(Y|X). Could we reject the causal hypothesis X→YX\rightarrow Y after observing that P^m(X)\hat{P}_{m}(X) and P^m(Y∣X)\hat{P}_{m}(Y|X) are mutually dependent? In the context of the true probabilities, we have argued that P(X)P(X) and P(Y∣X)P(Y|X) represent independent mechanisms. However, for the estimators we do not see a justification for independence because the relative frequencies of the xx-values influence the estimation of P^m(X)\hat{P}_{m}(X) and P^m(Y∣X)\hat{P}_{m}(Y|X). This counter-argument becomes irrelevant only if the sample size is such that the complexities of the estimators coincide with the complexities of the true distributions. If we assume that the latter are typically uncomputable (because generic real numbers are uncomputable) this sample size will never be attained.

The general idea of MDL also suggests the following causal inference principle: If we are given the data points (xj,yj)(x_{j},y_{j}) with j=1,…,mj=1,\dots,m, consider the MDL estimators P^m(X)\hat{P}_{m}(X) and P^m(Y∣X)\hat{P}_{m}(Y|X). They define a joint distribution that we denote by P^X→Y(X,Y)\hat{P}_{X\rightarrow Y}(X,Y) (where we have dropped mm for convenience). The total description length

measures the complexity of the probabilistic model plus the complexity of the data, given the model. Then we compare CX→YC_{X\rightarrow Y} to CY→XC_{Y\rightarrow X} (defined correspondingly) and prefer the causal direction with the smaller value. However, it is not clear whether this kind of reasoning can be derived from the algorithmic Markov condition.

For this reason, we construct an inference rule that uses estimators in a more sophisticated way and whose justification is directly based on applying the algorithmic Markov condition to the resolution of ensembles. The idea of our strategy is that we do not use the full data set to estimate P(Y∣X)P(Y|X). Instead, we apply the estimator to a subsample of (x,y)(x,y) pairs that no longer carries significant information about the relative frequencies of xx-values in the full data set. As we will see below, this leads to algorithmically independent finite sample estimators for the Markov kernels if the causal hypothesis is correct.

Let X→YX\rightarrow Y be the causal structure that generated the data (x,y)({\bf x},{\bf y}), with x:=x1,…,xm{\bf x}:=x_{1},\dots,x_{m} and y:=y1,…,ym{\bf y}:=y_{1},\dots,y_{m} after mm-fold i.i.d. sampling from P(X,Y)P(X,Y). The resolution of the ensemble is the causal graph in fig. 7, left.

According to Postulate 6 there are mutually independent programs pjp_{j} computing xjx_{j} from the description of SS. Likewise, there are mutually independent programs qjq_{j} computing yjy_{j} from MM and xjx_{j}. Assume we are given a rule how to generate a subsample of x1,…,xmx_{1},\dots,x_{m} from x{\bf x}. It is important that this selection rule does not refer to y{\bf y} but only uses x{\bf x} (as well as some random string as additional input) and that the selection can be performed by a program of length O(1)O(1). Denote the subsample by

with l<ml<m. The above selection of indices defines also a subsample of yy-values

Hence we can draw the causal structure depicted in fig. 7, right.

which formally follows from the global Markov condition in Theorem 3. Using Lemma 8 and eq. (22) we conclude

which violates ineq. (23). The importance of this example lies in the fact that I(P(X):P(Y∣X))I(P(X):P(Y|X)) is not well-defined here because P(X)P(X) and P(Y∣X)P(Y|X) both are uncomputable. Nevertheless, P(X)P(X) and P(Y∣X)P(Y|X) have a computable aspect, i.e, the strings cc and dd characterizing them. Our strategy is therefore suitable to detect algorithmic dependences between computable features.

4 Plausible Markov kernels in time series

Time series are interesting examples of causal structures where the time order provides prior knowledge on the causal direction. Since there is a large number of them available from all scientific disciplines they can be useful to test causal inference rules on data with known ground truth. Let us consider the following example of a causal inference problem. Given a time series and the prior knowledge that it has been generated by a first order Markov process, but the direction is unknown. Formally, we are given observations x1,x2,x3,…,xmx_{1},x_{2},x_{3},\dots,x_{m} corresponding to random variables X1,X2,…,XmX_{1},X_{2},\dots,X_{m} such that the causal structure is either

where we have extended the series to infinity in both directions.

The question is whether the asymmetry of the joint distribution with respect to time inversion provides hints on the real time direction. Let us assume now that the graph (24) corresponds to the true time direction. Then the hope is that P(Xj+1∣Xj)P(X_{j+1}|X_{j}) is simpler, in some reasonable sense, than P(Xj∣Xj+1)P(X_{j}|X_{j+1}). At first glance this seems to be a straightforward extension of the principle of plausible Markov kernel discussed in Subsection 3.1. However, there is a subtlety with the justification when we apply our ideas to stationary time series:

Recall that the principle of minimizing the total complexity of all Markov kernels over all potential causal directions has been derived from the independence of the true Markov kernels (remarks after Postulate 7). However, the algorithmic independence of P(Xj∣PAj)=P(Xj∣Xj−1)P(X_{j}|PA_{j})=P(X_{j}|X_{j-1}) and P(Xi∣PAi)=P(Xi∣Xi−1)P(X_{i}|PA_{i})=P(X_{i}|X_{i-1}) fails spectacularly because stationarity implies that these Markov kernels coincide and represent a causal mechanism that is constant in time. This shows that the justification of minimizing total complexity breaks down for stationary time series.

The following argument shows that not only the justification breaks down but also the principle as such: Consider the case where P(Xj)P(X_{j}) is the unique stationary distribution of the Markov kernel P(Xj+1∣Xj)P(X_{j+1}|X_{j}). Then we have

Because the forward time conditional describes uniquely the backward time conditional (via implying the description of the unique stationary marginal) the Kolmogorov complexity of the latter can exceed the complexity of the former only by a constant term.

To compute the backward time conditional we first compute P(Xj)P(X_{j}) which is given by the distribution of a Bernoulli experiment with jj steps. Let kk denote the number of right moves, i.e., j−kj-k is the number of left moves. With xj=k−(j−k)+z=2k−j+zx_{j}=k-(j-k)+z=2k-j+z we thus obtain

The forward time process is specified by the initial condition P(X0)P(X_{0}) (given by zz) and the transition probabilities P(Xj,…,X1∣X0)P(X_{j},\dots,X_{1}|X_{0}) (given by pp). A priori, these two “objects” are mutually unrelated, i.e.,

On the other hand, the description of P(Xj)P(X_{j}) (the “initial condition” of the backward time process) alone already requires the specification of both zz and qq. The description of the “transition rule” P(X1,…,Xj−1∣Xj)P(X_{1},\dots,X_{j-1}|X_{j}) refers only to zz. We thus have

The fact that the initial distribution of the hypothetical process

shares algorithmic information with the transition probabilities makes the hypothesis suspicious.

Resolving time series

We have seen that the algorithmic dependence between “initial condition” and “transition rule” of the backward time process (which would be surprising if it occurred for the forward time process) represents an asymmetry of non-stationary time-series with respect to time reflection. We will now discuss this asymmetry after resolving the statistical ensemble into individual observations.

Assume we are given mm instances of nn-tuples x1(i),…,xn(i)x^{(i)}_{1},\dots,x^{(i)}_{n} with i=1,…,mi=1,\dots,m that have been i.i.d. sampled from P(X1,…,Xn)P(X_{1},\dots,X_{n}) and X1,…,XnX_{1},\dots,X_{n} are part of a time series that can be described by a first order stationary Markov process. Our resolution of a statistical ensemble generated by X→YX\rightarrow Y contained a source SS and a machine MM. The source generates xx-values and the machine generates yy-values from the input xx. The algorithmic independence of SS and MM was essential for the asymmetry between cause and effect described in Subsection 3.2. For the causal chain

we would therefore have machines MjM_{j} generating the xjx_{j}-value from xj−1x_{j-1}. However, for stationary time-series all MjM_{j} are the same machine. The causal structure of the resolution of the statistical ensemble for m=2m=2 is shown in fig. 9, left.

This graph entails no independence constraint that is asymmetric with respect to reversing the time direction. To see this, recall that two DAGs entail the same set of independences if and only if they have the same skeleton (i.e. the corresponding undirected graphs coincide) and the same set of unshielded colliders (vv-structures), i.e., substructures A→C←BA\rightarrow C\leftarrow B where AA and BB are non-adjacent . Fig. 9 has no such vv-structure and the skeleton is obviously symmetric with respect to time-inversion.

The initial part is, however, asymmetric (in agreement with the asymmetries entailed by fig. 5, left) and we have

This is just the finite-sample analogue of the statement that the initial distribution P(X0)P(X_{0}) and the transition rule P(Xj∣Xj−1)P(X_{j}|X_{j-1}) are algorithmically independent.

Decidable modifications of the inference rule

To use the algorithmic Markov condition in practical applications we have to replace it with computable notions of complexity. The following two subsections discuss two different directions along which practical inference rules can be developed.

We have seen that the algorithmic causal Markov condition implies that the the sum of the Kolmogorov complexities of the Markov kernels must be minimized over all possible causal graphs. In practical applications, it is natural to replace the minimization of Kolmogorov complexity with a decidable simplicity criterion even though this makes the relation to the theory developed so far rather vague. In this subsection we will describe an empirically decidable inference rule and show that the relation to Kolmogorov complexity of conditionals is closer than it may seem at first glance.

Moreover, the example below shows a scenario where the causal hypothesis X→YX\rightarrow Y can already be preferred to Y→XY\rightarrow X by comparing only the marginal distributions P(X)P(X) and P(Y)P(Y) and observing that a simple conditional P(Y∣X)P(Y|X) leads from the former to the latter but no simple conditional leads into the opposite direction. The example will furthermore show why the identification of causal directions is often easier for probabilistic causal relations than for deterministic ones, a point that has also been pointed out by Pearl in a different context.

Consider the discrete probability space {1,…,N}\{1,\dots,N\}. Given two distributions P(X),P(Y)P(X),P(Y) like the ones depicted in fig. 10 for N=120N=120. The marginal P(X)P(X) consists of kk sharp peaks of equal height at positions n1,…,nkn_{1},\dots,n_{k} and P(Y)P(Y) also has kk modes centered at the same positions, but with greater width. We assume that P(Y)P(Y) can be obtained from P(X)P(X) by repeatedly applying a doubly stochastic matrix A=(aij)i,j=1,…,NA=(a_{ij})_{i,j=1,\dots,N} with aii=1−2pa_{ii}=1-2p for p∈(0,1)p\in(0,1) and aij=pa_{ij}=p for i=j±1(mod N)i=j\pm 1({\rm mod}\,N). The stochastic map AA thus defines a random walk and we have by assumption

i.e. MM has the probability vector P(X)P(X) in every column.

where =+\stackrel{{\scriptstyle+}}{{=}} denotes equality up to a term that does not depend on NN. This is because different locations n1,…,nkn_{1},\dots,n_{k} of the original peaks lead to different distributions P(Y)P(Y) and, conversely, every such P(Y)P(Y) is uniquely defined by describing the positions of the corresponding sharp peaks and MM.

where the information that XX contains about the index jj is given by

JJ denotes the random variable with values jj. Here, H(.)H(.) denotes the Shannon entropy and I(Y:J)I(Y:J) is computed in a similar way as I(X:J)I(X:J) using Qj(Y)Q_{j}(Y) instead of Qj(X)Q_{j}(X).

Proof: The idea is to show that we need at least 2Δ2^{\Delta} different stochastic matrices to achieve that the information I(X:J)I(X:J) exceeds I(Y:J)I(Y:J) by the amount Δ\Delta. Using a standard argument rephrased below, the average complexity is therefore at least Δ\Delta.

This is because both I(X:R)I(X:R) and I(Y:R)I(Y:R) cannot exceed log⁡2d\log_{2}d because dd is the number of values RR can attain. Then we have:

The first equality follows because RR contains no additional information on XX (when JJ is known) since it describes only from which equivalence class jj is taken. The second equality is a general rule for mutual information . The inequality combines ineqs. (28) and (29). The last equality follows similar as the equalities in the first line. This shows that we need at least 2d2^{d} different matrices with d=⌈I(X:J)−I(Y:J)⌉d=\lceil I(X:J)-I(Y:J)\rceil. We have

where the first inequality holds because the exponential function is concave and the second is entailed by Kraft’s inequality. This yields

One may ask why to consider distributions with several peaks even though the above result will formally also apply to distributions Pj(X)P_{j}(X) and Pj(Y)P_{j}(Y) with only one peak. The problem is that the statement “two distributions have a peak at the same position” does not necessarily make sense for empirical data. This is because the definition of variables is often chosen such that the distribution becomes centralized. The statement that multiple peaks occur on seemingly random positions seems therefore more sensible than the statement that one peak has been observed at a random position.

As above, we would rather assume that XX is the cause of YY than vice versa since the smoothing process is simpler than any process that leads in the opposite direction. We emphasize that denoising is an operation that cannot be represented by a stochastic matrix, it is a linear operation that can be applied to the whole data set in order to reconstruct the original peaks. The statement is thus that no simple stochastic process leads in the opposite direction. To further discuss the rationale behind this way of reasoning we introduce another notion of simplicity that does not refer to Kolmogorov complexity. To this end, we introduce the notion of translation covariant conditional probabilities:

Let X,YX,Y be two real-valued random variables. A conditional distribution P(Y∣X)P(Y|X) with density P(y∣x)P(y|x) is called translation covariant if

Apart from this, we will also need the following well-known concept from statistical estimation theory :

Then we have the following Lemma (see Lemma 1 in showing the statement in a more general setting that involves also quantum stochastic maps):

Let P(X,Y)P(X,Y) be a joint distribution such that P(Y∣X)P(Y|X) is translation covariant. Then

The intuition is that FF quantifies the degree to which a distribution is non-invariant with respect to translations and that no translation covariant process is able to increase this measure. The convolution with a Gaussian distribution with non-zero variance decreases the Fisher information. Hence there is never a translation invariant stochastic map in backward direction.

The argument above can easily be generalized in two respects. First, the argument works also with other quantities that are monotonous with respect to translation invariant stochastic maps. Second, we can also consider more general symmetries:

Let X,YX,Y be random variables with equal range SS. Let GG be a group of bijections g:S→Sg:S\rightarrow S and XgX^{g} and YgY^{g} denoting the random variables obtained by permuting the outcomes of the corresponding random experiment according to gg. Then we call a conditional P(Y∣X)P(Y|X) GG-covariant if

If a GG-invariant measure μ\mu (“Haar measure”) exists on GG we can easily define an information theoretic quantity that measures the degree of non-invariance with respect to GG:

Let P(X)P(X) be a distribution on SS and GG be a group of bijections on SS with Haar measure μ\mu. Then the reference information is given by:

The name “reference information” has been used in in a slightly different context where this information occurred as the value of a physical system to communicate a reference system (e.g. spatial or temporal) where GG describes, for instance, translations in time or space. The quantity IGI_{G} can easily be interpreted as mutual information I(X:Z)I(X:Z) if we introduce a GG-valued random variable ZZ whose values indicate which transformation gg has been applied. One can thus show that IGI_{G} is non-increasing with respect to every GG-covariant map .

with ϵj∈(0,1)\epsilon_{j}\in(0,1). Then MM is GG-symmetric, but no GG-symmetric process leads backwards. This is because every such stochastic map would be asymmetric in a way that encodes cc, i.e., the map would have “to know” cc because MM has destroyed some amount of information about it.

2 Resource-bounded complexity

The problem that the presence or absence of mutual information is undecidable (when defined via Kolmogorov complexities) is similar to statistics, but also different in other respects. Let us first focus on the analogy. Given two real-valued random variables X,YX,Y, it is impossible to show by finite sampling that they are statistically independent. X\mathchoice{\mathrel{\hbox to0.0pt{\displaystyle\perp\hss}\mkern 2.0mu{\displaystyle\perp}}}{\mathrel{\hbox to0.0pt{\textstyle\perp\hss}\mkern 2.0mu{\textstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptstyle\perp\hss}\mkern 2.0mu{\scriptstyle\perp}}}{\mathrel{\hbox to0.0pt{\scriptscriptstyle\perp\hss}\mkern 2.0mu{\scriptscriptstyle\perp}}}Y is equivalent to E(f(X)g(Y))=E(f(X))E(g(Y))E(f(X)g(Y))=E(f(X))E(g(Y)) for every pair (f,g)(f,g) of measurable functions. If we observe significant correlations between f(X)f(X) and g(Y)g(Y) for some previously defined pair, it is well-justified to reject independence. The same holds if such correlations are detected for f,gf,g in some previously defined, sufficiently small set of functions (cf. ). However, if this is not the case, we can never be sure that there is not some pair of arbitrarily complex functions f,gf,g that are correlated with respect to the true distribution. Likewise, if we have two strings x,yx,y and find no simple program that computes xx from yy this does not mean that there is no such a rule. Hence, we also have the statement that there can be an algorithmic dependence even though we do not find it.

However, the difference to the statistical situation is the following. Given that we have found functions f,gf,g yielding correlations it is only a matter of the statistical significance level whether this is sufficient to reject independence. For algorithmic dependences, we do not even have a decidable criterion to reject independence. Given that we have found a simple program that computes xx from yy, it still may be true that I(x;y)I(x;y) is small because there may also be a simple rule to generate xx (which would imply I(x:y)≈0I(x:y)\approx 0) that we were not able to find. This shows that we can neither show dependence nor independence.

One possible answer to these problems is that Kolmogorov complexity is only an idealization of empirically decidable quantities. Developing this idealization only aims at providing hints in which directions we have to develop practical inference rules. Compression algorithms have already been developed that are intended to approximate, for instance, the algorithmic information of genetic sequences . Chen et al. constructed a “conditional compression scheme” to approximate conditional Kolmogorov complexity and applied it to the estimation of the algorithmic mutual information between two genetic sequences. To evaluate to which extent methods of this kind can be used for causal inference using the algorithmic Markov condition is an interesting subject of further research.

It is also noteworthy that there is a theory on resource-bounded description complexity where compressions of xx are only allowed if the decompression can be performed within a previously defined number of computation steps and on a tape of previously defined length. An important advantage of resource-bounded complexity is that it is computable. The disadvantage, on the other hand, is that the mathematical theory is more difficult. Parts of this paper have been developed by converting statements on statistical dependences into their algorithmic counterpart. The strong analogy between statistical and algorithmic mutual information occurs only for complexity with unbounded resources. For instance, the symmetry I(x:y)=+I(y:x)I(x:y)\stackrel{{\scriptstyle+}}{{=}}I(y:x) breaks down when replacing Kolmogorov complexity with resource-bounded versions . Nevertheless, to develop a theory of inferred causation using resource-bounded complexity could be a challenge for the future. There are several reasons to believe that taking into account computational complexity can provide additional hints on the causal structure:

Bennett , for instance, has argued that the logical depth of an object echoes in some sense its history. The former is, roughly speaking, defined as follows. Let xx be a string that describes the object and ss be its shortest description. Then the logical depth of xx is the number of time steps that a parallel computing device requires to compute xx from ss. According to Bennett, large logical depth indicate that the object has been created by a process that consisted of many non-trivial steps. This would mean that there also is some causal information that follows from the time-resources required to compute a string from its shortest description.

The time-resources required to compute one observation from the other also plays a role in the discussion of causal inference rules in . The paper presents a model where the conditional

can be efficiently computed, while computing

is NP-hard. This suggests that the computation time required to use information of the cause for the description of the effect can be different from the time needed to obtain information on the cause from the effect. However, the goal of the present paper was to describe asymmetries between cause and effect that even occur when computational complexity is ignored.

Conclusions

We have shown that our algorithmic causal Markov condition links algorithmic dependences between single observations with the underlying causal structure in the same way This is similar to the way the statistical causal Markov condition links statistical dependences among random variables to the causal structure. The algorithmic Markov condition has implications on different levels:

(1) In conventional causal inference one can drop the assumption that observations

have been generated by independent sampling from a constant joint distribution

of nn random variables X1,…,XnX_{1},\dots,X_{n}. Algorithmic information theory thus replaces statistical causal inference with a probability-free formulation.

(2) Causal relations among individual objects can be inferred provided their shortest descriptions are sufficiently complex.

(3) New statistical causal inference rules follow because causal hypotheses are suspicious if the corresponding Markov kernels are algorithmically dependent.

Since algorithmic mutual information is uncomputable because Kolmogorov complexity is uncomputable, we have presented decidable inference rules that are motivated by the uncomputable idealization.

References