Troy Denkinger > Games-Bettor > Games::Bettor::Kelly

Download:
Games-Bettor-1.00.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.00   Source  

NAME ^

Games::Bettor::Kelly - A class that holds the methods for a kelly formula bettor

VERSION ^

Version 1.0

SYNOPSIS ^

    use Games::Bettor::Kelly;

    $bettor = Games::Bettor::Kelly->new( winner => 75, odds => 2);

DESCRIPTION ^

This method represents a bettor who always bets using the Kelly Criterion system. Basically, the Kelly bettor bets only a portion of his bankroll. This criterion is supposed to balance risk of ruin with the best rate of return. Since only a portion of the bankroll is bet, the bettor can never go broke.

METHODS ^

new

  $method = Games::Bettor::Kelly->new( winner => $winning_percentage, odds => $odds );
  
  winner: The percentage of the time you expect to win expressed as a percentage, ie 65.
  odds: The left side of an odds expression.  5:1 would be expressed as 5 and even money odds would just be 1:1 or 1.

name

  $method_name = $method->name();
  
  Returns the name of the betting method.

get_bet

  $amount = $method->get_bet( bankroll => $bankroll );
  
  Returns the amount to bet for this trial.  The bankroll argument is the amount of the bankroll currently for 
  the Bettor object using this method.

AUTHOR ^

Troy Denkinger, <tdenkinger at gmail.com>

BUGS ^

Please report any bugs or feature requests to bug-games-bettor at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Games-Bettor. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Games::Bettor::Kelly

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2006 Troy Denkinger, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: