log_likelihood function

Compute the (log-)likelihood of a probability distribution given data