kelly
v3.0.0
Published
Kelly criterion
Downloads
4
Maintainers
Readme
kelly
Example
const kelly = require('kelly');
kelly(1, 0.6);
// => 0.19999999999999996
Installation
$ npm install kelly
API
const kelly = require('kelly');
kelly(b, p)
Given two Number arguments, where b
is the net odds received on the wager
and p
is the probability of winning, returns the fraction of the current
bankroll (as a Number) that one should bet to maximize the long-run growth
rate of the bankroll.