23
On the Prior and Posterior Distributions Used in Graphical Modelling Marco Scutari [email protected] Genetics Institute University College London October 25, 2013 Marco Scutari University College London

On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

On the Prior and Posterior DistributionsUsed in Graphical Modelling

Marco Scutari

[email protected] Institute

University College London

October 25, 2013

Marco Scutari University College London

Page 2: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Background and Notation

Marco Scutari University College London

Page 3: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Background and Notation

The Problem

A large part of the literature on the analysis of graphical models focuseson the study of the parameters of local probability distributions (such asconditional probabilities or partial correlations). However:

• Comparing models learned with different algorithms is difficult,because they maximise different scores, use different estimators forthe parameters, work under different sets of hypotheses, etc.

• Unless the true global probability distribution is known it is difficultto assess the quality of the estimated models.

• The few available measures of structural difference are completelydescriptive in nature (e.g. Hamming distance [6] or SHD [13]), andare difficult to interpret.

• When learning causal graphical models often the focus is not on theparameters but in the presence of particular patterns of edges in thegraph (e.g. [11]).

Marco Scutari University College London

Page 4: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Background and Notation

Aims of the Investigation

Focusing on graph structures makes sidesteps some of these problems,opens new ones and acknowledges the focus on graphs in part of causalmodelling literature [12].

0. We need to know more about the properties of priors P(G) andposteriors P(G | D) distributions over the space of graphs, preferablyas a function of arc and edge sets, say P(G(E)) and P(G(E) | D).

And then:

1. It would be good to have a measure(s) of spread for G, to assess thenoisiness of P(G(E) | D) and the informativeness of P(G(E)).

2. Using such a measure(s), it would be interesting to study theconvergence speed of structure learning algorithms and the influenceof their tuning parameters.

3. It would also be interesting to investigate how to use higher ordermoments of P(G(E)) to define new priors.

Marco Scutari University College London

Page 5: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Background and Notation

Notation

Graphical models are defined by:

• a network structure, either an undirected graph G = (V, E)(Markov networks [2, 14]) or a directed acyclic graph G = (V, A)(Bayesian networks [7, 8]). E is the edge set and A is the arc set.Each node v ∈ V corresponds to a random variable Xi ∈ X;

• a global probability distribution over X with parameter set Θ, whichcan be factorised into a small set of local probability distributionsaccording to the topology of the graph.

In addition, we denote E = {(vi, vj), i 6= j} the set of all possible edgesor arcs of G. Clearly, |E| = O(|V|2) while the space of the graphs is at

least O(2|V|2

) so it is much bigger.

Marco Scutari University College London

Page 6: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Modelling Graphs through

Edges and Arcs

Marco Scutari University College London

Page 7: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Modelling Graphs through Edges and Arcs

Edges and Univariate Bernoulli Random Variables

Each edge eij in an undirected graph G = (V, E) has only twopossible states,

eij =

{1 if ei ∈ E0 otherwise

.

Therefore it can be modelled as a Bernoulli random variable Eij ,

eij ∼ Eij =

{1 eij ∈ E with probability pij

0 eij 6∈ E with probability 1− pij,

where pi is the probability that the edge ei appears in the graph.We will denote it as Ei ∼ Ber(pi).

Marco Scutari University College London

Page 8: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Modelling Graphs through Edges and Arcs

Edge Sets as Multivariate Bernoulli

The natural extension of this approach is to model any set of edgesas a multivariate Bernoulli random variable B ∼ Berk(p). B isuniquely identified by the parameter set

p = {pI : I ⊆ {1, . . . , k}, i 6= ∅} , k =|V|(|V| − 1)

2

which represents the dependence structure [9] among the marginaldistributions Bi ∼ Ber(pi), i = 1, . . . , k of the edges.

The parameter set p can be estimated using a large number m ofbootstrap samples as in Friedman et al. [3] or Imoto et al. [5], orMCMC samples as in Friedman & Koller [4].

Marco Scutari University College London

Page 9: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Modelling Graphs through Edges and Arcs

Arcs and Univariate Trinomial Random Variables

Each arc aij in G = (V, A) has three possible states, and therefore it canbe modelled as a Trinomial random variable Aij :

aij ∼ Aij =

−1 if aij =←−aij = {vi ← vj}0 if aij 6∈ A, denoted with aij

1 if aij = −→aij = {vi → vj}.

As before, the natural extension to model any set of arcs is to use amultivariate Trinomial random variable T ∼ Trik(p).

However:

• the acyclicity constraint of Bayesian networks makes deriving exactresults very difficult because it cannot be written in closed form;

• the score equivalence of most structure learning strategies makesinference on Trik(p) tricky unless particular care is taken (i.e. bothpossible orientations of many arcs result in equivalent probabilitydistributions, so the algorithms cannot choose between them).

Marco Scutari University College London

Page 10: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure

Variability

Marco Scutari University College London

Page 11: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Second Order Properties of Berk(p) and Trik(p)

All the elements of the covariance matrix Σ of an edge set E are bounded,

pi ∈ [0, 1]⇒ σii = pi − p2i ∈[0,

1

4

]⇒ σij ∈

[0,

1

4

],

and similar bounds exist for the eigenvalues λ1, . . . , λk,

0 6 λi 6k

4and 0 6

k∑i=1

λi 6k

4.

These bounds define a closed convex set in Rk,

L =

{∆k−1(c) : c ∈

[0,k

4

]}where ∆k−1(c) is the non-standard k − 1 simplex

∆k−1(c) =

{(λ1, . . . , λk) ∈ Rk :

k∑i=1

λi = c, λi > 0

}.

Similar results hold for arc sets, with σii ∈ [0, 1] and λi ∈ [0, k].

Marco Scutari University College London

Page 12: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Minimum and Maximum Entropy

These results provide the foundation for characterising three casescorresponding to different configurations of the probability mass inP(G(E)) and P(G(E) | D):

• minimum entropy: the probability mass is concentrated on a singlegraph structure. This is the best possible configuration forP(G(E) | D), because only one edge set E (or one arc set A) has anon-zero posterior probability.

• intermediate entropy: several graph structures have non-zeroprobabilities. This is the case for informative priors P(G(E)) and forthe posteriors P(G(E) | D) resulting from real-world data sets.

• maximum entropy: all graph structures have the same probability.This is the worst possible configuration for P(G(E) | D), because itcorresponds to a non-informative prior. In other words, the data Ddo not provide any information useful in identifying a high-posteriorgraph G.

Marco Scutari University College London

Page 13: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Properties of the Multivariate Bernoulli

In the minimum entropy case, only one configuration of edges Ehas non-zero probability, which means that

pij =

{1 if eij ∈ E0 otherwise

and Σ = O

where O is the zero matrix.The uniform distribution over G arising from the maximumentropy case has been studied extensively in random graph theory[1]; its two most relevant properties are that all edges eij areindependent and have pij = 1

2 . As a result, Σ = 14Ik; all edges

display their maximum possible variability, which along with thefact that they are independent makes this distributionnon-informative for E as well as G(E).

Marco Scutari University College London

Page 14: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Properties of the Multivariate Trinomial

In the maximum entropy case we have that [10]

P(−→aij) = P(←−aij) '1

4+

1

4(n− 1)→ 1

4

P(aij) '1

2− 1

2(n− 1)→ 1

2

as n→∞, where n is the number of nodes of the graph. As aresult, we have that

E(Aij) = P(−→aij)− P(←−aij) = 0,

VAR(Aij) = 2 P(−→aij) '1

2+

1

2(n− 1)→ 1

2,

|COV(Aij , Akl)| = 2 [P(−→aij ,−→akl)− P(−→aij ,←−akl)]

/ 4

[3

4− 1

4(n− 1)

]2 [1

4+

1

4(n− 1)

]2→ 9

64.

Marco Scutari University College London

Page 15: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

A Geometric Representation of Entropy in L

maximum entropy

minimumentropy

The space of the eigenvalues L for two edges in an undirected graph.

Marco Scutari University College London

Page 16: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Univariate Measures of Variability

• The generalised variance, VARG(Σ) = det(Σ) =∏k

i=1 λi ∈[0, 1

4k

].

• The total variance (or total variability)

VART (Σ) = tr (Σ) =

k∑i=1

λi ∈[0,k

4

].

• The squared Frobenius matrix norm

VARF (Σ) = |||Σ− k

4Ik|||2F =

k∑i=1

(λi −

k

4

)2

∈[k(k − 1)2

16,k3

16

].

All of these measures can be rescaled to vary in the [0, 1] interval and toassociate high values to networks whose structure displays a high entropy.

The equivalent measures of variability for directed acyclic graphs can bederived in the same way, and they can be similarly normalised.

Marco Scutari University College London

Page 17: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Structure Variability (Total Variance)

maximum entropyminimumentropy

Level curves in L for VART (Σ).

Marco Scutari University College London

Page 18: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Structure Variability (Squared Frobenius Matrix Norm)

maximum entropyminimumentropy

Level curves in L for VARF (Σ).

Marco Scutari University College London

Page 19: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

Measures of Structure Variability

Conclusions and Open Problems

• First and second order properties of P(G(E)) and P(G(E) | D)can be often derived in closed form, and have a geometricinterpretation.

• First and second order properties of the uniform P(G(E)) ondirected acyclic graphs can be a basis for simulations and thedefinition of new priors; could they translate to the uniformprior over decomposable undirected graphs?

• Is there a way of identifying paths using covariance matrixdecompositions?

• Shrinking the covariance matrix affects P(eij) and P(aij) aswell, and it is possible to use it for regularisation purposes.Applications to Bayesian model averaging and significantedges/arcs identification?

Marco Scutari University College London

Page 20: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

References

Marco Scutari University College London

Page 21: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

References

References I

B. Bollobas.

Random Graphs.Cambridge University Press, 2nd edition, 2001.

D. I. Edwards.

Introduction to Graphical Modelling.Springer, 2nd edition, 2000.

N. Friedman, M. Goldszmidt, and A. Wyner.

Data Analysis with Bayesian Networks: A Bootstrap Approach.In Proceedings of the 15th Annual Conference on Uncertainty in Artificial Intelligence, pages 206–215.Morgan Kaufmann, 1999.

N. Friedman and D. Koller.

Being Bayesian about Bayesian Network Structure: A Bayesian Approach to Structure Discovery inBayesian Networks.Machine Learning, 50(1–2):95–126, 2003.

S. Imoto, S. Y. Kim, H. Shimodaira, S. Aburatani, K. Tashiro, S. Kuhara, and S. Miyano.

Bootstrap Analysis of Gene Networks Based on Bayesian Networks and Nonparametric Regression.Genome Informatics, 13:369–370, 2002.

D. Jungnickel.

Graphs, Networks and Algorithms.Springer, 3rd edition, 2008.

Marco Scutari University College London

Page 22: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

References

References II

D. Koller and N. Friedman.

Probabilistic Graphical Models: Principles and Techniques.MIT Press, 2009.

K. Korb and A. Nicholson.

Bayesian Artificial Intelligence.Chapman & Hall, 2004.

F. Krummenauer.

Limit Theorems for Multivariate Discrete Distributions.Metrika, 47(1):47–69, 1998.

G. Melancon, I. Dutour, and M. Bousquet-Melou.

Random Generation of DAGs for Graph Drawing.Technical Report INS-R0005, Centre for Mathematics and Computer Sciences, Amsterdam, 2000.

K. Sachs, O. Perez, D. Pe’er, D. A. Lauffenburger, and G. P. Nolan.

Causal Protein-Signaling Networks Derived from Multiparameter Single-Cell Data.Science, 308(5721):523–529, 2005.

M. Scutari.

On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion).Bayesian Analysis, 8(3):505–532, 2013.

I. Tsamardinos, L. E. Brown, and C. F. Aliferis.

The Max-Min Hill-Climbing Bayesian Network Structure Learning Algorithm.Machine Learning, 65(1):31–78, 2006.

Marco Scutari University College London

Page 23: On the Prior and Posterior Distributions Used in …On the Prior and Posterior Distributions Used in Graphical Modelling (with discussion). Bayesian Analysis, 8(3):505{532, 2013. I

References

References III

J. Whittaker.

Graphical Models in Applied Multivariate Statistics.Wiley, 1990.

Marco Scutari University College London