betting odds

Given an input of n odds for a sporting event, it calculates the bet spread to minimize losses.

You are now following this Submission

The function takes in n money line odds. For example a soccer match, +100 for an underdog win, -125 for the favored team to win, and +220 for a draw. The function calculates the percentage of your bet that should go to each outcome in order to minimize your loss no matter what event actually occurs.

I'm mainly curious if I coded it correctly, so I would really like some input. I am convinced that for n=2 it works, but I'm not sure about highr n's.

Cite As

a k (2026). betting odds (https://www.mathworks.com/matlabcentral/fileexchange/10840-betting-odds), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Number games in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0