jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 4:33:33 AM permalink
I think this should be an easy Bayes Theorem calculation but I'm struggling...

1. Over the last three years the probability that Trap 1 wins is 17.40% (6 traps) based on actual results.
2. Over the last three years the probability that that the favourite wins is 32.48% based on actual results.

What is the probability that Trap 1 wins when it's the favourite?

Thanks in advance
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 6003
Joined: Jul 23, 2014
April 16th, 2022 at 6:11:33 AM permalink
I hope you can get an answer soon.
I think there are only about 5 tracks still active in the US, and one of them is scheduled to close in about 5 weeks.
May the cards fall in your favor.
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 6:26:13 AM permalink
I'm in the UK! About 20 active tracks with over a 100 races a day on average!
darkoz
darkoz 
  • Threads: 300
  • Posts: 11843
Joined: Dec 22, 2009
April 16th, 2022 at 7:01:25 AM permalink
My bad! I thought this was a question about the bus company.
For Whom the bus tolls; The bus tolls for thee
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 6003
Joined: Jul 23, 2014
April 16th, 2022 at 7:41:58 AM permalink
I probably should have guessed UK from 6 traps.
I think I still saw 8 traps recently in the US.

(And after May 15, it looks like we'll be down to two tracks in West Virginia. No idea if Southland is already closed.)


I had ten entries in a best pun contest.
I thought I might win, but no pun in ten did.
May the cards fall in your favor.
ThatDonGuy
ThatDonGuy
  • Threads: 122
  • Posts: 6673
Joined: Jun 22, 2011
April 16th, 2022 at 8:08:23 AM permalink
If I understand two-condition Bayes correctly:
P(C given both A and B) = P(A given both B and C) x P(C given B) / P (A given B)
In this case, A is "the dog is in Trap 1," B is "the dog is the favorite," and C is "the dog wins"
I also assume that, in dog racing, traps are assigned randomly, so P(A) = 1/6 under all conditions.
Therefore:
P(dog wins, given Trap 1) = P(dog is in Trap 1, given it is the favorite and wins) x P(dog wins, given it is the favorite) / P(dog is in Trap 1, given it is the favorite) = 1/6 x 32.48% / (1/6) = 32.48%

Something about this doesn't pass the smell test - mainly, the fact that Trap 1 wins 17.4% of the time isn't used; I am substituting 1/6 for this. Since the probability that the favorite is in Trap 1 is not given, I don't think you can solve it "as is."
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 6003
Joined: Jul 23, 2014
April 16th, 2022 at 8:17:19 AM permalink
Isn't trap 1 closest to the inside rail or the hare or something?
It might have a slight positional advantage, making the number not 1/6.
May the cards fall in your favor.
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 9:49:52 AM permalink
Quote: ThatDonGuy

If I understand two-condition Bayes correctly:
P(C given both A and B) = P(A given both B and C) x P(C given B) / P (A given B)
In this case, A is "the dog is in Trap 1," B is "the dog is the favorite," and C is "the dog wins"
I also assume that, in dog racing, traps are assigned randomly, so P(A) = 1/6 under all conditions.
Therefore:
P(dog wins, given Trap 1) = P(dog is in Trap 1, given it is the favorite and wins) x P(dog wins, given it is the favorite) / P(dog is in Trap 1, given it is the favorite) = 1/6 x 32.48% / (1/6) = 32.48%

Something about this doesn't pass the smell test - mainly, the fact that Trap 1 wins 17.4% of the time isn't used; I am substituting 1/6 for this. Since the probability that the favorite is in Trap 1 is not given, I don't think you can solve it "as is."
link to original post



Thanks, looking at the stats - the probability that Trap 1 is favourite is 22.1%...
ThatDonGuy
ThatDonGuy
  • Threads: 122
  • Posts: 6673
Joined: Jun 22, 2011
April 16th, 2022 at 9:52:19 AM permalink
Quote: Dieter

Isn't trap 1 closest to the inside rail or the hare or something?
It might have a slight positional advantage, making the number not 1/6.
link to original post


True - it is kind of like saying, "If you run a 400m race, but lane 8 only has to run 300m, and the lanes are assigned randomly, the probability of someone being in lane 8 given that they won is 1/8."

In any case, it seems that any solution requires that we know the percentage of the time the favorite is in Trap 1.
There appear to be two ways to solve this:

P(dog wins, given it is the favorite and in Trap 1) = P(dog is in Trap 1, given it is the favorite and wins) x P(dog wins, given it is the favorite) / P(dog is in Trap 1, given it is the favorite)

or:

P(dog wins, given it is the favorite and in Trap 1) = P(dog is the favorite, given it is in Trap 1 and wins) x P(dog wins, given it is in Trap 1) / P(dog is the favorite, given it is in Trap 1)

In either case, there is not enough information to solve it. You might as well just check every race and count how many times the favorite was in Trap 1 and won the race.
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 10:10:31 AM permalink
Thanks so much, I was trying to apply simple Bayes, not multiple condition Bayes.

Just checking you saw my post - The probability of Trap 1 being the favourite is 22.1%
unJon
unJon
  • Threads: 16
  • Posts: 4762
Joined: Jul 1, 2018
April 16th, 2022 at 10:39:06 AM permalink
Quote: jedijon

Thanks so much, I was trying to apply simple Bayes, not multiple condition Bayes.

Just checking you saw my post - The probability of Trap 1 being the favourite is 22.1%
link to original post



The problem is you don’t have two independent variables. Being in trap 1 is advantageous. Being the favorite is a mix of trap position and dog speed/acceleration/stamina/etc.

22.1% is greater than 1/6 illustrates that.

Sounds like you have the data to get the calculation you want based on actuals anyway?
The race is not always to the swift, nor the battle to the strong; but that is the way to bet.
Wizard
Administrator
Wizard
  • Threads: 1518
  • Posts: 27033
Joined: Oct 14, 2009
April 16th, 2022 at 1:53:28 PM permalink
Quote: jedijon

I think this should be an easy Bayes Theorem calculation but I'm struggling...

1. Over the last three years the probability that Trap 1 wins is 17.40% (6 traps) based on actual results.
2. Over the last three years the probability that that the favourite wins is 32.48% based on actual results.

What is the probability that Trap 1 wins when it's the favourite?

Thanks in advance
link to original post



I don't think there is enough information here to answer the question.
"For with much wisdom comes much sorrow." -- Ecclesiastes 1:18 (NIV)
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 3:26:58 PM permalink
Apologies, I'm getting my data from the below link and am compiling both Track & Favourite stats for 2019 + 2020 +2021

Using 'Central Park' as an example:

Trap 1 has won 1449 races out of 8329 (17.4%)
2649 favourites have won out of a total number of 7565 favourites (35%)
(I assume 7565 < 8329 is due to joint favourites)
Trap 1 has been favourite 1526 times (20.17%)
When favourite, Trap 1 has won 501 times (32.83%)

I want to know, do we have enough information and is it possible to calculate the "expected probability" of Trap 1 winning when it's favourite, to compare to the actual result of 32.83%?

I am not concerned about trap bias or odds for now, just purely on the stats.

Thanks all for your help and input on this.

Can't post the link until i get to 20 posts... it's greyhoundstats dot co dot uk
DeMango
DeMango
  • Threads: 36
  • Posts: 2958
Joined: Feb 2, 2010
April 16th, 2022 at 3:49:00 PM permalink
Interesting thread! Thanks. All we need now is Chump Changes view on the subject!
When a rock is thrown into a pack of dogs, the one that yells the loudest is the one who got hit.
Dieter
Administrator
Dieter
  • Threads: 16
  • Posts: 6003
Joined: Jul 23, 2014
April 16th, 2022 at 4:39:41 PM permalink
Quote: jedijon

Can't post the link until i get to 20 posts... it's greyhoundstats dot co dot uk
link to original post



https://greyhoundstats.co.uk/

Looks OK to me.
May the cards fall in your favor.
ThatDonGuy
ThatDonGuy
  • Threads: 122
  • Posts: 6673
Joined: Jun 22, 2011
April 16th, 2022 at 4:48:16 PM permalink
Quote: jedijon

I want to know, do we have enough information and is it possible to calculate the "expected probability" of Trap 1 winning when it's favourite, to compare to the actual result of 32.83%?

I am not concerned about trap bias or odds for now, just purely on the stats.

Thanks all for your help and input on this.


The website has all of the necessary information. However, when you boil it down with Bayes, you get this:

P(win, given favorite and in Trap 1) = the number of times the winner was both the favorite and in Trap 1 / the number of times the favorite was in Trap 1.

In other words, most of the numbers cancel each other out, and you end up with the actual result.
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 11:28:59 PM permalink
Quote: Dieter

Quote: jedijon

Can't post the link until i get to 20 posts... it's greyhoundstats dot co dot uk
link to original post



/

Looks OK to me.
link to original post



Thanks, it's because this website prevents me from posting links as I am yet to make 20 posts across all forums
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 16th, 2022 at 11:52:14 PM permalink
P(win, given favorite and in Trap 1) = the number of times the winner was both the favorite and in Trap 1 / the number of times the favorite was in Trap 1.

In other words, most of the numbers cancel each other out, and you end up with the actual result.
link to original post



Thanks I understand the 'actual' result - very simple calculation and easy to get from the data.

I just wanted to know, and maybe it's not possible, but assuming you didn't have the 'the number of times the winner was both the favorite and in Trap 1' information (501), is it possible to calculate the expected result?

I applied the (second) formula you mentioned in an earlier post:

P(dog wins, given it is the favorite and in Trap 1) = P(dog is the favorite, given it is in Trap 1 and wins) x P(dog wins, given it is in Trap 1) / P(dog is the favorite, given it is in Trap 1):

Using:

Trap 1 has won 1449 races out of 8329 (17.4%)
2649 favourites have won out of a total number of 7565 favourites (35%)
(I assume 7565 < 8329 is due to joint favourites)
Trap 1 has been favourite 1526 times (20.17%)
When favourite, Trap 1 has won 501 times (32.83%)

(501 / 1449) * (1449 / 8329) / (1526 / 7565) = 29.82%

I guess the problem here is I'm using 501 which I'm .not supposed to know' given my objective.

Is the first part of the equation a Bayes in itself to solve? (P(dog is the favorite, given it is in Trap 1 and wins)

Thanks once again, really appreciate your time/input on this.
Last edited by: jedijon on Apr 17, 2022
ThatDonGuy
ThatDonGuy
  • Threads: 122
  • Posts: 6673
Joined: Jun 22, 2011
April 17th, 2022 at 7:29:12 AM permalink
Quote: jedijon

I applied the (second) formula you mentioned in an earlier post:

P(dog wins, given it is the favorite and in Trap 1) = P(dog is the favorite, given it is in Trap 1 and wins) x P(dog wins, given it is in Trap 1) / P(dog is the favorite, given it is in Trap 1):

Using:

Trap 1 has won 1449 races out of 8329 (17.4%)
2649 favourites have won out of a total number of 7565 favourites (35%)
(I assume 7565 < 8329 is due to joint favourites)
Trap 1 has been favourite 1526 times (20.17%)
When favourite, Trap 1 has won 501 times (32.83%)

(501 / 1449) * (1449 / 8329) / (1526 / 7565) = 29.82%


You're close, but you are using 7565 instead of 8939 for the number of times a dog was in Trap 1 in the third part; it is the number of races thta had a dog in Trap 1, not the number of times a race had a single favorite.
(501 / 1449) * (1449 / 8329) / (1526 / 8639) = 501 / 1526.
Again, the numbers cancel each other out, and you end up with "the number of races a dog in Trap 1 was the favorite and won" divided by "the number of races where there was a dog in Trap 1".

To use Bayes properly in this instance, you are going to have to know in advance how many times a dog that was in Trap 1 and the favorite won, which is what you are trying to figure out in the first place.
jedijon
jedijon
  • Threads: 6
  • Posts: 22
Joined: Mar 14, 2016
April 17th, 2022 at 12:07:57 PM permalink
Ah ok, I understand. Thanks for your help with this.
ksdjdj
ksdjdj
  • Threads: 94
  • Posts: 1707
Joined: Oct 20, 2013
April 17th, 2022 at 3:37:49 PM permalink
Quote: ThatDonGuy

(snip)
To use Bayes properly in this instance, you are going to have to know in advance how many times a dog that was in Trap 1 and the favorite won, which is what you are trying to figure out in the first place.
link to original post


If I read this correctly, then I think the quotes below may be an example of the type of information needed ?

" . 54% of all winners from box 1 were the favorities (sic) "
and possibly (?)
" .38% of all Wentworth Park TAB favourites over the past 3 years won their races..."
". Of the eight boxes allocated for each greyhound race*, Box One (red) generated the most winners with 18.5%...."

Note 1: Box = Trap = Bay
Note 2: This is just for one track (an Australian track) and there are up to 8 dogs per race (instead of 6 in the UK?).
Note 3: Data is "based on 3650 races between June 2011 - August 2014".
Note 4: Scroll down to "Statistics" in the link below to see the full quotes/ stat info

http://www.wentworthpark.com.au/racing/how-to-bet-on-greyhounds
Last edited by: ksdjdj on Apr 17, 2022
  • Jump to: