SlideShare a Scribd company logo
1 of 59
Agenda
Why do you need PGMs?
What is a PGM?
Bayesian Networks
Markov’s Random Fields
Use-Cases
Belief Networks in MRF
PGMs & Neural Networks
01
02
03
04
05
06
07
Why do you need PGMs?
Why do you need
Probabilistic Graphical
Models?
Probabilistic Graphical Models are rich frameworks for encoding
probability distributions over complex domains.
Compact Graphical Representation
PGM are frameworks used to create and
represent compact graphical models of complex
real world scenarios
01
Intuitive Diagrams of Complex Relationships
PGMs give us intuitive diagrams of complex
relationships between stochastic variables.
02
Convenient from Computational Aspect
PGMs are also convenient from computational
point of view, since we already have algorithms
for working with graphs and statistics.
03
Dynamic Simulation of Models
Using PGM we can simulate dynamics of
industrial establishments, create models, and
many other things.
04
What is a PGM?
What is a Probabilistic
Graphical Model?
WC
G
P
Consider you have 4 binary(Yes/No) variables.
Spot in the World Cup(Yes/No)
Performance in the Pre WC Tour (Yes/No)
Good Genetics(Yes/No)
F Good Form(Yes/No)
What is a Probabilistic
Graphical Model?
Consider you have 4 binary(Yes/No) variables.
WC
G
P
F
What is a Probabilistic
Graphical Model?
Components of a Graphical Model
Nodes = Random Variables
WC
G
P
F
What is a Probabilistic
Graphical Model?
Components of a Graphical Model
Edges = Inter-Nodal Dependencies
What is a Probabilistic
Graphical Model?
So, What is a PGM?
P
M
G
Probabilistic
Graphical
Models
What is a Probabilistic
Graphical Model?
So, What is a PGM?
P Probabilistic
G M
The nature of the problem that we are generally interested to
solve or the type of queries we want to make are all
probabilistic because of uncertainty. There are many reasons
that contributes to it.
What is a Probabilistic
Graphical Model?
So, What is a PGM?
P
M
G
Probabilistic
Graphical
Models
What is a Probabilistic
Graphical Model?
So, What is a PGM?
G Graphical
P M
Graphical representation helps us to visualise better and
So, we use Graph Theory to reduce the no of relevant
combinations of all the participating variables to represent
the high dimensional probability distribution model more
compactly.
What is a Probabilistic
Graphical Model?
So, What is a PGM?
P
M
G
Probabilistic
Graphical
Models
What is a Probabilistic
Graphical Model?
So, What is a PGM?
M Models
P G
A Model is a declarative representation of a real world
scenario or a problem that we want to analysis. It is
represented by using any mathematical tools like graph or
even simply by an equation.
What is a Probabilistic
Graphical Model?
So, What is a PGM?
P
M
G
Probabilistic
Graphical
Models
What is a Probabilistic
Graphical Model?
So, What is a PGM?
P G M
Probabilistic Graphical Models (PGM) is a technique of
compactly representing a joint distribution by exploiting
dependencies between the random variables. It also allows us
to do inference on joint distributions in a computationally
cheaper way than the traditional methods.
What is a Probabilistic
Graphical Model?
Probability
A
A
A
A
A
B
B
B
B
B
B
C
C
C
C
C
C
What is the Probability of A?
Solution:
• Count all As and Divide it by Total number of Possibilities.
• P(A) = (#A)/(#A+#B+#C)
What is a Probabilistic
Graphical Model?
Conditional Probability
A
A
A A
B
B
B
B
B
What is the Probability of A&B?
Solution:
• B should occur when A is already happening.
• P(A&B) = P(A) * P(B|A) or P(B) * P(A|B).
What is a Probabilistic
Graphical Model?
Joint, Probability and Marginal Distributions
• The Joint Probability Distribution describes how two or more
variables are distributed simultaneously. To get a probability from
the joint distribution of A and B, you would consider P(A=a and
B=b).
• The Conditional Probability Distribution looks at how the
probabilities of A are distributed, given a certain value, say, for B,
P(A=a| B=b).
• The Marginal Probability Distribution is one that results from
taking mean over one variable to get the probability distribution of
the other.
For Example, the marginal probability distribution of A when A & B
are related would be given by the following;
‫׬‬𝑩
P(a|b) P(b)db
Bayesian Networks
Bayesian Networks
Bayesian Probability
A
A
A A
B
B
B
B
B
P(One Event | Another Event)
We have seen earlier:
• P(A&B) = P(A) * P(B|A) or P(B) * P(A|B)
From here, we could isolate either P(B|A) or P(A|B) and
compute from simpler probabilities.
Bayesian Networks
Bayes Theorem
A
A
A A
B
B
B
B
B
We have seen earlier:
• P(A|B) = P(B|A) * P(A)/P(B)
• P(B|A) = P(A|B) * P(B)/P(A)
Bayesian Networks
Bayes Network
A Bayes Network is a structure that can be represented as a
Direct Acyclic Graph.
1. It allows a compact representation of the distribution from
the chain rule of Bayes Networks.
2. It observes conditional independence relationships
between random variables.
WC
G
P
F
A DAG(Direct Acyclic Graph) is a finite
directed graph with no directed cycles.
Bayesian Networks
Bayes Theorem : Example
WC
G
P
F
Genes P(Genes)
Good 0.2
Bad 0.8
In Form P(Form)
Yes 0.7
No 0.3
Condition No
Spot
Spot
given
Bad
Performance
0.95 0.05
Okay
Performance
0.8 0.2
Brilliant
Performance
0.5 0.5
Condition Bad Okay Brilliant
Good Genes,
Good Form
0.5 0.3 0.2
Good Genes,
Bad Form
0.8 0.15 0.05
Bad Genes,
Good Form
0.8 0,1 0.1
Bad Genes,
Bad Form
0.9 0.08 0.02
Bayesian Networks
Bayes Theorem : Example
WC
G
P
F
What should you think about?
• Does a spot in the WC team depend on
Genetics?
• Does a spot in the WC team depend on
Genetics if you know someone is in good
form?
• Does a spot in the WC team depend on
Genetics if you know the performance in
the Pre WC Tour?
Bayesian Networks
Bayes Theorem : Example
WC
G
P
F
How this works.
• Each node in the Bayes Network will
have a CPD associated with it.
• If the node has parents, the associated
CPD represents P(value| parent’s value)
• If a node has no parents, the CPD
represents P(value), the unconditional
probability of the value.
Markov’s Random Fields
Markov’s Random Fields
Undirected Graphical Models
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E)
Probability Distribution of the variables in the graph can
factorised as individual clique potential functions.
Markov’s Random Fields
Cliques
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E)
P(X) =
1
𝑍
ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
Markov’s Random Fields
Cliques
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E)
P(X) =
1
𝑍
ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
Markov’s Random Fields
Cliques
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E)
P(X) =
1
𝑍
ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
Markov’s Random Fields
Cliques
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E)
P(X) =
1
𝑍
ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
Markov’s Random Fields
Cliques
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E)
P(X) =
1
𝑍
ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
Markov’s Random Fields
Cliques
B CA
ED
• P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C,D) ϕ(C,D,E)
P(X) =
1
𝑍
ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
Markov’s Random Fields
Markov Random Fields
B CA
ED
• Paths between A and C ;
A-B-C
A-B-D-E-C
Markov’s Random Fields
Markov Random Fields
B CA
ED
• Paths between A and C ;
A-B-C
A-B-D-E-C
Markov’s Random Fields
Markov Random Fields
B CA
ED
• Any two subsets of variables are conditionally independent,
given a separating subset.
• {B,D},{B,E} & {B,D,E} are the separating subsets.
Use- Cases
Use Cases
Applications of PGMs
Google is based on a very
simple graph algorithm
called page rank.
Netflix, Amazon, Facebook
all use PGMs to
recommend what is best for
you.
Use Cases
PGMs can also apparently
infer whether one is a Modi
Supporter or Kejriwal
Supporter.
FiveThirtyEight is a company
that makes predictions about
American Presidential Polls using
PGMs.
Applications of PGMs
Bayesian Networks &
Markov Random Fields
Belief Networks &
Markov Random Fields
Bayes Nets as MRFs
BA
BA
Bayes Network
MRF
P(A,B) = P(A) * P(B|A)
P(A,B) ∝ ϕ(A,B)
Belief Networks &
Markov Random Fields
Bayes Nets as MRFs
Bayes Network
MRF
P(A,B) = P(A)P(B|A)P(C|B)
P(A,B) ∝ ϕ(A,B) ϕ(B,C)
BA C
BA C
Belief Networks &
Markov Random Fields
Bayes Nets as MRFs : Chains
Bayes Network
MRF
P(A,B,C) = P(A)P(B|A)P(C|B)
P(A,B,C) ∝ ϕ(A,B) ϕ(B,C)
ϕ(A,B) ← P(A)P(B|A)
ϕ(B,C) ← P(C|B)
Parameterization is not unique
BA C
BA C
Belief Networks &
Markov Random Fields
Bayes Nets as MRFs : Shared Parents
Bayes Network
MRF
P(A,B,C) = P(A)P(B|A)P(C|B)
P(A,B,C) ∝ ϕ(A,B) ϕ(A,C)
ϕ(A,B) ← P(A)P(B|A)
ϕ(A,C) ← P(C|A)
B
A
C
B
A
C
Belief Networks &
Markov Random Fields
Bayes Nets as MRFs : Shared Child
Bayes Network
MRF
P(A,B,C) = P(A)P(B)P(C|A,B)
A and B are dependent given C
P(A,B,C) ∝ ϕ(A,C) ϕ(B,C)
A and B are independent given C
C
A B
C
A B
Belief Networks &
Markov Random Fields
Converting Bayes Nets to MRFs : Moralizing Parents
P(A,B,C) ∝ ϕ(A,C) ϕ(B,C)
A and B are independent given C
C
A B
• Moralize all co-parents.
• Lose marginal independence of parents
undirecteddirected
PGMs and Neural Networks
PGMs & Neural
Networks
The Boyfriend Problem
PGMs & Neural
Networks
The Boyfriend Problem
PGMs & Neural
Networks
The Boyfriend Problem
PGMs & Neural
Networks
The Boyfriend Problem
• N common friends
• N bit vector = {0,1,0,1,…} ; 1 is a boost, 0 means no contact
• Objective : find the set of friends that I should ask to boost me,
i.e. the best vector.
PGMs & Neural
Networks
Solution 1 : Neural Networks
Yes/No
More Friends/
Happening Social
Life(M)
Me
Friends(N)
PGMs & Neural
Networks
Solution 1 : Neural Networks
More Friends/
Happening Social
Life(M)
Yes/No
Friends(N)
Me
PGMs & Neural
Networks
Solution 1 : Neural Networks
But, Why?
Me
PGMs & Neural
Networks
Solution 2 : Probabilistic Graphical Models
Approval
from N
Friends/
Observation
from N
nodes
Me
0
1
0
1
0
0
1
1
Date Acceptance/
Observable Event
Impression/
Random Variable
PGMs & Neural
Networks
Solution 2 : Probabilistic Graphical Models
Date Acceptance/
Observable Event
Approval
from N
Friends/
Observation
from N nodes
Me
Impression/ Random
Variable
P(impression| vector of all approvals) ← P(approval from friend i| impression)
P(all approvals| impression) = product of all P(approval i | impression)
Graphical Models In Python | Edureka

More Related Content

What's hot

Cloud Computing and Amazon Web Services
Cloud Computing and Amazon Web ServicesCloud Computing and Amazon Web Services
Cloud Computing and Amazon Web ServicesAditya Jha
 
Network embedding
Network embeddingNetwork embedding
Network embeddingSOYEON KIM
 
Introduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingIntroduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingAmazon Web Services
 
Serverless Architecture - A Gentle Overview
Serverless Architecture - A Gentle OverviewServerless Architecture - A Gentle Overview
Serverless Architecture - A Gentle OverviewCodeOps Technologies LLP
 
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트) IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트) Amazon Web Services Korea
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and FirecrackerAmazon Web Services Korea
 
Cloud Architecture Tutorial - Why and What (1of 3)
Cloud Architecture Tutorial - Why and What (1of 3) Cloud Architecture Tutorial - Why and What (1of 3)
Cloud Architecture Tutorial - Why and What (1of 3) Adrian Cockcroft
 
Cloud migration
Cloud migrationCloud migration
Cloud migrationRaj Raj
 
Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017
Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017
Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017Amazon Web Services Korea
 
Spatial data mining
Spatial data miningSpatial data mining
Spatial data miningMITS Gwalior
 
Architecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesArchitecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesAmazon Web Services
 
Virtualization security threats in cloud computing
Virtualization security threats in cloud computingVirtualization security threats in cloud computing
Virtualization security threats in cloud computingNitish Awasthi (anitish_225)
 
Solutions Architect's Handbook 2nd Edition - Book Review
Solutions Architect's Handbook 2nd Edition - Book ReviewSolutions Architect's Handbook 2nd Edition - Book Review
Solutions Architect's Handbook 2nd Edition - Book ReviewAshraf Fouad
 
Serverless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversServerless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversAmazon Web Services
 

What's hot (20)

Navies bayes
Navies bayesNavies bayes
Navies bayes
 
Cloud Migration: A How-To Guide
Cloud Migration: A How-To GuideCloud Migration: A How-To Guide
Cloud Migration: A How-To Guide
 
Cloud Computing and Amazon Web Services
Cloud Computing and Amazon Web ServicesCloud Computing and Amazon Web Services
Cloud Computing and Amazon Web Services
 
Network embedding
Network embeddingNetwork embedding
Network embedding
 
Introduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud ComputingIntroduction to AWS Services and Cloud Computing
Introduction to AWS Services and Cloud Computing
 
Serverless Architecture - A Gentle Overview
Serverless Architecture - A Gentle OverviewServerless Architecture - A Gentle Overview
Serverless Architecture - A Gentle Overview
 
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트) IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
 
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
[AWS Container Service] Getting Started with Cloud Map, App Mesh and Firecracker
 
Cloud Architecture Tutorial - Why and What (1of 3)
Cloud Architecture Tutorial - Why and What (1of 3) Cloud Architecture Tutorial - Why and What (1of 3)
Cloud Architecture Tutorial - Why and What (1of 3)
 
Statistics for data science
Statistics for data science Statistics for data science
Statistics for data science
 
Cloud migration
Cloud migrationCloud migration
Cloud migration
 
Cloud Computing Architecture
Cloud Computing ArchitectureCloud Computing Architecture
Cloud Computing Architecture
 
Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017
Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017
Route53 및 CloudFront를 이용한 CDN 활용기 - AWS Summit Seoul 2017
 
Spatial data mining
Spatial data miningSpatial data mining
Spatial data mining
 
Reading Data into R
Reading Data into RReading Data into R
Reading Data into R
 
RDD
RDDRDD
RDD
 
Architecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-PracticesArchitecting-for-the-cloud-Best-Practices
Architecting-for-the-cloud-Best-Practices
 
Virtualization security threats in cloud computing
Virtualization security threats in cloud computingVirtualization security threats in cloud computing
Virtualization security threats in cloud computing
 
Solutions Architect's Handbook 2nd Edition - Book Review
Solutions Architect's Handbook 2nd Edition - Book ReviewSolutions Architect's Handbook 2nd Edition - Book Review
Solutions Architect's Handbook 2nd Edition - Book Review
 
Serverless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about serversServerless computing - Build and run applications without thinking about servers
Serverless computing - Build and run applications without thinking about servers
 

Similar to Graphical Models In Python | Edureka

R package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable LikelihoodsR package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable LikelihoodsMatt Moores
 
Matlab: Statistics and Distributions
Matlab: Statistics and DistributionsMatlab: Statistics and Distributions
Matlab: Statistics and DistributionsDataminingTools Inc
 
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...
Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...SSA KPI
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix DatasetBen Mabey
 
ProbabilisticModeling20080411
ProbabilisticModeling20080411ProbabilisticModeling20080411
ProbabilisticModeling20080411Clay Stanek
 
The Gaussian Process Latent Variable Model (GPLVM)
The Gaussian Process Latent Variable Model (GPLVM)The Gaussian Process Latent Variable Model (GPLVM)
The Gaussian Process Latent Variable Model (GPLVM)James McMurray
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacesbutest
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacesbutest
 
Off-Policy Deep Reinforcement Learning without Exploration.pdf
Off-Policy Deep Reinforcement Learning without Exploration.pdfOff-Policy Deep Reinforcement Learning without Exploration.pdf
Off-Policy Deep Reinforcement Learning without Exploration.pdfPo-Chuan Chen
 
SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...
SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...
SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...Kyong-Ha Lee
 
TurnerBottoneStanekNIPS2013
TurnerBottoneStanekNIPS2013TurnerBottoneStanekNIPS2013
TurnerBottoneStanekNIPS2013Clay Stanek
 
Software tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsSoftware tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsbutest
 
GAN(と強化学習との関係)
GAN(と強化学習との関係)GAN(と強化学習との関係)
GAN(と強化学習との関係)Masahiro Suzuki
 

Similar to Graphical Models In Python | Edureka (20)

Bayesian network
Bayesian networkBayesian network
Bayesian network
 
R package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable LikelihoodsR package bayesImageS: Scalable Inference for Intractable Likelihoods
R package bayesImageS: Scalable Inference for Intractable Likelihoods
 
Matlab Distributions
Matlab DistributionsMatlab Distributions
Matlab Distributions
 
Matlab: Statistics and Distributions
Matlab: Statistics and DistributionsMatlab: Statistics and Distributions
Matlab: Statistics and Distributions
 
ABC workshop: 17w5025
ABC workshop: 17w5025ABC workshop: 17w5025
ABC workshop: 17w5025
 
Intractable likelihoods
Intractable likelihoodsIntractable likelihoods
Intractable likelihoods
 
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...
Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...Forecasting Default Probabilities  in Emerging Markets and   Dynamical Regula...
Forecasting Default Probabilities in Emerging Markets and Dynamical Regula...
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix Dataset
 
Group Project
Group ProjectGroup Project
Group Project
 
ProbabilisticModeling20080411
ProbabilisticModeling20080411ProbabilisticModeling20080411
ProbabilisticModeling20080411
 
Bayesianmd2
Bayesianmd2Bayesianmd2
Bayesianmd2
 
The Gaussian Process Latent Variable Model (GPLVM)
The Gaussian Process Latent Variable Model (GPLVM)The Gaussian Process Latent Variable Model (GPLVM)
The Gaussian Process Latent Variable Model (GPLVM)
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspaces
 
pptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspacespptx - Psuedo Random Generator for Halfspaces
pptx - Psuedo Random Generator for Halfspaces
 
Off-Policy Deep Reinforcement Learning without Exploration.pdf
Off-Policy Deep Reinforcement Learning without Exploration.pdfOff-Policy Deep Reinforcement Learning without Exploration.pdf
Off-Policy Deep Reinforcement Learning without Exploration.pdf
 
SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...
SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...
SASUM: A Sharing-based Approach to Fast Approximate Subgraph Matching for Lar...
 
TurnerBottoneStanekNIPS2013
TurnerBottoneStanekNIPS2013TurnerBottoneStanekNIPS2013
TurnerBottoneStanekNIPS2013
 
Software tookits for machine learning and graphical models
Software tookits for machine learning and graphical modelsSoftware tookits for machine learning and graphical models
Software tookits for machine learning and graphical models
 
MUMS Opening Workshop - Panel Discussion: Calibration in the Face of Model Di...
MUMS Opening Workshop - Panel Discussion: Calibration in the Face of Model Di...MUMS Opening Workshop - Panel Discussion: Calibration in the Face of Model Di...
MUMS Opening Workshop - Panel Discussion: Calibration in the Face of Model Di...
 
GAN(と強化学習との関係)
GAN(と強化学習との関係)GAN(と強化学習との関係)
GAN(と強化学習との関係)
 

More from Edureka!

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaEdureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaEdureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

More from Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Recently uploaded

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Recently uploaded (20)

Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

Graphical Models In Python | Edureka

  • 1.
  • 2. Agenda Why do you need PGMs? What is a PGM? Bayesian Networks Markov’s Random Fields Use-Cases Belief Networks in MRF PGMs & Neural Networks 01 02 03 04 05 06 07
  • 3. Why do you need PGMs?
  • 4. Why do you need Probabilistic Graphical Models? Probabilistic Graphical Models are rich frameworks for encoding probability distributions over complex domains. Compact Graphical Representation PGM are frameworks used to create and represent compact graphical models of complex real world scenarios 01 Intuitive Diagrams of Complex Relationships PGMs give us intuitive diagrams of complex relationships between stochastic variables. 02 Convenient from Computational Aspect PGMs are also convenient from computational point of view, since we already have algorithms for working with graphs and statistics. 03 Dynamic Simulation of Models Using PGM we can simulate dynamics of industrial establishments, create models, and many other things. 04
  • 5. What is a PGM?
  • 6. What is a Probabilistic Graphical Model? WC G P Consider you have 4 binary(Yes/No) variables. Spot in the World Cup(Yes/No) Performance in the Pre WC Tour (Yes/No) Good Genetics(Yes/No) F Good Form(Yes/No)
  • 7. What is a Probabilistic Graphical Model? Consider you have 4 binary(Yes/No) variables. WC G P F
  • 8. What is a Probabilistic Graphical Model? Components of a Graphical Model Nodes = Random Variables WC G P F
  • 9. What is a Probabilistic Graphical Model? Components of a Graphical Model Edges = Inter-Nodal Dependencies
  • 10. What is a Probabilistic Graphical Model? So, What is a PGM? P M G Probabilistic Graphical Models
  • 11. What is a Probabilistic Graphical Model? So, What is a PGM? P Probabilistic G M The nature of the problem that we are generally interested to solve or the type of queries we want to make are all probabilistic because of uncertainty. There are many reasons that contributes to it.
  • 12. What is a Probabilistic Graphical Model? So, What is a PGM? P M G Probabilistic Graphical Models
  • 13. What is a Probabilistic Graphical Model? So, What is a PGM? G Graphical P M Graphical representation helps us to visualise better and So, we use Graph Theory to reduce the no of relevant combinations of all the participating variables to represent the high dimensional probability distribution model more compactly.
  • 14. What is a Probabilistic Graphical Model? So, What is a PGM? P M G Probabilistic Graphical Models
  • 15. What is a Probabilistic Graphical Model? So, What is a PGM? M Models P G A Model is a declarative representation of a real world scenario or a problem that we want to analysis. It is represented by using any mathematical tools like graph or even simply by an equation.
  • 16. What is a Probabilistic Graphical Model? So, What is a PGM? P M G Probabilistic Graphical Models
  • 17. What is a Probabilistic Graphical Model? So, What is a PGM? P G M Probabilistic Graphical Models (PGM) is a technique of compactly representing a joint distribution by exploiting dependencies between the random variables. It also allows us to do inference on joint distributions in a computationally cheaper way than the traditional methods.
  • 18. What is a Probabilistic Graphical Model? Probability A A A A A B B B B B B C C C C C C What is the Probability of A? Solution: • Count all As and Divide it by Total number of Possibilities. • P(A) = (#A)/(#A+#B+#C)
  • 19. What is a Probabilistic Graphical Model? Conditional Probability A A A A B B B B B What is the Probability of A&B? Solution: • B should occur when A is already happening. • P(A&B) = P(A) * P(B|A) or P(B) * P(A|B).
  • 20. What is a Probabilistic Graphical Model? Joint, Probability and Marginal Distributions • The Joint Probability Distribution describes how two or more variables are distributed simultaneously. To get a probability from the joint distribution of A and B, you would consider P(A=a and B=b). • The Conditional Probability Distribution looks at how the probabilities of A are distributed, given a certain value, say, for B, P(A=a| B=b). • The Marginal Probability Distribution is one that results from taking mean over one variable to get the probability distribution of the other. For Example, the marginal probability distribution of A when A & B are related would be given by the following; ‫׬‬𝑩 P(a|b) P(b)db
  • 22. Bayesian Networks Bayesian Probability A A A A B B B B B P(One Event | Another Event) We have seen earlier: • P(A&B) = P(A) * P(B|A) or P(B) * P(A|B) From here, we could isolate either P(B|A) or P(A|B) and compute from simpler probabilities.
  • 23. Bayesian Networks Bayes Theorem A A A A B B B B B We have seen earlier: • P(A|B) = P(B|A) * P(A)/P(B) • P(B|A) = P(A|B) * P(B)/P(A)
  • 24. Bayesian Networks Bayes Network A Bayes Network is a structure that can be represented as a Direct Acyclic Graph. 1. It allows a compact representation of the distribution from the chain rule of Bayes Networks. 2. It observes conditional independence relationships between random variables. WC G P F A DAG(Direct Acyclic Graph) is a finite directed graph with no directed cycles.
  • 25. Bayesian Networks Bayes Theorem : Example WC G P F Genes P(Genes) Good 0.2 Bad 0.8 In Form P(Form) Yes 0.7 No 0.3 Condition No Spot Spot given Bad Performance 0.95 0.05 Okay Performance 0.8 0.2 Brilliant Performance 0.5 0.5 Condition Bad Okay Brilliant Good Genes, Good Form 0.5 0.3 0.2 Good Genes, Bad Form 0.8 0.15 0.05 Bad Genes, Good Form 0.8 0,1 0.1 Bad Genes, Bad Form 0.9 0.08 0.02
  • 26. Bayesian Networks Bayes Theorem : Example WC G P F What should you think about? • Does a spot in the WC team depend on Genetics? • Does a spot in the WC team depend on Genetics if you know someone is in good form? • Does a spot in the WC team depend on Genetics if you know the performance in the Pre WC Tour?
  • 27. Bayesian Networks Bayes Theorem : Example WC G P F How this works. • Each node in the Bayes Network will have a CPD associated with it. • If the node has parents, the associated CPD represents P(value| parent’s value) • If a node has no parents, the CPD represents P(value), the unconditional probability of the value.
  • 29. Markov’s Random Fields Undirected Graphical Models B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E) Probability Distribution of the variables in the graph can factorised as individual clique potential functions.
  • 30. Markov’s Random Fields Cliques B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E) P(X) = 1 𝑍 ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
  • 31. Markov’s Random Fields Cliques B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E) P(X) = 1 𝑍 ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
  • 32. Markov’s Random Fields Cliques B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E) P(X) = 1 𝑍 ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
  • 33. Markov’s Random Fields Cliques B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E) P(X) = 1 𝑍 ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
  • 34. Markov’s Random Fields Cliques B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C) ϕ(B,D) ϕ(C,E) ϕ(D,E) P(X) = 1 𝑍 ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
  • 35. Markov’s Random Fields Cliques B CA ED • P(A,B,C,D,E) ∝ ϕ(A,B) ϕ(B,C,D) ϕ(C,D,E) P(X) = 1 𝑍 ς 𝑐∈𝑐𝑙𝑖𝑞𝑢𝑒𝑠(𝐺) ϕ 𝑐 (𝑥 𝑐 ) potential functions
  • 36. Markov’s Random Fields Markov Random Fields B CA ED • Paths between A and C ; A-B-C A-B-D-E-C
  • 37. Markov’s Random Fields Markov Random Fields B CA ED • Paths between A and C ; A-B-C A-B-D-E-C
  • 38. Markov’s Random Fields Markov Random Fields B CA ED • Any two subsets of variables are conditionally independent, given a separating subset. • {B,D},{B,E} & {B,D,E} are the separating subsets.
  • 40. Use Cases Applications of PGMs Google is based on a very simple graph algorithm called page rank. Netflix, Amazon, Facebook all use PGMs to recommend what is best for you.
  • 41. Use Cases PGMs can also apparently infer whether one is a Modi Supporter or Kejriwal Supporter. FiveThirtyEight is a company that makes predictions about American Presidential Polls using PGMs. Applications of PGMs
  • 42. Bayesian Networks & Markov Random Fields
  • 43. Belief Networks & Markov Random Fields Bayes Nets as MRFs BA BA Bayes Network MRF P(A,B) = P(A) * P(B|A) P(A,B) ∝ ϕ(A,B)
  • 44. Belief Networks & Markov Random Fields Bayes Nets as MRFs Bayes Network MRF P(A,B) = P(A)P(B|A)P(C|B) P(A,B) ∝ ϕ(A,B) ϕ(B,C) BA C BA C
  • 45. Belief Networks & Markov Random Fields Bayes Nets as MRFs : Chains Bayes Network MRF P(A,B,C) = P(A)P(B|A)P(C|B) P(A,B,C) ∝ ϕ(A,B) ϕ(B,C) ϕ(A,B) ← P(A)P(B|A) ϕ(B,C) ← P(C|B) Parameterization is not unique BA C BA C
  • 46. Belief Networks & Markov Random Fields Bayes Nets as MRFs : Shared Parents Bayes Network MRF P(A,B,C) = P(A)P(B|A)P(C|B) P(A,B,C) ∝ ϕ(A,B) ϕ(A,C) ϕ(A,B) ← P(A)P(B|A) ϕ(A,C) ← P(C|A) B A C B A C
  • 47. Belief Networks & Markov Random Fields Bayes Nets as MRFs : Shared Child Bayes Network MRF P(A,B,C) = P(A)P(B)P(C|A,B) A and B are dependent given C P(A,B,C) ∝ ϕ(A,C) ϕ(B,C) A and B are independent given C C A B C A B
  • 48. Belief Networks & Markov Random Fields Converting Bayes Nets to MRFs : Moralizing Parents P(A,B,C) ∝ ϕ(A,C) ϕ(B,C) A and B are independent given C C A B • Moralize all co-parents. • Lose marginal independence of parents undirecteddirected
  • 49. PGMs and Neural Networks
  • 50. PGMs & Neural Networks The Boyfriend Problem
  • 51. PGMs & Neural Networks The Boyfriend Problem
  • 52. PGMs & Neural Networks The Boyfriend Problem
  • 53. PGMs & Neural Networks The Boyfriend Problem • N common friends • N bit vector = {0,1,0,1,…} ; 1 is a boost, 0 means no contact • Objective : find the set of friends that I should ask to boost me, i.e. the best vector.
  • 54. PGMs & Neural Networks Solution 1 : Neural Networks Yes/No More Friends/ Happening Social Life(M) Me Friends(N)
  • 55. PGMs & Neural Networks Solution 1 : Neural Networks More Friends/ Happening Social Life(M) Yes/No Friends(N) Me
  • 56. PGMs & Neural Networks Solution 1 : Neural Networks But, Why? Me
  • 57. PGMs & Neural Networks Solution 2 : Probabilistic Graphical Models Approval from N Friends/ Observation from N nodes Me 0 1 0 1 0 0 1 1 Date Acceptance/ Observable Event Impression/ Random Variable
  • 58. PGMs & Neural Networks Solution 2 : Probabilistic Graphical Models Date Acceptance/ Observable Event Approval from N Friends/ Observation from N nodes Me Impression/ Random Variable P(impression| vector of all approvals) ← P(approval from friend i| impression) P(all approvals| impression) = product of all P(approval i | impression)