Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Probabilistic Graphical Models with Python

You're reading from  Mastering Probabilistic Graphical Models with Python

Product type Book
Published in Aug 2015
Publisher
ISBN-13 9781784394684
Pages 284 pages
Edition 1st Edition
Languages
Author (1):
Ankur Ankan Ankur Ankan
Profile icon Ankur Ankan
Toc

Table of Contents (14) Chapters close

Mastering Probabilistic Graphical Models Using Python
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. Bayesian Network Fundamentals 2. Markov Network Fundamentals 3. Inference – Asking Questions to Models 4. Approximate Inference 5. Model Learning – Parameter Estimation in Bayesian Networks 6. Model Learning – Parameter Estimation in Markov Networks 7. Specialized Models Index

Collapsed importance sampling


In the case of full particles for importance sampling, we used to generate particles from another distribution, and then, to compensate for the difference, we used to associate a weighting to each particle. Similarly, in the case of collapsed particles, we will be generating particles for the variables and getting the following dataset:

Here, the sample is generated from the distribution Q. Now, using this set of particles, we want to find the expectation of relative to the distribution :

Fig 4.22: The late-for-school model

Let's take an example using the late-for-school model, as shown in Fig 4.22. Let's consider that we have the evidence that , , and partition the variables as and . So, we will generate particles over the variable . Also, each such particle is associated with the distribution . Now, assuming some query (say ), our indicator function will be . We will now evaluate for each particle:

After this, we will compute the average of these probabilities...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime