betting odds

Version 1.0.0.0 (841 Bytes) by a k
Given an input of n odds for a sporting event, it calculates the bet spread to minimize losses.
892 Downloads
Updated 24 Apr 2006

No License

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 (2024). betting odds (https://www.mathworks.com/matlabcentral/fileexchange/10840-betting-odds), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Number games in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0