SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho

Basic graph
theory          Causal Bayesian Networks
Bayesian
Networks

Inference
                    Fl´vio Code¸o Coelho
                      a        c

                    Oswaldo Cruz Foundation


                     November 1, 2006
Graphs

   Causal
  Bayesian      Sets of elements called vertices, V , that may or may not be
  Networks
                connected to other vertices in the same set by a set of edges,E
Fl´vio Code¸o
  a        c
    Coelho      A graph may be defined uniquely by its set of edges, wich imply
Basic graph     the set of vertices, e.g.E = {W , X , Y , Z }:
theory

Bayesian
Networks
                            G : E = {(W , Z ), (Z , Y ), (Y , X ), (X , Z )}
Inference




                                                                                  1

                by running the above code, you’ll get the following output:

                  [ Y , X , Z , W ][( Y , X ), ( Y , Z ), ( X , Z ), ( Z , W )]

                  1
                      https://networkx.lanl.gov/
Some properties of graphs

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho          Graphs can be directed or undirected;
Basic graph         The order of a graph corresponds to its number of vertices;
theory

Bayesian
                    The size of a graph corresponds to its number of edges;
Networks
                    Vertices connected by an edge are neighbors or adjacent;
Inference
                    The order of a vertex corresponds to its number of
                    neighbors;
                    A path is a list of edges connecting two vertices;
                    A cycle is a path starting and ending in the same vertex;
                    A graph with no cycles is termed acyclic.
Visualizing the graph

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho

Basic graph
theory

Bayesian
Networks
                From the code above we get the following picture:
Inference
Directed Acyclic Graph (DAG)

   Causal
  Bayesian
  Networks
                In directed acyclic graphs we use arrows to represent edges.
Fl´vio Code¸o
  a        c
    Coelho

Basic graph
theory

Bayesian
Networks
                The output:
Inference
DAG properties

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho

Basic graph
                    Parents,children,descendants,ancestors, etc.
theory
                    Root node
Bayesian
Networks            sink node
Inference
                    Every DAG has at least one root and one sink
                    Tree graph: every node has at most one parent
                    Chain graph: every node has at most on child
                    Complete graph: All possible edges exist.
Bayesian Networks

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a
    Coelho
           c    Advantages
                :
Basic graph
theory            1   Convenient means of expressing assumptions
Bayesian
Networks
                  2   economical representation of Joint probabilit functions
Inference         3   Facilitate efficient inferences from observations

                Why Bayesian?
                  1   Subjective nature of input information
                  2   Reliance on Bayes conditioning for updating information
                  3   The distinction between causal and evidential reasoning
Definitions

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho
                Markovian parents (PAj ) P(xj | paj ) = P(xj | x1 , . . . , xj−1 )
Basic graph
theory
                            such that no subset of PAj satisfies the above
Bayesian                    equation.
Networks

Inference
                Markov compatibility If a probability function admits the
                           factorization P(xi | x1 , . . . , xn ) = P(xi | pai )
                           relative to a DAG G we say that G and P are
                           compatible or that P is Markov relative to G .
                 d-separation Z d-separates X and Y iff Z blocks every path
                              from a node in X to a node in Y .
Theorems

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho      Probabilistic Implications of d-separation
                If sets X and Y are d-separated by Z in a DAG G , then X is
Basic graph
theory          independent of Y conditional on Z every distribution
Bayesian        compatible with G . Conversely, if X and Y are not d-separated
Networks
                by Z in a DAG G , then X and Y are dependent conditional on
Inference
                Z in at least one dist. compatible with G .

                Ordered Markov Condition
                A necessary and sufficient condition for a probability
                distribution P to be markovian relative a DAG G is that every
                variable be independent of all its predecessors in some
                oredering of the variables that agrees with the arrows of G .
Theorems, cont.

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho
                Parental Markov Condition
Basic graph     A necessary and sufficient condition for a probability
theory
                distribution P to be markovian relative a DAG G is that every
Bayesian
Networks        variable be independent of all its nondescendants (in G ),
Inference       conditional on its parents.

                Observational Equivalence
                Two DAGs are observationally equivalent if and only if they
                have the same skeletons and the same sets of v-structures, that
                is, two converging arrows whose tails are not connected by an
                arrow.
Inference with Bayesian Networks

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho

Basic graph
theory          In the presence of a set of observations X the posterior
Bayesian        probability:
                                                  s P(y , x, s)
Networks

Inference                          P(y | x) =
                                                 y ,s P(y , x, s)

                can be calculated from a DAG G and the conditional
                probabilities P(xi | pai ) defined on the families of G
