#5 adding maximumlikelihood statistics compare function