convert odds to probability, formulas and R/Python workflows