Causal Bayesian Networks

   Causal
  Bayesian
  Networks
                    DAGs constructed around Causal, instead of associational
Fl´vio Code¸o
  a        c
    Coelho          information is mor intuitive and more reliable.
Basic graph         Causal relationships are a direct representations of our
theory
                    beliefs
Bayesian
Networks
                    Direct representation of mechanisms
Inference
                    Simple to represent interventions thanks to modularity in
                    the network

                Definition: Causal bayesian network
                Let P(v ) be a probability distribution on a set of V variables,
                and let Px (v ) denote the distributionresulting from the
                intervention do(X = x) that sets a subset X of variables to
                constants x.
Causal Bayesian Networks

   Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c    Definition (cont.): Causal bayesian network
    Coelho
                Denote by P∗ the set of all interventional distributions
Basic graph
theory
                Px (v ), X ⊆ V , including P(v ), which represents no
Bayesian
                intervention (i.e., X = ∅). A DAG G is said to be a causal
Networks
                bayesian network compatible with P∗ if and only if the
Inference
                following three conditions hold for every Px ∈ P∗ :

                  1   Px (v ) is Markov relative to G;
                  2   Px (vi ) = 1 for all Vi ∈ X whenever vi is consistent with
                      X = x;
                  3   Px (vi | pai ) = P(vi | pai ) for all Vi ∈ X whenever pai is
                      consistent with X = x.
Causal
  Bayesian
  Networks

Fl´vio Code¸o
  a        c
    Coelho

Basic graph
theory

Bayesian
Networks
                Thank you!
Inference

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Bayesian networks
Bayesian networksBayesian networks
Bayesian networks
 
Bayesian data analysis
Bayesian data analysisBayesian data analysis
Bayesian data analysis
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
 
Data visualisation & analytics with Tableau
Data visualisation & analytics with Tableau Data visualisation & analytics with Tableau
Data visualisation & analytics with Tableau
 
Shap
ShapShap
Shap
 
Probabilistic Reasoning
Probabilistic ReasoningProbabilistic Reasoning
Probabilistic Reasoning
 
Data Visualization
Data VisualizationData Visualization
Data Visualization
 
Exploratory data analysis
Exploratory data analysis Exploratory data analysis
Exploratory data analysis
 
web mining
web miningweb mining
web mining
 
Exploratory data analysis with Python
Exploratory data analysis with PythonExploratory data analysis with Python
Exploratory data analysis with Python
 
Chapter 10. Cluster Analysis Basic Concepts and Methods.ppt
Chapter 10. Cluster Analysis Basic Concepts and Methods.pptChapter 10. Cluster Analysis Basic Concepts and Methods.ppt
Chapter 10. Cluster Analysis Basic Concepts and Methods.ppt
 
Linear and Logistics Regression
Linear and Logistics RegressionLinear and Logistics Regression
Linear and Logistics Regression
 
Naive Bayes Classifier
Naive Bayes ClassifierNaive Bayes Classifier
Naive Bayes Classifier
 
Naive Bayes Classifier
Naive Bayes ClassifierNaive Bayes Classifier
Naive Bayes Classifier
 
Bayes network
Bayes networkBayes network
Bayes network
 
07 approximate inference in bn
07 approximate inference in bn07 approximate inference in bn
07 approximate inference in bn
 
Decision trees in Machine Learning
Decision trees in Machine Learning Decision trees in Machine Learning
Decision trees in Machine Learning
 
Data visualization
Data visualizationData visualization
Data visualization
 
2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classification
 
Data Visualization in Exploratory Data Analysis
Data Visualization in Exploratory Data AnalysisData Visualization in Exploratory Data Analysis
Data Visualization in Exploratory Data Analysis
 

Ähnlich wie Causal Bayesian Networks

Inference in Bayesian Networks
Inference in Bayesian NetworksInference in Bayesian Networks
Inference in Bayesian Networks
guestfee8698
 
Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]
JULIO GONZALEZ SANZ
 
Ontology-based Data Access with Existential Rules
Ontology-based Data Access with Existential RulesOntology-based Data Access with Existential Rules
Ontology-based Data Access with Existential Rules
RuleML
 

Ähnlich wie Causal Bayesian Networks (20)

Bayesian Networks - A Brief Introduction
Bayesian Networks - A Brief IntroductionBayesian Networks - A Brief Introduction
Bayesian Networks - A Brief Introduction
 
Bayes Nets Meetup Sept 29th 2016 - Bayesian Network Modelling by Marco Scutari
Bayes Nets Meetup Sept 29th 2016 - Bayesian Network Modelling by Marco ScutariBayes Nets Meetup Sept 29th 2016 - Bayesian Network Modelling by Marco Scutari
Bayes Nets Meetup Sept 29th 2016 - Bayesian Network Modelling by Marco Scutari
 
