added formulas for likelihood and probabilities