Download presentation

Presentation is loading. Please wait.

Published byMelissa Glass Modified over 3 years ago

1
An Introduction to Causal Modeling and Discovery Using Graphical Models Greg Cooper University of Pittsburgh

2
Overview Introduction Introduction Representation Representation Inference Inference Learning Learning Evaluation Evaluation

3
What Is Causality? Much consideration in philosophy Much consideration in philosophy I will treat it as a primitive I will treat it as a primitive Roughly, if we manipulate something and something else changes, then the former causally influences the latter. Roughly, if we manipulate something and something else changes, then the former causally influences the latter.

4
Why is Causation Important? Causal issues arise in most fields including medicine, business, law, economics, and the sciences Causal issues arise in most fields including medicine, business, law, economics, and the sciences An intelligent agent is continually considering what to do next in order to change the world (including the agents own mind). That is a causal question. An intelligent agent is continually considering what to do next in order to change the world (including the agents own mind). That is a causal question.

5
Representing Causation Using Causal Bayesian Networks A causal Bayesian network (CBN) represents some entity (e.g., a patient) that we want to model causally A causal Bayesian network (CBN) represents some entity (e.g., a patient) that we want to model causally Features of the entity are represented by variables/nodes in the CBN Features of the entity are represented by variables/nodes in the CBN Direct causation is represented by arcs Direct causation is represented by arcs

6
An Example of a Causal Bayesian Network Structure History of Smoking (HS) Lung Cancer (LC)Chronic Bronchitis (CB) Fatigue (F)Weight Loss (WL)

7
An Example of the Accompanying Causal Bayesian Network Parameters P(HS = no) = 0.80P(HS = yes) = 0.20 P(CB = absent | HS = no) = 0.95P(CB = present | HS = no) = 0.05 P(CB = absent | HS = yes) = 0.75P(CB = present | HS = yes) = 0.25 P(LC = absent | HS = no) = 0.99995P(LC = present | HS = no) = 0.00005 P(LC = absent | HS = yes) = 0.997P(LC = present | HS = yes) = 0.003

8
Causal Markov Condition A node is independent of its non-effects given just its direct causes. A node is independent of its non-effects given just its direct causes. This is the key representational property of causal Bayesian networks. This is the key representational property of causal Bayesian networks. Special case: A node is independent of its distant causes given just its direct causes. Special case: A node is independent of its distant causes given just its direct causes. General notion: Causality is local General notion: Causality is local

9
Causal Modeling Framework An underlying process generates entities that share the same causal network structure. The entities may have different parameters (probabilities). An underlying process generates entities that share the same causal network structure. The entities may have different parameters (probabilities). Each entity independently samples the joint distribution defined by its CBN to generate values (data) for each variable in the CBN model Each entity independently samples the joint distribution defined by its CBN to generate values (data) for each variable in the CBN model

10
Entity Generator HS 1 LC 1 WL 1 HS 2 LC 2 WL 2 HS 3 LC 3 WL 3 (no, absent, absent) existing entities entity feature values samples (yes, present, present)(yes, absent, absent) (no, absent, absent) (yes, absent, absent)

11
Discovering the Average Causal Bayesian Network HS avg LC avg WL avg

12
Some Key Types of Causal Relationships HS LC HS WL Direct Causation Indirect Causation Confounding HS LC CB WLF Sampled = true Sampling bias

13
Inference Using a Single CBN When Given Evidence in the Form of Observations History of Smoking (HS) Lung Cancer (LC)Chronic Bronchitis (CB) Fatigue (F)Weight Loss (WL) P(F | CB = present, WL = present, CBN 1 )

14
Inference The Markov Condition implies the following equation: The Markov Condition implies the following equation: The above equation specifies the full joint probability distribution over the model variables. The above equation specifies the full joint probability distribution over the model variables. From the joint distribution we can derive any conditional probability of interest. From the joint distribution we can derive any conditional probability of interest.

15
Inference Algorithms In the worst case, the brute force algorithm is exponential time in the number of variables in the model In the worst case, the brute force algorithm is exponential time in the number of variables in the model Numerous exact inference algorithms have been developed that exploit independences among the variables in the causal Bayesian network. Numerous exact inference algorithms have been developed that exploit independences among the variables in the causal Bayesian network. However, in the worst case, these algorithms are exponential time. However, in the worst case, these algorithms are exponential time. Inference in causal Bayesian networks is NP-hard (Cooper, AIJ, 1990). Inference in causal Bayesian networks is NP-hard (Cooper, AIJ, 1990).

16
Inference Using a Single CBN When Given Evidence in the Form of Manipulations P(F | M CB = present, CBN 1 ) Let M CB be a new variable that can have the same values as CB (present, absent) plus the value observe. Add an arc from M CB to CB. Define the probability distribution of CB given its parents.

17
Inference Using a Single CBN When Given Evidence in the Form of Manipulations History of Smoking (HS) Lung Cancer (LC)Chronic Bronchitis (CB) Fatigue (F)Weight Loss (WL) P(F | M CB = present, CBN 1 ) M CB

18
A Deterministic Manipulation History of Smoking (HS) Lung Cancer (LC)Chronic Bronchitis (CB) Fatigue (F)Weight Loss (WL) P(F | M CB = present), CBN 1 ) M CB

19
Inference Using a Single CBN When Given Evidence in the Form of Observations and Manipulations History of Smoking (HS) Lung Cancer (LC)Chronic Bronchitis (CB) Fatigue (F)Weight Loss (WL) P(F | M CB = present, WL = present, CBN 1 ) M CB

20
Inference Using Multiple CBNs: Model Averaging

21
Some Key Reasons for Learning CBNs Scientific discovery among measured variables Scientific discovery among measured variables Example of general: What are the causal relationships among HS, LC, CB, F, and WL? Example of general: What are the causal relationships among HS, LC, CB, F, and WL? Example of focused: What are the causes of LC from among HS, CB, F, and WL? Example of focused: What are the causes of LC from among HS, CB, F, and WL? Scientific discovery of hidden processes Scientific discovery of hidden processes Prediction Prediction Example: The effect of not smoking on contracting lung cancer Example: The effect of not smoking on contracting lung cancer

22
Major Methods for Learning CBNs from Data Constraint-based methods Constraint-based methods Uses tests of independence to find patterns of relationships among variables that support causal relationships Uses tests of independence to find patterns of relationships among variables that support causal relationships Relatively efficient in discovery of causal models with hidden variables Relatively efficient in discovery of causal models with hidden variables See talk by Frederick Eberhardt this morning See talk by Frederick Eberhardt this morning Score-based methods Bayesian scoring Score-based methods Bayesian scoring Allows informative prior probabilities of causal structure and parameters Allows informative prior probabilities of causal structure and parameters Non-Bayesian scoring Non-Bayesian scoring Does not allow informative prior probabilities Does not allow informative prior probabilities

23
Learning CBNs from Observational Data: A Bayesian Formulation where D is observational data, S i is the structure of CBN i, and K is background knowledge and belief.

24
Learning CBNs from Observational Data When There Are No Hidden Variables where i are the parameters associated with S i and the sum is over all CBNs for which P(S j | K) > 0.

25
The BD Marginal Likelihood The previous integral has the following closed form solution, when we assume Dirichlet priors ( ijk and ij ), multinomial likelihoods (N ijk and N ij denote counts), parameter independence, and parameter modularity: The previous integral has the following closed form solution, when we assume Dirichlet priors ( ijk and ij ), multinomial likelihoods (N ijk and N ij denote counts), parameter independence, and parameter modularity:

26
Searching for Network Structures Greedy search often used Greedy search often used Hybrid methods have been explored that constraints and scoring Hybrid methods have been explored that constraints and scoring Some algorithms guarantee locating the generating model in the large sample limit (assuming Markov and Faithfulness conditions), as for example the GES algorithm (Chickering, JMLR, 2002) Some algorithms guarantee locating the generating model in the large sample limit (assuming Markov and Faithfulness conditions), as for example the GES algorithm (Chickering, JMLR, 2002) The ability to approximate the generating network is often quite good The ability to approximate the generating network is often quite good An excellent discussion and evaluation of several state- of-the-art methods, including a relatively new method (Max-Min Hill Climbing) is at: An excellent discussion and evaluation of several state- of-the-art methods, including a relatively new method (Max-Min Hill Climbing) is at: Tsamardinos, Brown, Aliferis, Machine Learning, 2006.

27
The Complexity of Search Given a complete dataset and no hidden variables, locating the Bayesian network structure that has the highest posterior probability is NP-hard (Chickering, AIS, 1996; Chickering, et al, JMLR, 2004). Given a complete dataset and no hidden variables, locating the Bayesian network structure that has the highest posterior probability is NP-hard (Chickering, AIS, 1996; Chickering, et al, JMLR, 2004).

28
We Can Learn More from Observational and Experimental Data Together than from Either One Alone EC H We cannot learn the above causal structure from observational or experimental data alone. We need both.

29
Learning CBNs from Observational Data When There Are Hidden Variables where H i (H j ) are the hidden variables in S i (S j ) and the sum in the numerator (denominator) is taken over all values of H i (H j ).

30
Learning CBNs from Observational and Experimental Data: A Bayesian Formulation For each model variable X i that is experimentally manipulated in at least one case, introduce a potential parent M X i of X i. X i can have parents as well from among the other {X 1,..., X i-1, X i+1,..., X n } domain variables in the model. Priors on the distribution of X i will include conditioning on M X i,when it is a parent of X i, as well as conditioning on the other parents of X i. Define M X i to have the same values v i1, v i2,..., v iq as X i, plus a value o (for observe). o When M X i has value v ij in a given case, this represents that the experimenter intended to manipulate X i to have value v ij in the case. o When M X i has value observe in a given case, this represents that no attempt was made by the experimenter to manipulate X i, but rather, X i was merely observed to have the value recorded for it. With the above variable additions in place, use the previous Bayesian methods for causal modeling from observational data.

31
An Example Database Containing Observations and Manipulations HSM CB CBLCFWL TobsTFTT FFFTTF FFTTFF T FFTF

32
Faithfulness Condition Faithfulness Condition Faithfulness Condition Any independence among variables in the data generating distribution follows from the Markov Condition applied to the data generating causal structure. A simple counter example: A simple counter example: EC H

33
Challenges of Bayesian Learning of Causal Networks Major challenges Major challenges Large search spaces Large search spaces Hidden variables Hidden variables Feedback Feedback Assessing parameter and structure priors Assessing parameter and structure priors Modeling complicated distributions Modeling complicated distributions The remainder of this talk will summarize several methods for dealing with hidden variables, which is arguably the biggest major challenge today The remainder of this talk will summarize several methods for dealing with hidden variables, which is arguably the biggest major challenge today These examples provide only a small sample of previous research These examples provide only a small sample of previous research

34
Learning Belief Networks in the Presence of Missing Values and Hidden Variables (N. Friedman, ICML, 1997) Assumes a fixed set of measured and hidden variables Assumes a fixed set of measured and hidden variables Uses Expectation Maximization (EM) to fill in the values of the hidden variable Uses Expectation Maximization (EM) to fill in the values of the hidden variable Uses BIC to score causal network structures with the filled-in data. Greedily finds best structure and then returns to the EM step using this new structure. Uses BIC to score causal network structures with the filled-in data. Greedily finds best structure and then returns to the EM step using this new structure. Some subsequent work Some subsequent work Use patterns of induced relationships among the measured variables to suggest where to introduce hidden variables (Elidan, et al., NIPS, 2000) Use patterns of induced relationships among the measured variables to suggest where to introduce hidden variables (Elidan, et al., NIPS, 2000) Determining the cardinality of the hidden variables introduced (Elidan & Friedman, UAI, 2001) Determining the cardinality of the hidden variables introduced (Elidan & Friedman, UAI, 2001)

35
A Non-Parametric Bayesian Methods for Inferring Hidden Causes (Wood, et al., UAI, 2006) Learns hidden causes of measured variables Learns hidden causes of measured variables Assumes binary variables and noisy-OR interactions Assumes binary variables and noisy-OR interactions Uses MCMC to sample the hidden structures Uses MCMC to sample the hidden structures Allows in principle an infinite number of hidden variables Allows in principle an infinite number of hidden variables In practice, the number of optimal hidden variables is constrained by the measured data In practice, the number of optimal hidden variables is constrained by the measured data hidden variables measured variables