Inference in Bayesian Networks
Inference in Bayesian NetworksInference in Bayesian Networks
Inference in Bayesian Networks
 
Lecture10 xing
Lecture10 xingLecture10 xing
Lecture10 xing
 
Graph Neural Network for Phenotype Prediction
Graph Neural Network for Phenotype PredictionGraph Neural Network for Phenotype Prediction
Graph Neural Network for Phenotype Prediction
 
Bayesian network
Bayesian networkBayesian network
Bayesian network
 
A multithreaded method for network alignment
A multithreaded method for network alignmentA multithreaded method for network alignment
A multithreaded method for network alignment
 
Project3.ppt
Project3.pptProject3.ppt
Project3.ppt
 
Paper Summary of Beta-VAE: Learning Basic Visual Concepts with a Constrained ...
Paper Summary of Beta-VAE: Learning Basic Visual Concepts with a Constrained ...Paper Summary of Beta-VAE: Learning Basic Visual Concepts with a Constrained ...
Paper Summary of Beta-VAE: Learning Basic Visual Concepts with a Constrained ...
 
Iclr2016 vaeまとめ
Iclr2016 vaeまとめIclr2016 vaeまとめ
Iclr2016 vaeまとめ
 
712201907
712201907712201907
712201907
 
DarwicheUAI00.ppt
DarwicheUAI00.pptDarwicheUAI00.ppt
DarwicheUAI00.ppt
 
Pathway Discovery in Cancer: the Bayesian Approach
Pathway Discovery in Cancer: the Bayesian ApproachPathway Discovery in Cancer: the Bayesian Approach
Pathway Discovery in Cancer: the Bayesian Approach
 
Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]
 
Lecture10 - Naïve Bayes
Lecture10 - Naïve BayesLecture10 - Naïve Bayes
Lecture10 - Naïve Bayes
 
A short and naive introduction to using network in prediction models
A short and naive introduction to using network in prediction modelsA short and naive introduction to using network in prediction models
A short and naive introduction to using network in prediction models
 
Estimating Functional Connectomes: Sparsity’s Strength and Limitations
Estimating Functional Connectomes: Sparsity’s Strength and LimitationsEstimating Functional Connectomes: Sparsity’s Strength and Limitations
Estimating Functional Connectomes: Sparsity’s Strength and Limitations
 
Ontology-based Data Access with Existential Rules
Ontology-based Data Access with Existential RulesOntology-based Data Access with Existential Rules
Ontology-based Data Access with Existential Rules
 
Composing graphical models with neural networks for structured representatio...
Composing graphical models with  neural networks for structured representatio...Composing graphical models with  neural networks for structured representatio...
Composing graphical models with neural networks for structured representatio...
 
AI Lesson 29
AI Lesson 29AI Lesson 29
AI Lesson 29
 

Mehr von Flávio Codeço Coelho

Mehr von Flávio Codeço Coelho (20)

Big dengue
Big dengueBig dengue
Big dengue
 
Alerta_Dengue simplified english
Alerta_Dengue simplified englishAlerta_Dengue simplified english
Alerta_Dengue simplified english
 
dengueARS0
dengueARS0dengueARS0
dengueARS0
 
Alerta dengue expo epi out2014
Alerta dengue expo epi out2014Alerta dengue expo epi out2014
Alerta dengue expo epi out2014
 
Alerta dengue abrasco 2014
Alerta dengue   abrasco 2014Alerta dengue   abrasco 2014
Alerta dengue abrasco 2014
 
Sistema de Alerta de Dengue Utilizando Dados Hbridos de Redes Sociais, Moni...
Sistema de Alerta de Dengue Utilizando Dados Hbridos de Redes Sociais, Moni...Sistema de Alerta de Dengue Utilizando Dados Hbridos de Redes Sociais, Moni...
Sistema de Alerta de Dengue Utilizando Dados Hbridos de Redes Sociais, Moni...
 
Alerta dengue: Sistema de alertas de surtos usando dados híbridos
Alerta dengue: Sistema de alertas de surtos usando dados híbridosAlerta dengue: Sistema de alertas de surtos usando dados híbridos
Alerta dengue: Sistema de alertas de surtos usando dados híbridos
 
Mauricio barreto:Big data: how can it help to expand epidemiological investig...
Mauricio barreto:Big data: how can it help to expand epidemiological investig...Mauricio barreto:Big data: how can it help to expand epidemiological investig...
Mauricio barreto:Big data: how can it help to expand epidemiological investig...
 
