Stat "Set %"

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

Stat "Set %"

Postby Ferwan » Tue Oct 06, 2009 3:15 pm

Hi,

how can I make a stat that shows the percentage of times I flopped a set?? The stat would be like the one in the HEM.

I've tried several formulas but they are all wrong.

Regards
Ferwan
 
Posts: 11
Joined: Sat Sep 27, 2008 12:22 am

Re: Stat "Set %"

Postby kraada » Tue Oct 06, 2009 3:46 pm

There's a report in the repository that should have flopped set percentage; once you have the stat from there you can use it elsewhere - unless that's the one that wasn't working for you?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat "Set %"

Postby Ferwan » Tue Oct 06, 2009 4:56 pm

I know that report, but it shows a ratio, not a percentage.

However, the stat from the repository doesn't work for the holdem cash player statistics section. I'm trying to create a column that counts the holecards ONLY when I have pocket pair, but it counts ALL hands I have in my database.

Looks like this:

count(holdem_hand_player_statistics.id_holecard=1 OR holdem_hand_player_statistics.id_holecard=26 OR holdem_hand_player_statistics.id_holecard=49 OR holdem_hand_player_statistics.id_holecard=70 OR holdem_hand_player_statistics.id_holecard=89 OR holdem_hand_player_statistics.id_holecard=106 OR holdem_hand_player_statistics.id_holecard=121 OR holdem_hand_player_statistics.id_holecard=134 OR holdem_hand_player_statistics.id_holecard=145 OR holdem_hand_player_statistics.id_holecard=154 OR holdem_hand_player_statistics.id_holecard=161 OR holdem_hand_player_statistics.id_holecard=166 OR holdem_hand_player_statistics.id_holecard=169)

When I use the report, shows 62 flopped sets on 975 sampled times I have pocket pairs. But when I use the stats, shows 220 flopped sets on ALL hands.

I think the formula would be: (total pocket pairs seeing flop / total flopped sets) * 100, but I don't know how to create them.

Regards
Ferwan
 
Posts: 11
Joined: Sat Sep 27, 2008 12:22 am

Re: Stat "Set %"

Postby kraada » Tue Oct 06, 2009 5:12 pm

I thought the stat "Flopped Set Percentage" was in that report; I guess it was somewhere else.

Regardless:

cnt_pp_saw_flop:
sum(if[holdem_hand_player_statistics.flg_f_saw AND (lookup_hole_cards.id_holecard = 1 OR lookup_hole_cards.id_holecard = 26 OR lookup_hole_cards.id_holecard = 49 OR lookup_hole_cards.id_holecard = 70 OR lookup_hole_cards.id_holecard = 89 OR lookup_hole_cards.id_holecard = 106 OR lookup_hole_cards.id_holecard = 121 OR lookup_hole_cards.id_holecard = 134 OR lookup_hole_cards.id_holecard = 145 OR lookup_hole_cards.id_holecard = 154 OR lookup_hole_cards.id_holecard = 161 OR lookup_hole_cards.id_holecard = 166 OR lookup_hole_cards.id_holecard = 169), 1, 0])

cnt_pp_saw_flop_with_set:
sum(if[holdem_hand_player_statistics.flg_f_saw AND holdem_hand_player_combinations.flg_f_threeoak AND (lookup_hole_cards.id_holecard = 1 OR lookup_hole_cards.id_holecard = 26 OR lookup_hole_cards.id_holecard = 49 OR lookup_hole_cards.id_holecard = 70 OR lookup_hole_cards.id_holecard = 89 OR lookup_hole_cards.id_holecard = 106 OR lookup_hole_cards.id_holecard = 121 OR lookup_hole_cards.id_holecard = 134 OR lookup_hole_cards.id_holecard = 145 OR lookup_hole_cards.id_holecard = 154 OR lookup_hole_cards.id_holecard = 161 OR lookup_hole_cards.id_holecard = 166 OR lookup_hole_cards.id_holecard = 169), 1, 0])

Then create a stat that puts the latter over the former, multiply by 100 and you should be good to go.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat "Set %"

Postby Ferwan » Tue Oct 06, 2009 6:11 pm

Works perfectly!!! :D :D :D :D :D

Thanks a lot!!!

I realized than the report takes all the situations, even you see the flop or not. That's why there was a difference between the report and the stat.

Regards
Ferwan
 
Posts: 11
Joined: Sat Sep 27, 2008 12:22 am

Re: Stat "Set %"

Postby kraada » Wed Oct 07, 2009 8:54 am

Ah, that would do it :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat "Set %"

Postby euneva » Sat May 08, 2010 7:10 am

i use the following stat from repository:
Set % (x/y), Author: Ferwan, Cash, Date: Oct. 07, 2009
and seems to works fine.

for a very large sample (979,251 hands) i have this stat showing 10.85% (3678 / 33910)

as far as i know the math says the odds for a hole pair flopping a set (or quads) are 11.75510204 %

can you please check in the repository if the custom stat specified above counts only flopping exactly sets or also quads?

maybe thats why the difference between 10.85% and 11.75%

if my assumption is right please help me to modify this custom stat accordingly, or even better upload a new one in the repository

thanks in advance!
euneva
 
Posts: 33
Joined: Thu May 15, 2008 5:41 pm

Re: Stat "Set %"

Postby kraada » Sat May 08, 2010 11:21 am

That's only exactly sets. It doesn't count full houses or quads.

To add in full houses and quads, edit cnt_pp_saw_flop_with_set to read as follows:
sum(if[holdem_hand_player_statistics.flg_f_saw AND (holdem_hand_player_combinations.flg_f_threeoak OR holdem_hand_player_combinations.flg_f_fouroak OR holdem_hand_player_combinations.flg_f_fullhouse) AND (lookup_hole_cards.id_holecard = 1 OR lookup_hole_cards.id_holecard = 26 OR lookup_hole_cards.id_holecard = 49 OR lookup_hole_cards.id_holecard = 70 OR lookup_hole_cards.id_holecard = 89 OR lookup_hole_cards.id_holecard = 106 OR lookup_hole_cards.id_holecard = 121 OR lookup_hole_cards.id_holecard = 134 OR lookup_hole_cards.id_holecard = 145 OR lookup_hole_cards.id_holecard = 154 OR lookup_hole_cards.id_holecard = 161 OR lookup_hole_cards.id_holecard = 166 OR lookup_hole_cards.id_holecard = 169), 1, 0])

Then run the report again and you should be good to go.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Stat "Set %"

Postby euneva » Sat May 08, 2010 12:27 pm

ok.

now please tell me how to differentiate between full-houses where flop is XXX.

in other words i want to not include the situations where hole pair is 'PP' and flop is 'XXX' and therefore counts as a full house BUT include those full-houses like hole is 'PP' and flop is 'PXX'

i need this because i want my stat to show exactly the situations when at least one 'P' card (or two) is flopped.

thanks again.
euneva
 
Posts: 33
Joined: Thu May 15, 2008 5:41 pm

Re: Stat "Set %"

Postby kraada » Sat May 08, 2010 12:50 pm

When you have a full house and holdem_hand_player_combinations.id_f_hand_strength >= 6, the board does not contain trips on the flop.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Next

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

Who is online

Users browsing this forum: No registered users and 9 guests