Maths help

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

Maths help

Postby Mitch » Fri Mar 10, 2006 12:18 am

If I make several trades on a market on different selections so that I have different amounts of green on each selection, is there a mathematical way of deciding what bets to make to make all selections equal profit?

Thanks for any help.
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby GeorgeUK » Fri Mar 10, 2006 6:48 pm

Mitch - looked at this a while ago, but gave up and tried writing a macro to keep laying half of the largest profit, then it got down to pennies out.

Had another look and i must have screwed something up - because it works out...

No it doesn't - muppet moment - sorry



OK - time for another laugh (my calculation attempts)
The amount to stake on each selection:

Average of total profit/loss - that selection's profit/loss / the selections odds.


And i know what you're thinking - it's not just the selections that are odd...
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby Mitch » Fri Mar 10, 2006 9:37 pm

Thanks George, I'll give it a go and let you know how it goes.

This is the way I first thought of trying it but then I thought - as soon as 1 bet is placed it changes the P/L on all the other selections, then when you change the next one it changes all the others including the first one - then my head started to hurt and decided to post on here :lol:

I'm going to give it a go now.....
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby Uncle Ernie » Fri Mar 10, 2006 11:19 pm

mitch the calculations aren't that complicated as you have all the figures to hand i.e. profit and loss and odds/ available and available stake just from the profit/loss column. Just consider how you calculate an overround book at present and set it to calculate an even profit using selections that are negative, you'll find the calcs actually balance themselves from the figures you give them to work from
Uncle Ernie
 
Posts: 29
Joined: Sat Nov 19, 2005 1:44 am

Postby Mitch » Sat Mar 11, 2006 12:18 am

Ernie, I'm glad that it's possible, and more than that - not too difficult.

I have a friend (ahem :oops: ) that although fairly bright is not used to calculating such figures and would appreciate any elaboration on your above post, especially an example.

Thanks again.
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby GeorgeUK » Sun Mar 12, 2006 5:33 am

Mitch - while waiting on Ernie's reply - here's another stab in the dark.
My last attempt was tring to back a negative value on some selections!!!
(I promise - it was the medication :oops: )

How about this

1 / selection_odds * (max_profit - Selection_P/L)

just for a giggle :?
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby Mitch » Sun Mar 12, 2006 6:22 pm

Dunno George.

The one way I tried it fails when you only have a value other than 0 on 1 selection. If you don't include the zeros in the average calculation, the profit on the 1 selection the same as the average so you end up with a stake of 0, and then an error.

If you calculate the avergae with the 0's included then you must have to place a bet on every selection wether you've traded on it or not, which could lead to very poor value just for the sake of levelling up.

My head still hurts :?
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby Uncle Ernie » Sun Mar 12, 2006 10:30 pm

Mitch, imagine we're laying to get an overall profit.

You look at the highest loss you have say -50

So we call a cell "minimum" and log the figure in that cell - We now aim to get all our runners on the same loss -50. So if that profit and loss is showing 44 we aim to get a 94 loss by laying that runner at say 12 for 7.83. Do the same calc for all the selections then add up the the amount you'd need to stake-if thats over the max loss then you're in the money if not either take the loss or wait.

The pic below may make more sense but I'm sure you get the idea

http://img399.imageshack.us/img399/1432 ... ed3zr1.jpg

The figures in V5 and W5 would read 0.00 & 0.00 for Fear the cape I deleted them by mistake.
Uncle Ernie
 
Posts: 29
Joined: Sat Nov 19, 2005 1:44 am

Postby Mitch » Mon Mar 13, 2006 4:43 pm

The penny drops :D thank you Ernie.
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby Uncle Ernie » Mon Mar 13, 2006 4:56 pm

No problem, obviously to balance by backing it's just a point of turning it round and treating the difference between max and minimum from the profit/loss column as your book to back to.

It's worth having your sheet doing both backing and laying calcs to see which is the most profitable. The closest to 100% either back or lay would give the best returns but you also need to consider how many bets you're kicking off - If you've laid 3 runners in a 20 runner race it much better to back those 3 to get your balanced book than lay the other 17 runners as some may not get matched.

Depends on you're betting strategy if you balance by backing or laying but the calcs are basically quite simple either way.
Uncle Ernie
 
Posts: 29
Joined: Sat Nov 19, 2005 1:44 am

Postby tkp » Wed Mar 15, 2006 1:33 pm

Thanks U.E.

Could you explain which selection(s) we would lay in your example - is it runner 1 or all the others ? My brain hurts now (luckily there isn't much to hurt!).

Thanks,

tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby GeorgeUK » Wed Mar 15, 2006 2:05 pm

You would be laying all the other selections tkp.

eg No.3 Shift gears - you would be laying for 7.83 @ 12 odds (giving the liability of 94)

the selection with the lowest profit (Fear the Cape) would not have any lay bets made on it.
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Postby tkp » Wed Mar 15, 2006 7:49 pm

Cheers George.
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby tkp » Thu Mar 16, 2006 2:01 pm

I've figured out the lay side of things thanks to U.E. and George.

Any chance someone can explain how to do with this by Backing ?

Cheers,

tkp
User avatar
tkp
 
Posts: 213
Joined: Fri Nov 18, 2005 8:41 pm
Location: Midlands

Postby GeorgeUK » Thu Mar 16, 2006 3:06 pm

As per my previous post

1 / selection_odds * (max_profit - Selection_P/L)


Ernie does it slightly differently.

(max_profit - Selection_P/L)/selection odds


Same thing really, but just thought i'd show what Ernie came up with.
previously known as Gaseous (on the betfair forum)
User avatar
GeorgeUK
 
Posts: 315
Joined: Sat Nov 19, 2005 10:18 pm
Location: Scotland

Next

Return to Discussion

Who is online

Users browsing this forum: No registered users and 16 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.