Statistical Analysis of Loopy Belief Propagation in Random Fields