likelihood ratio calculation