Added loss function based on shared rate times degree Poisson distribution.