Fabricio Silva: Cloud Computing Technologies for Genomic Big Data Analysis
Fabricio  Silva: Cloud Computing Technologies for Genomic Big Data AnalysisFabricio  Silva: Cloud Computing Technologies for Genomic Big Data Analysis
Fabricio Silva: Cloud Computing Technologies for Genomic Big Data Analysis
 
Gabriela gomes: Mathematical Modeling and Data Needs
Gabriela gomes: Mathematical Modeling and Data NeedsGabriela gomes: Mathematical Modeling and Data Needs
Gabriela gomes: Mathematical Modeling and Data Needs
 
Carl koppeschaar: Disease Radar: Measuring and Forecasting the Spread of Infe...
Carl koppeschaar: Disease Radar: Measuring and Forecasting the Spread of Infe...Carl koppeschaar: Disease Radar: Measuring and Forecasting the Spread of Infe...
Carl koppeschaar: Disease Radar: Measuring and Forecasting the Spread of Infe...
 
Gabriel laporta: Biodiversity can help prevent malaria outbreaks in tropical ...
Gabriel laporta: Biodiversity can help prevent malaria outbreaks in tropical ...Gabriel laporta: Biodiversity can help prevent malaria outbreaks in tropical ...
Gabriel laporta: Biodiversity can help prevent malaria outbreaks in tropical ...
 
Sander van noort: Influenzanet: self-reporting of influenza-like illness in c...
Sander van noort: Influenzanet: self-reporting of influenza-like illness in c...Sander van noort: Influenzanet: self-reporting of influenza-like illness in c...
Sander van noort: Influenzanet: self-reporting of influenza-like illness in c...
 
Claudia medina: Linking Health Records for Population Health Research in Brazil.
Claudia medina: Linking Health Records for Population Health Research in Brazil.Claudia medina: Linking Health Records for Population Health Research in Brazil.
Claudia medina: Linking Health Records for Population Health Research in Brazil.
 
Mark smolinski big data and public health
Mark smolinski   big data and public healthMark smolinski   big data and public health
Mark smolinski big data and public health
 
Haroldo lopes datasus - Informações em Saúde: história, uso e desafios
Haroldo lopes   datasus - Informações em Saúde: história, uso e desafiosHaroldo lopes   datasus - Informações em Saúde: história, uso e desafios
Haroldo lopes datasus - Informações em Saúde: história, uso e desafios
 
Wim de Grave: Big Data in life sciences
Wim de Grave:  Big Data in life sciencesWim de Grave:  Big Data in life sciences
Wim de Grave: Big Data in life sciences
 
Marco Andreazzi: IBGE research and data collection on health related issues.
Marco Andreazzi: IBGE research and data collection on health related issues.Marco Andreazzi: IBGE research and data collection on health related issues.
Marco Andreazzi: IBGE research and data collection on health related issues.
 
Access to Information, privacy, and health research in Brazil
Access to Information, privacy, and health research in BrazilAccess to Information, privacy, and health research in Brazil
Access to Information, privacy, and health research in Brazil
 
Mining legal texts with Python
Mining legal texts with PythonMining legal texts with Python
Mining legal texts with Python
 

Kürzlich hochgeladen

Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

