View source: R/bankroll_plot.R
bankroll_plot | R Documentation |
This function simulates and visualizes a bettors bankroll over a number of bets using their edge.
bankroll_plot(
bets = 256,
win_rate = 0.55,
bet_size = 100,
sim_length = 1000,
avg_odds = -110,
odds_type = "us",
current_bet = NULL,
current_win = NULL
)
bets |
The number of bets (256) |
win_rate |
The average expected win rate of the bets (0-1) |
bet_size |
The dollar amount of each bet. (100) |
sim_length |
The number of simulations. (1,000) |
avg_odds |
The average odds of the bets (-110) |
odds_type |
Type of odds for the output. Possible values are:
|
current_bet |
Optional input - Your current total number of tracked bets. (125) |
current_win |
Optional input - Your current total amount won/loss from your tracked bets. (950) |
Plot showing the bankroll results of the simulated bets. The function also outputs the percentage of positive and negative final bankroll over the course of the simulation.
bankroll_plot(
bets = 256,
win_rate = 0.55,
bet_size = 100,
sim_length = 1000,
avg_odds = -110,
odds_type = "us"
)
bankroll_plot(
sim_length = 500,
avg_odds = -110,
win_rate = 0.5455
)
bankroll_plot(
sim_length = 250,
avg_odds = -115,
win_rate = 0.5255,
current_bet = 100,
current_win = -500
)
bankroll_plot(
sim_length = 300,
avg_odds = -109,
win_rate = 0.57,
current_bet = 175,
current_win = 5000
)
bankroll_plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.