# Graphoid

A graphoid is a set of statements of the form, "X is irrelevant to Y given that we know Z" where X, Y and Z are sets of variables. The notion of "irrelevance" and "given that we know" may obtain different interpretations, including probabilistic, relational and correlational, depending on the application. These interpretations share common properties that can be captured by paths in graphs (hence the name "graphoid"). The theory of graphoids characterizes these properties in a finite set of axioms that are common to informational irrelevance and its graphical representations.

## History

Judea Pearl and Azaria Paz coined the term "graphoids" after discovering that a set of axioms that govern conditional independence in probability theory is shared by undirected graphs. Variables are represented as nodes in a graph in such a way that variable sets X and Y are independent conditioned on Z in the distribution whenever node set Z separates X from Y in the graph. Axioms for conditional independence in probability were derived earlier by A. Philip Dawid and Wolfgang Spohn. The correspondence between dependence and graphs was later extended to directed acyclic graphs (DAGs) and to other models of dependency.

## Definition

A dependency model M is a subset of triplets (X,Z,Y) for which the predicate I(X,Z,Y): X is independent of Y given Z, is true. A graphoid is defined as a dependency model that is closed under the following five axioms:
* Symmetry: $I(X,Z,Y)\Leftrightarrow I(Y,Z,X)$
* Decomposition: $I(X,Z,Y\cup W)\Rightarrow I(X,Z,Y)~\&~I(X,Z,W)$
* Weak Union: $I(X,Z,Y\cup W)\Rightarrow I(X,Z\cup W,Y)~\&~I(X,Z\cup Y,W)$
* Contraction: $I(X,Z,Y)~\&~I(X,Z\cup Y,W)\Rightarrow I(X,Z,Y\cup W)$
* Intersection: $I(X,Z\cup W,Y)~\&~I(X,Z\cup Y,W)\Rightarrow I(X,Z,Y\cup W)$
A semi-graphoid is a dependency model closed under 1–4. These five axioms together are known as the graphoid axioms. Intuitively, the weak union and contraction properties mean that irrelevant information should not alter the relevance status of other propositions in the system; what was relevant remains relevant and what was irrelevant remains irrelevant.

## Types of graphoids
### Probabilistic graphoids

Conditional independence, defined as
    $I(X,Z,Y)\Leftrightarrow P(X\mid Y,Z)=P(X\mid Z)$
is a semi-graphoid which becomes a full graphoid when P is strictly positive.

### Correlational graphoids

A dependency model is a correlational graphoid if in some probability function we have,
    $I_{c}(X,Y,Z)\Leftrightarrow \rho _{xy.z}=0{\text{ for every }}x\in X{\text{ and }}y\in Y$
where $\rho _{xy.z}$ is the partial correlation between x and y given set Z.
In other words, the linear estimation error of the variables in X using measurements on Z would not be reduced by adding measurements of the variables in Y, thus making Y irrelevant to the estimation of X. Correlational and probabilistic dependency models coincide for normal distributions.

### Relational graphoids

A dependency model is a relational graphoid if it satisfies
    $P(X,Z)>0~\&~P(Y,Z)>0\implies P(X,Y,Z)>0.$
In words, the range of values permitted for X is not restricted by the choice of Y, once Z is fixed. Independence statements belonging to this model are similar to embedded multi-valued dependencies (EMVDs) in databases.

### Graph-induced graphoids

If there exists an undirected graph G such that,
    $I(X,Z,Y)\Leftrightarrow \langle X,Z,Y\rangle _{G},$
then the graphoid is called graph-induced. In other words, there exists an undirected graph G such that every independence statement in M is reflected as a vertex separation in G and vice versa. A necessary and sufficient condition for a dependency model to be a graph-induced graphoid is that it satisfies the following axioms: symmetry, decomposition, intersection, strong union and transitivity.
Strong union states that
    $I(X,Z,Y)\implies I(X,Z\cup W,Y)$
Transitivity states that
    $I(X,Z,Y)\implies \left(\forall ~\gamma \notin X\cup Y\cup Z,~~I(X,Z,\gamma ){\text{ or }}I(\gamma ,Z,Y)\right)$
The axioms symmetry, decomposition, intersection, strong union and transitivity constitute a complete characterization of undirected graphs.

### DAG-induced graphoids

A graphoid is termed DAG-induced if there exists a directed acyclic graph D such that $I(X,Z,Y)\Leftrightarrow \langle X,Z,Y\rangle _{D}$ where $\langle X,Z,Y\rangle _{D}$ stands for d-separation in D. d-separation (d-connotes "directional") extends the notion of vertex separation from undirected graphs to directed acyclic graphs. It permits the reading of conditional independencies from the structure of Bayesian networks. However, conditional independencies in a DAG cannot be completely characterized by a finite set of axioms.

## Inclusion and construction

Graph-induced and DAG-induced graphoids are both contained in probabilistic graphoids. This means that for every graph G there exists a probability distribution P such that every conditional independence in P is represented in G, and vice versa. The same is true for DAGs. However, there are probabilistic distributions that are not graphoids and, moreover, there is no finite axiomatization for probabilistic conditional dependencies.
Thomas Verma showed that every semi-graphoid has a recursive way of constructing a DAG in which every d-separation is valid. The construction is similar to that used in Bayes networks and goes as follows:
* Arrange the variables in some arbitrary order 1, 2,...,i,...,N and, starting with i = 1,
* choose for each node i a set of nodes PA$_i$ such that i is independent on all its predecessors, 1, 2,...,i − 1, conditioned on PA$_i$.
* Draw arrows from PA$_i$ to i and continue.
The DAG created by this construction will represent all the conditional independencies that follow from those used in the construction. Furthermore, every d-separation shown in the DAG will be a valid conditional independence in the graphoid used in the construction.