How to:view opponents starting hand that made it to showdown

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

How to:view opponents starting hand that made it to showdown

Postby warrior04 » Thu Jul 22, 2010 10:34 am

I wanna build a stat that will show me the range of opponents starting hand that made it all the way to showdown while playing against me. (for simplicity lets say it is the only filter required)
knowing those hands and fold% (of course, with more specific filters) help building an estimated group of hands that opponents play with (for a specific situation).

I looked through the forum and found some examples like the "AA vs. KK"...
but I need to exclude myself so my hands won't be mixed with the opponents starting hands
and also i want info from all of my opponents combine, not just against a single opponent.

if to phrase it in a simple way i wanna make a report that will be exactly like the "Hands tab" except that instead of "my starting hands" will be "opponents starting hands" (that had been revealed in showdown or didn't mucked)

hope it doable... :)
warrior04
 
Posts: 39
Joined: Wed Jul 21, 2010 11:44 am

Re: How to:view opponents starting hand that made it to showdown

Postby WhiteRider » Thu Jul 22, 2010 11:39 am

I can't work out just now how to filter out your own hands, but you can create a custom report in the Holdem Cash Player Statistics section and include the HoleCards stat along with any others you're interested in. Do not include "Player" and it will group by the holecards.
I'm sure it will be possible to filter out your own hands but I don't know enough SQL to do it. Kraada will probably be able to help but he's away until next week. I'll investigate when I have some time.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How to:view opponents starting hand that made it to showdown

Postby warrior04 » Thu Jul 22, 2010 1:15 pm

thank a lot for the effort.... really appreciate it ;)

i'll try some stuff i had in mind... if i get somewhere i'll attach a report file to this post.
warrior04
 
Posts: 39
Joined: Wed Jul 21, 2010 11:44 am

Re: How to:view opponents starting hand that made it to showdown

Postby WhiteRider » Thu Jul 22, 2010 2:08 pm

OK, great.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How to:view opponents starting hand that made it to showdown

Postby warrior04 » Sun Aug 01, 2010 8:19 am

well I'm still stuck... tried some stuff with no real success... i guess my PT and SQL skill are insufficient :)

really need some help....
warrior04
 
Posts: 39
Joined: Wed Jul 21, 2010 11:44 am

Re: How to:view opponents starting hand that made it to showdown

Postby kraada » Sun Aug 01, 2010 8:55 am

The easiest way to do this is honestly to build a custom column for each hand type of the format:

sum(if[holdem_hand_player_statistics.id_holecard = X , 1, 0])

Where X is some number between 1 and 169; for details about what value denotes what hand, see this post.

Once you have all 169 columns then you can build a stat which checks them and builds the ranges you want to see dynamically.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: How to:view opponents starting hand that made it to showdown

Postby warrior04 » Sun Aug 01, 2010 2:30 pm

a couple of problems...

- when i write this code
Code: Select all
sum(if[holdem_hand_player_statistics.id_holecard = 10 , 1, 0])
I get "Expression is NOT valid!".
- even if it had been working, this isn't what I intended... this piece of code doesn't exclude my hand.
I want to see what is the range of card opponent go to showdown with and i don't want my hands mixed in it...

I used your post on "AA vs. KK", to create something similar for my need:
Code: Select all
holdem_hand_player_statistics.id_hand in (SELECT holdem_hand_player_statistics.id_hand from holdem_hand_player_statistics WHERE holdem_hand_player_statistics.id_holecard = 1)  AND holdem_hand_player_statistics.id_holecard != 1

(meaning someone had AA but not me)

the main problem with this method is:
1. I can't see the opp statistic when we have the same hand
2. I use this feature a lot, so for me to check for every single hand of my opp at any situation (different raise amount from different opp position) is really a pain taking process.
warrior04
 
Posts: 39
Joined: Wed Jul 21, 2010 11:44 am

Re: How to:view opponents starting hand that made it to showdown

Postby WhiteRider » Sun Aug 01, 2010 2:42 pm

warrior04 wrote:- when i write this code
Code: Select all
sum(if[holdem_hand_player_statistics.id_holecard = 10 , 1, 0])
I get "Expression is NOT valid!".

That expression validates fine for me - are you pasting it in a column in the Holdem Cash Player Statistics section?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How to:view opponents starting hand that made it to showdown

Postby warrior04 » Sun Aug 01, 2010 3:28 pm

i'm entering the Reports tab...
in section i choose Holde, Cash Player Statistics...
in the "edit Report Filter"...
copy paste the above code...
"Expression is NOT valid!"
warrior04
 
Posts: 39
Joined: Wed Jul 21, 2010 11:44 am

Re: How to:view opponents starting hand that made it to showdown

Postby WhiteRider » Sun Aug 01, 2010 4:30 pm

That isn't a filter expression - it is the expression for a column to use in a custom statistic.

kraada wrote:The easiest way to do this is honestly to build a custom column for each hand type of the format:

sum(if[holdem_hand_player_statistics.id_holecard = X , 1, 0])

Where X is some number between 1 and 169; for details about what value denotes what hand, see this post.

Once you have all 169 columns then you can build a stat which checks them and builds the ranges you want to see dynamically.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Next

Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests