Skip to Content
Learning Probabilistic Graphical Models in R
book

Learning Probabilistic Graphical Models in R

by David Bellot
April 2016
Beginner to intermediate
250 pages
5h 38m
English
Packt Publishing
Content preview from Learning Probabilistic Graphical Models in R

Rejection sampling

Suppose we want to sample from a distribution that is not a simple one. Let's call this distribution p(x) and let's assume we can evaluate p(x) for any given value x, up to a normalizing constant Z, that is:

Rejection sampling

In this context, p(x) is too complex to sample from but we have another simpler distribution q(x) from which we can draw samples. Next, we assume there exists a constant k such that Rejection sampling for all values of x. The function kq(x) is the comparison function as shown in the following figure:

The distribution p(x) has been generated with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Bayesian Models with R

Learning Bayesian Models with R

Hari Manassery Koduvely
Deep Learning for Chest Radiographs

Deep Learning for Chest Radiographs

Yashvi Chandola, Jitendra Virmani, H.S Bhadauria, Papendra Kumar

Publisher Resources

ISBN: 9781784392055Supplemental Content