0

I am currently programming a betting system.

I am a little confused as to the logic for working out the payouts (math is not my strong point)

I will explain this the best i can.

Scenario:

Max Bet = 500 Racers: John, Mark, Lewis, Kate

  • Matt Bets 10 on Mark
  • Sky Bets 500 on Mark
  • Kate Bets 40 on Mark
  • Smackie Bets 500 on Lewis
  • John Bets 500 on John

Winner = Mark

What i know: ( {} denote variables )

{pot} = 10+500+40+500+500 = 1550

So what i need to know, is how much of the pot Matt, Sky and Kate each win?

Gerry Myerson
  • 179,216
Mattigins
  • 105

2 Answers2

1

You have to define the type of betting game.
The most important question is who is paying to the winners? Imagine that there's only one bet and it wins. Who must pay to the winner? Your example illustrates mix of two appoaches (figuratively speaking, casino-based and wager-based).

If you have casino of some other arbiter which provides payoff ratios regardless of who is betting on whom (however, there ratios may change after a bet of useful information about competitors like "this rider seems to be ill today"), then you (as the casino manager) have to decide a part of each bet you want to keep in average for your mansion in Monte Carlo (it poker it's called rake), calculate a chance of win for each competitor based on your own algorithm and, probably, on the bets placed for them and make the payoff values a bit (or greatly) less than this value according to the rake.

The other appoach is what I called wager-based - in this case you can't just place $X$ for John but you have to find one or more people to form a wager like "Matt bets $20$ on Mark, Kate bets $20$ on Lewis, if Mark wins, Matt gains $40$, if Lewis wins, Kate gain $40$, if someone other wins, Kate marries Matt and they buy puppy for $40$". Rules should be discussed before the wager and there are obviously no restrictions on it if every person taking part in wager aggrees the rules. These rules may consider different winning chances or not but should cover all possible outcomes to avoid conflicts.

Considering all I said, your examples makes no sense without additional information. If it's casino-based game then the payoffs for each competitor are some values from $0$ to $1$ (giving $(1 - rake)$ in total). If it's just a friends' wager, then it should be formed in other way.

For example (just a variant, there could be infinitely many other variants):
$1)$ Matt, Sky and Kate bet $10$ om Mark, Smackie bets $30$ on Lewis, John bets $30$ on John. The rules are: if Kate wins, everyone gains his/her money back; if Mark wins, Matt, Sky and Kate gain $20$ each; if Lewis wins, Smackie gains $90$; if John wins, John gains $90$.

$2)$ Sky and Kate bet $30$ on Mark, Smackie bet $30$ on Lewis, John bet $30$ on John. The rules are: if Kate wins, everyone gains his/her money back; if Mark wins, Sky and Kate gain $60$ each; if Lewis wins, Smackie gains $120$; if John wins, John gains $120$.

$3)$ Sky bets $460$ on Mark, Smackie bets $460$ on Lewis, John bets $460$ on John. The rules are: if Kate wins, everyone gains his/her money back; in other case winner gains $1380$.

These wagers are totally independent of each other and you may simply cancel or change one without affecting another.

Andrei Rykhalski
  • 1,325
  • 9
  • 14
  • I want it to be so that if there is only 1 bet on the winner, that person wins the whole pot. and everyone else loses their bets. But if Mark wins, then i need to determine how much of the pot Matt, Kate and Sky win each. (the total winnings should be equal to the sum of all bets) – Mattigins Feb 18 '15 at 11:33
  • I should also point out that this is for a game. It isn't real money so therefor no profit is needed to be made for the 'casino' – Mattigins Feb 18 '15 at 11:38
  • It's not fair because Smackie may bet $1000$ on Lewis and the other bet $10$ on Mark. If Mark wins, should the other take Smackie's money considering they were not risking such a large amount of money? – Andrei Rykhalski Feb 18 '15 at 11:42
  • That's exactly what i mean, how could i make an equation that takes the amount they bet into account? – Mattigins Feb 18 '15 at 11:53
  • Please refer to my example in the answer where I divided their bets in 3 wagers. In case someone has too high bet, a part of this bet should be returned back. In case $n$ persons bet on some event then you may reduce each of those bets on that event to make them equal $b/n$ where $b$ is a bet on some event the only person has bet on. – Andrei Rykhalski Feb 18 '15 at 12:21
0

The total amount bet on the winner is $550$.

Matt should get $(10/550)\times1550$; Sky, $(500/550)\times1550$; Kate, $(40/550)\times1550$.

Gerry Myerson
  • 179,216
  • 1
    I already figured it out a few minutes before you posted this. But it is nice to confirm that i had the correct answer. – Mattigins Feb 18 '15 at 12:30