{"id":20550218,"url":"https://github.com/dnmfarrell/algorithm-kelly","last_synced_at":"2026-04-17T08:32:21.604Z","repository":{"id":29051366,"uuid":"32579067","full_name":"dnmfarrell/Algorithm-Kelly","owner":"dnmfarrell","description":"Calculate the fraction of a bankroll to bet","archived":false,"fork":false,"pushed_at":"2015-03-23T12:16:37.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T16:49:20.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnmfarrell.png","metadata":{"files":{"readme":"README.pod","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-20T11:02:49.000Z","updated_at":"2023-03-08T06:00:44.000Z","dependencies_parsed_at":"2022-08-29T02:52:10.453Z","dependency_job_id":null,"html_url":"https://github.com/dnmfarrell/Algorithm-Kelly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FAlgorithm-Kelly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FAlgorithm-Kelly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FAlgorithm-Kelly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnmfarrell%2FAlgorithm-Kelly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnmfarrell","download_url":"https://codeload.github.com/dnmfarrell/Algorithm-Kelly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157180,"owners_count":20081036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:23:52.599Z","updated_at":"2026-04-17T08:32:21.564Z","avatar_url":"https://github.com/dnmfarrell.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"=pod\n\n=encoding UTF-8\n\n=head1 NAME\n\nAlgorithm::Kelly - calculates the fraction of a bankroll to bet using the Kelly formula\n\n=head1 VERSION\n\nversion 0.03\n\n=head1 SYNOPSIS\n\n    use Algorithm::Kelly;\n    use feature 'say';\n\n    say optimal_f(0.5, 2); # 0.25\n\n=head1 FUNCTIONS\n\n=head2 optimal_f ($probability, $payoff)\n\nReturns the optimal L\u003cfraction|https://en.wikipedia.org/wiki/Kelly_criterion\u003e of bankroll to wager, using the Kelly Criterion, given the C\u003c$probability\u003e and C\u003c$payoff\u003e. Payoff should be the net odds of the wager, so the value of 3-to-1 would be 3. The C\u003coptimal_f()\u003e sub is exported by default.\n\n=head1 CONVERTING ODDS\n\nOdds are usually presented in one of three styles: decimal, fraction or American. The C\u003coptimal_f\u003e sub requires the net decimal odds. These odds are all equal:\n\n    Type      Example    Net Odds\n    ----      --------   --------\n    Decimal   4.0        3.0\n    Fraction  3/1        3.0\n    American  +300       3.0\n\nThe different odds representations are also explained L\u003chere|http://www.olbg.com/school/lesson10.htm\u003e.\n\n=head1 AUTHOR\n\nDavid Farrell \u003cdfarrell@cpan.org\u003e\n\n=head1 COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2015 by David Farrell.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n\n=cut\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Falgorithm-kelly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnmfarrell%2Falgorithm-kelly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnmfarrell%2Falgorithm-kelly/lists"}