Error in computing likelihood (Bayesian estimation)

Please do not cross-post. See my reply at