flop turn action combination stat

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

flop turn action combination stat

Postby mkjmkjmkj » Thu Aug 25, 2011 5:32 am

i have tried to make some stats on if they bet flop how often do they call bet or fold turn in and out of position.
most of the the time my stats seems to work but sometimes the call and fold percentages dont add up and are less than hundred. its not because the opponent raises the turn because i have seen it where there have been no raising on the turn.

here is the stats.

bet call flop turn in position = (cnt_f_t_bet_call_pos / cnt_f_t_bet_bet_def_pos) * 100

cnt_f_t_bet_call_pos = sum( if[ holdem_hand_player_statistics.flg_f_bet and (lookup_actions_f.action SIMILAR TO '(C|XC)%') and holdem_hand_player_detail.flg_t_has_position , 1 , 0 ] )

cnt_f_t_bet_bet_def_pos = sum( if[holdem_hand_player_statistics.flg_f_bet and holdem_hand_player_detail.amt_t_bet_facing > 0 and holdem_hand_player_detail.flg_t_has_position , 1 , 0 ] )



bet fold flop turn in position = (cnt_f_t_bet_fold_pos / cnt_f_t_bet_bet_def_pos) * 100

cnt_f_t_bet_fold_pos = sum( if[ holdem_hand_player_statistics.flg_f_bet and holdem_hand_player_detail.val_t_bet_facing_pct>0 and holdem_hand_player_statistics.flg_t_fold and holdem_hand_player_detail.flg_f_has_position , 1 , 0 ] )


cnt_f_t_bet_bet_def_pos = sum( if[holdem_hand_player_statistics.flg_f_bet and holdem_hand_player_detail.amt_t_bet_facing > 0 and holdem_hand_player_detail.flg_t_has_position , 1 , 0 ] )
mkjmkjmkj
 
Posts: 91
Joined: Mon May 30, 2011 5:41 am

Re: flop turn action combination stat

Postby kraada » Thu Aug 25, 2011 8:57 am

Well a couple of things come up here:

holdem_hand_player_statistics.flg_f_bet and (lookup_actions_f.action SIMILAR TO '(C|XC)%')

These can never both be true - your first flop action must be bet if flg_f_bet is true. Perhaps you meant lookup_actions_t?

In cnt_f_t_bet_fold_pos, you use flg_t_fold but you either need to add: AND NOT(cnt_t_raise > 0) or change it to lookup_actions_t.action SIMILAR TO '(F|XF)' - otherwise you could have a situation where you raise his bet and fold to a shove.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


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

Who is online

Users browsing this forum: No registered users and 0 guests