Causal Bayesian Networks

  • 1. Causal Bayesian Networks Fl´vio Code¸o a c Coelho Basic graph theory Causal Bayesian Networks Bayesian Networks Inference Fl´vio Code¸o Coelho a c Oswaldo Cruz Foundation November 1, 2006
  • 2. Graphs Causal Bayesian Sets of elements called vertices, V , that may or may not be Networks connected to other vertices in the same set by a set of edges,E Fl´vio Code¸o a c Coelho A graph may be defined uniquely by its set of edges, wich imply Basic graph the set of vertices, e.g.E = {W , X , Y , Z }: theory Bayesian Networks G : E = {(W , Z ), (Z , Y ), (Y , X ), (X , Z )} Inference 1 by running the above code, you’ll get the following output: [ Y , X , Z , W ][( Y , X ), ( Y , Z ), ( X , Z ), ( Z , W )] 1 https://networkx.lanl.gov/
  • 3. Some properties of graphs Causal Bayesian Networks Fl´vio Code¸o a c Coelho Graphs can be directed or undirected; Basic graph The order of a graph corresponds to its number of vertices; theory Bayesian The size of a graph corresponds to its number of edges; Networks Vertices connected by an edge are neighbors or adjacent; Inference The order of a vertex corresponds to its number of neighbors; A path is a list of edges connecting two vertices; A cycle is a path starting and ending in the same vertex; A graph with no cycles is termed acyclic.
  • 4. Visualizing the graph Causal Bayesian Networks Fl´vio Code¸o a c Coelho Basic graph theory Bayesian Networks From the code above we get the following picture: Inference
  • 5. Directed Acyclic Graph (DAG) Causal Bayesian Networks In directed acyclic graphs we use arrows to represent edges. Fl´vio Code¸o a c Coelho Basic graph theory Bayesian Networks The output: Inference
  • 6. DAG properties Causal Bayesian Networks Fl´vio Code¸o a c Coelho Basic graph Parents,children,descendants,ancestors, etc. theory Root node Bayesian Networks sink node Inference Every DAG has at least one root and one sink Tree graph: every node has at most one parent Chain graph: every node has at most on child Complete graph: All possible edges exist.
  • 7. Bayesian Networks Causal Bayesian Networks Fl´vio Code¸o a Coelho c Advantages : Basic graph theory 1 Convenient means of expressing assumptions Bayesian Networks 2 economical representation of Joint probabilit functions Inference 3 Facilitate efficient inferences from observations Why Bayesian? 1 Subjective nature of input information 2 Reliance on Bayes conditioning for updating information 3 The distinction between causal and evidential reasoning
  • 8. Definitions Causal Bayesian Networks Fl´vio Code¸o a c Coelho Markovian parents (PAj ) P(xj | paj ) = P(xj | x1 , . . . , xj−1 ) Basic graph theory such that no subset of PAj satisfies the above Bayesian equation. Networks Inference Markov compatibility If a probability function admits the factorization P(xi | x1 , . . . , xn ) = P(xi | pai ) relative to a DAG G we say that G and P are compatible or that P is Markov relative to G . d-separation Z d-separates X and Y iff Z blocks every path from a node in X to a node in Y .
  • 9. Theorems Causal Bayesian Networks Fl´vio Code¸o a c Coelho Probabilistic Implications of d-separation If sets X and Y are d-separated by Z in a DAG G , then X is Basic graph theory independent of Y conditional on Z every distribution Bayesian compatible with G . Conversely, if X and Y are not d-separated Networks by Z in a DAG G , then X and Y are dependent conditional on Inference Z in at least one dist. compatible with G . Ordered Markov Condition A necessary and sufficient condition for a probability distribution P to be markovian relative a DAG G is that every variable be independent of all its predecessors in some oredering of the variables that agrees with the arrows of G .
  • 10. Theorems, cont. Causal Bayesian Networks Fl´vio Code¸o a c Coelho Parental Markov Condition Basic graph A necessary and sufficient condition for a probability theory distribution P to be markovian relative a DAG G is that every Bayesian Networks variable be independent of all its nondescendants (in G ), Inference conditional on its parents. Observational Equivalence Two DAGs are observationally equivalent if and only if they have the same skeletons and the same sets of v-structures, that is, two converging arrows whose tails are not connected by an arrow.
  • 11. Inference with Bayesian Networks Causal Bayesian Networks Fl´vio Code¸o a c Coelho Basic graph theory In the presence of a set of observations X the posterior Bayesian probability: s P(y , x, s) Networks Inference P(y | x) = y ,s P(y , x, s) can be calculated from a DAG G and the conditional probabilities P(xi | pai ) defined on the families of G
  • 12. Causal Bayesian Networks Causal Bayesian Networks DAGs constructed around Causal, instead of associational Fl´vio Code¸o a c Coelho information is mor intuitive and more reliable. Basic graph Causal relationships are a direct representations of our theory beliefs Bayesian Networks Direct representation of mechanisms Inference Simple to represent interventions thanks to modularity in the network Definition: Causal bayesian network Let P(v ) be a probability distribution on a set of V variables, and let Px (v ) denote the distributionresulting from the intervention do(X = x) that sets a subset X of variables to constants x.
  • 13. Causal Bayesian Networks Causal Bayesian Networks Fl´vio Code¸o a c Definition (cont.): Causal bayesian network Coelho Denote by P∗ the set of all interventional distributions Basic graph theory Px (v ), X ⊆ V , including P(v ), which represents no Bayesian intervention (i.e., X = ∅). A DAG G is said to be a causal Networks bayesian network compatible with P∗ if and only if the Inference following three conditions hold for every Px ∈ P∗ : 1 Px (v ) is Markov relative to G; 2 Px (vi ) = 1 for all Vi ∈ X whenever vi is consistent with X = x; 3 Px (vi | pai ) = P(vi | pai ) for all Vi ∈ X whenever pai is consistent with X = x.
  • 14. Causal Bayesian Networks Fl´vio Code¸o a c Coelho Basic graph theory Bayesian Networks Thank you! Inference