CB ip and opp hu 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

CB ip and opp hu stat

Postby kes1981 » Fri Aug 13, 2010 11:37 pm

I have the following for cb ip in a hu pot (2 players to flop) :

sum(if[holdem_hand_player_statistics.flg_f_cbet and holdem_hand_player_detail.flg_f_has_position and holdem_hand_summary.cnt_players_f = 2, 1, 0])

sum(if[holdem_hand_player_statistics.flg_f_cbet_opp and holdem_hand_player_detail.flg_f_has_position and holdem_hand_summary.cnt_players_f = 2, 1, 0])

I have this for cb oop in a hu pot :

sum(if[holdem_hand_player_statistics.flg_f_cbet and holdem_hand_player_detail.val_p_raise_aggressor_pos > holdem_hand_player_statistics.position AND holdem_hand_summary.cnt_players_f = 2, 1, 0])

sum(if[holdem_hand_player_statistics.flg_f_cbet_opp and holdem_hand_player_detail.val_p_raise_aggressor_pos > holdem_hand_player_statistics.position AND holdem_hand_summary.cnt_players_f = 2, 1, 0])


Are these correct?
kes1981
 
Posts: 141
Joined: Tue Aug 10, 2010 6:28 pm

Re: CB ip and opp hu stat

Postby WhiteRider » Sat Aug 14, 2010 4:31 am

The IP one looks fine, and the OOP one will be OK most of the time, but will include some hands that you don't want.
For example, if we're looking at this from player X's position in the cutoff and:
hijack limps, X 2-bets, button 3-bets, hijack calls, X 4-bets, button folds, hijack calls.
Here the only player to raise other than X was the button, so the raise aggressor position is 0 and in your expression X will be out of position, which is not correct.

You can just use "NOT holdem_hand_player_detail.flg_f_has_position", though.
sum(if[holdem_hand_player_statistics.flg_f_cbet and (NOT holdem_hand_player_detail.flg_f_has_position) and holdem_hand_summary.cnt_players_f = 2, 1, 0])
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: CB ip and opp hu stat

Postby marvin » Sat Aug 14, 2010 8:57 am

???than X was the button, so the raise aggressor position is 0
sorry, WR, but the aggressor position is the position of the last raiser preflop? In my opinion the aggressor position is the position of player X, not P0.
it's your disctraction, or i need a lot of study about PFA position??
about
"cb oop in a hu pot " (not your proposition, but the first) it will not work why the cbettor has the same (not ">") position of PFA so the proposition of the our friend is wrong, and im agree with your.
marvin
 
Posts: 327
Joined: Tue Jul 08, 2008 10:17 am

Re: CB ip and opp hu stat

Postby WhiteRider » Sat Aug 14, 2010 3:31 pm

The raise aggressor position (RAP) is the last player to raise OTHER THAN THE ACTIVE PLAYER. If the active player is the button then the RAP will never be 0.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: CB ip and opp hu stat

Postby kes1981 » Sat Aug 14, 2010 4:47 pm

WhiteRider wrote:The IP one looks fine, and the OOP one will be OK most of the time, but will include some hands that you don't want.
For example, if we're looking at this from player X's position in the cutoff and:
hijack limps, X 2-bets, button 3-bets, hijack calls, X 4-bets, button folds, hijack calls.
Here the only player to raise other than X was the button, so the raise aggressor position is 0 and in your expression X will be out of position, which is not correct.

You can just use "NOT holdem_hand_player_detail.flg_f_has_position", though.
sum(if[holdem_hand_player_statistics.flg_f_cbet and (NOT holdem_hand_player_detail.flg_f_has_position) and holdem_hand_summary.cnt_players_f = 2, 1, 0])


I am entering it, but it's not a valid statement.... maybe the (not holdem, etc) part
kes1981
 
Posts: 141
Joined: Tue Aug 10, 2010 6:28 pm

Re: CB ip and opp hu stat

Postby WhiteRider » Sun Aug 15, 2010 9:37 am

When I copy&paste that exact expression into a column in the Holdem Cash Player Statistics section it validates.
Just paste all of it over your previous expression, or create a new column and paste it in.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: CB ip and opp hu stat

Postby VNix » Tue Aug 17, 2010 1:30 pm

Hello
For not HU i can used this?:

Flop CBet In Pos
sum(if[holdem_hand_player_statistics.flg_f_cbet and holdem_hand_player_detail.flg_f_has_position, 1, 0])
sum(if[holdem_hand_player_statistics.flg_f_cbet_opp and holdem_hand_player_detail.flg_f_has_position, 1, 0])

Flop CBet Out Of Pos
sum(if[holdem_hand_player_statistics.flg_f_cbet and (NOT holdem_hand_player_detail.flg_f_has_position), 1, 0])
sum(if[holdem_hand_player_statistics.flg_f_cbet_opp and (NOT holdem_hand_player_detail.flg_f_has_position), 1, 0])

Turn CBet In Pos
sum(if[holdem_hand_player_statistics.flg_t_cbet and holdem_hand_player_detail.flg_t_has_position, 1, 0])
sum(if[holdem_hand_player_statistics.flg_t_cbet_opp and holdem_hand_player_detail.flg_t_has_position, 1, 0])

Turn CBet Out Of Pos
sum(if[holdem_hand_player_statistics.flg_t_cbet and (NOT holdem_hand_player_detail.flg_t_has_position), 1, 0])
sum(if[holdem_hand_player_statistics.flg_t_cbet_opp and (NOT holdem_hand_player_detail.flg_t_has_position), 1, 0])
VNix
 
Posts: 11
Joined: Thu Apr 15, 2010 2:49 pm

Re: CB ip and opp hu stat

Postby kraada » Tue Aug 17, 2010 2:30 pm

Those should work properly.
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