Professional Documents
Culture Documents
Forward Sampling: Sargur Srihari Srihari@buffalo - Edu
Forward Sampling: Sargur Srihari Srihari@buffalo - Edu
Forward Sampling
Sargur Srihari
srihari@buffalo.edu
1
Probabilistic Graphical Models Srihari
Topics
• Forward Sampling
• Sampling from a Bayesian Network
• Sampling from a Discrete Distribution
• Use of samples
• Analysis of Error
• Conditional Probability Queries
2
Probabilistic Graphical Models Srihari
• Plan of discussion
– Generating particles from PB (χ) by sampling a BN
– No of particles needed to get a good approximation
of the expectation of a target function f
– Difficulties in generating samples from posterior
PB (χ|e)
• In undirected models even generating a sample from the
prior distribution is a difficult task
Probabilistic Graphical Models Srihari
5
Probabilistic Graphical Models Srihari
6
Probabilistic Graphical Models Srihari
Analysis of Error
• Quality of the estimate depends heavily on the
no. of particles generated
• How many particles are needed to obtain a
certain performance guarantee?
• Focus analysis on the case where we need to
estimate P(y)
8
Probabilistic Graphical Models Srihari
Rejection Sampling
• Generate samples from posterior P(χ|e)
– Can do this by generating samples x from P(X)
– Reject any sample that is not compatible with e
– Resulting samples are from posterior P(χ|e)
• Problem: no of unrejected particles is small
– Expected no of unrejected from original M is MP(e)
• Ex: if P(e)=0.001 & M=10,000, only 10 unrejected samples
– Conversely, to obtain at least M* unrejected
particles, we need to generate on an average
M=M*/P(e) samples from P(X)
11
Probabilistic Graphical Models Srihari
12
Probabilistic Graphical Models Srihari
13