3.0.0 • Published 2 years ago
kelly v3.0.0
kelly
Example
const kelly = require('kelly');
kelly(1, 0.6);
// => 0.19999999999999996Installation
$ npm install kellyAPI
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.