36
Bayesian Learning of Measurement and Structural Model (Silva & Scheines, ICML, 2006) Learns the following type of models Learns the following type of models Assumes continuous variables, mixture of Gaussian distributions, and linear interactions Assumes continuous variables, mixture of Gaussian distributions, and linear interactions hidden variables measured variables

37
Mixed Ancestral Graphs * A MAG(G) is a graphical object that contains only the observed variables, causal arcs, and a new relationship for representing hidden confounding. A MAG(G) is a graphical object that contains only the observed variables, causal arcs, and a new relationship for representing hidden confounding. There exist methods for scoring linear MAGS (Richardson & Spirtes Ancestral Graph Markov Models, Annals of Statistics, 2002) There exist methods for scoring linear MAGS (Richardson & Spirtes Ancestral Graph Markov Models, Annals of Statistics, 2002) SES SEX PE CP SEX PE CP IQ IQ SES SEX PE CP SEX PE CP IQ IQ L1L1L1L1 L2L2L2L2 Latent Variable DAG Corresponding MAG * This slide was adapted from a slide provided by Peter Spirtes.

38
(Mani, Spirtes, Cooper, UAI, 2006) A Theoretical Study of Y Structures for Causal Discovery (Mani, Spirtes, Cooper, UAI, 2006) Learn a Bayesian network structure on the measured variables Learn a Bayesian network structure on the measured variables Identify patterns in the structure that suggest causal relationships Identify patterns in the structure that suggest causal relationships The Y structure shown in green supports that D is an unconfounded cause of F. The Y structure shown in green supports that D is an unconfounded cause of F. A B C D E F

39
Causal Discovery Using Subsets of Variables Search for an estimate M of the Markov blanket of a variable X (e.g., Aliferis, et al., AMIA, 2002) Search for an estimate M of the Markov blanket of a variable X (e.g., Aliferis, et al., AMIA, 2002) X is independent of other variables in the generating causal network model, conditioned on the variables in Xs Markov blanket X is independent of other variables in the generating causal network model, conditioned on the variables in Xs Markov blanket Within M search for patterns among the variables that suggest a causal relationship to X (e.g., Mani, doctoral dissertation, Un. of Pittsburgh, 2006) Within M search for patterns among the variables that suggest a causal relationship to X (e.g., Mani, doctoral dissertation, Un. of Pittsburgh, 2006)

40
Causal Identifiability Generally depends upon Generally depends upon Markov Condition Markov Condition Faithfulness Condition Faithfulness Condition Informative structural relationships among the measured variables Informative structural relationships among the measured variables Example of the Y structure: Example of the Y structure: C E AB

41
Evaluation of Causal Discovery In evaluating a classifier, the correct answer in any instance is just the value of some variable of interest, which typically is explicitly in the data set. This make evaluation relatively straightforward. In evaluating a classifier, the correct answer in any instance is just the value of some variable of interest, which typically is explicitly in the data set. This make evaluation relatively straightforward. In evaluating the output of a causal discovery algorithm, the answer is not in the dataset. In general we need some outside knowledge to confirm that the causal output is correct. This makes evaluation relatively difficult. Thus, causal discovery algorithms have not been thoroughly evaluated. In evaluating the output of a causal discovery algorithm, the answer is not in the dataset. In general we need some outside knowledge to confirm that the causal output is correct. This makes evaluation relatively difficult. Thus, causal discovery algorithms have not been thoroughly evaluated.

42
Methods for Evaluating Causal Discovery Algorithms Simulated data Simulated data Real data with expert judgments of causation Real data with expert judgments of causation Real data with previously validated causal relationships Real data with previously validated causal relationships Real data with follow up experiments Real data with follow up experiments

43
An Example of an Evaluation Using Simulated Data (Mani, poster here) Generated 20,000 observational data samples from each of five CBNs that were manually constructed Generated 20,000 observational data samples from each of five CBNs that were manually constructed Applied the BLCD algorithm, which considers many 4- variable subsets of all the variables and applies Bayesian scoring. It is based on the causal properties of Y structures. Applied the BLCD algorithm, which considers many 4- variable subsets of all the variables and applies Bayesian scoring. It is based on the causal properties of Y structures. Results Results Precision: 83% Precision: 83% Recall: 27% Recall: 27%

44
An Example of an Evaluation Using Previously Validated Causal Relationships (Yoo, et al., PSB, 2002) ILVS is a Bayesian method that considers pairwise relationships among a set of variables ILVS is a Bayesian method that considers pairwise relationships among a set of variables It works best when given both observational and experimental data It works best when given both observational and experimental data ILVS was applied to a previously collected DNA microarray dataset on 9 genes that control galactose metabolism in yeast (Ideker, et al., Science, 2001) The causal relationships among the genes have been extensively studied and reported in the literature. ILVS was applied to a previously collected DNA microarray dataset on 9 genes that control galactose metabolism in yeast (Ideker, et al., Science, 2001) The causal relationships among the genes have been extensively studied and reported in the literature. ILVS predicted 12 of 27 known causal relationships among the genes (44% recall) and of those 12 eight were correct (67% precision) ILVS predicted 12 of 27 known causal relationships among the genes (44% recall) and of those 12 eight were correct (67% precision) Yoo has explored numerous extensions to ILVS Yoo has explored numerous extensions to ILVS

45
An Example of an Evaluation Using Real Data with Follow Up Experiments (Sachs, et al., Science, 2005) Experimentally manipulated human immune system cells Experimentally manipulated human immune system cells Used flow cytometry to measure the effects on 11 proteins and phospholipids on a large number of individual cells Used flow cytometry to measure the effects on 11 proteins and phospholipids on a large number of individual cells Used a Bayesian method for causally learning from observational and experimental data Used a Bayesian method for causally learning from observational and experimental data Derived 17 causal relationships with high probability Derived 17 causal relationships with high probability 15 highly supported by the literature (precision = 15/17 = 88%) 15 highly supported by the literature (precision = 15/17 = 88%) The other two were confirmed experimentally by the authors (precision = 17/17 = 100%) The other two were confirmed experimentally by the authors (precision = 17/17 = 100%) Three causal relationships were missed (recall = 17 /20 = 85%) Three causal relationships were missed (recall = 17 /20 = 85%)

46
A Possible Approach to Combining Causal Discovery and Feature Selection 1. Use prior knowledge and statistical associations to develop overlapping groups of features (variables) 2. Derive causal probabilistic relationships within groups 3. Have the causal groups constrain each other 4. Determine additional groups of features that might constrain causal relationships further 5. Either go to step 2 or step 6 6. Model average within and across groups to derive approximate model-averaged causal relationships David Danks 2002. Learning the Causal Structure of Overlapping Variable Sets. In S. Lange, K. Satoh, & C.H. Smith, eds. Discovery Science: Proceedings of the 5th International Conference. Berlin: Springer-Verlag. pp. 178-191.

47
Some Suggestions for Further Information Books Books Glymour, Cooper (eds), Computation, Causation, and Discovery (MIT Press, 1999) Glymour, Cooper (eds), Computation, Causation, and Discovery (MIT Press, 1999) Pearl, Causality: Models, Reasoning, and Inference (Cambridge University Press, 2000) Pearl, Causality: Models, Reasoning, and Inference (Cambridge University Press, 2000) Spirtes, Glymour, Scheines, Causation, Prediction, and Search (MIT Press, 2001) Spirtes, Glymour, Scheines, Causation, Prediction, and Search (MIT Press, 2001) Neapolitan, Learning Bayesian Networks (Prentice Hall, 2003) Neapolitan, Learning Bayesian Networks (Prentice Hall, 2003) Conferences Conferences UAI, ICML, NIPS, AAAI, IJCAI UAI, ICML, NIPS, AAAI, IJCAI Journals Journals JMLR, Machine Learning JMLR, Machine Learning

48
Acknowledgement Thanks to Peter Spirtes for his comments on an outline of this talk

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google