The Math Behind Betting: Expected Value and Probabilities