log likelihood ratio calculation