p.post.child function

computes the posterior probability of observations of a child