Be the first to rate this file! 2 downloads (last 30 days) File Size: 1.75 KB File ID: #10840

betting odds

by a k

 

23 Apr 2006 (Updated 24 Apr 2006)

No BSD License  

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

Download Now | Watch this File

File Information
Description

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.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
games a k 22 Oct 2008 08:22:59
bet a k 22 Oct 2008 08:22:59
odds a k 22 Oct 2008 08:22:59
money a k 22 Oct 2008 08:22:59
game a k 22 Oct 2008 08:22:59
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com