The Kelly criterion is a mathematical formula that can be used to calculate the optimal amount to bet in a given situation. The formula takes into account the probability of winning, the payout if you win, and the probability of losing. By using the Kelly criterion, you can ensure that you are betting the optimal amount to maximize your expected return.