Skip to content

feat: add Monte Carlo bankroll simulation #3

@ianalloway

Description

@ianalloway

Simulate N bankroll trajectories given a set of bets to visualize risk of ruin:

monteCarloSim({
  bets: 500,
  winRate: 0.55,
  avgOdds: -110,
  kellyFraction: 0.5,
  startingBankroll: 1000,
  simulations: 10000
})
// { medianFinal: 1823, riskOfRuin: 0.02, worstCase: 312, bestCase: 8442 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureNew feature or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions