c/c and c/f analog to c/r

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

c/c and c/f analog to c/r

Postby js2002 » Thu Oct 01, 2009 7:58 am

Hi,

c/r is defined as:
sum(if[
holdem_hand_player_statistics.flg_f_check_raise
, 1, 0])
____________
sum(if[
holdem_hand_player_statistics.flg_f_check AND
(holdem_hand_player_statistics.cnt_f_raise > 0 OR
holdem_hand_player_statistics.cnt_f_call > 0 OR
holdem_hand_player_statistics.flg_f_fold)
, 1, 0])
#########################################

Now I want to create c/f (check/fold) and reuse the denominator of check/raise (above):

The nominator for c/f:

sum(if[
lookup_actions_f.action LIKE 'XF'
, 1, 0])

OK?
##################################

Now I want to create c/c (check/call) and reuse the denominator of check/raise (above):

The nominator for c/c:

sum(if[
lookup_actions_f.action LIKE 'XC'
, 1, 0])

OK? Is there a problem here: How do I exclude XCR, XCC..., XCF. Wiered I have to think about the DEF again. Why do you think, how should if be defined? Should the these (XCR, XCC..., XCF) count?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: c/c and c/f analog to c/r

Postby js2002 » Thu Oct 01, 2009 8:42 am

I guess now that:

lookup_actions_f.action LIKE 'XC'

doesnt match XCC

so "XCC" LIKE 'XC' false

correct?

so to catch that I have to add a % ?!
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: c/c and c/f analog to c/r

Postby kraada » Thu Oct 01, 2009 8:46 am

First, your opportunities field can be significantly simplified.

Use this instead:

sum(if[
lookup_actions_f.action LIKE 'X_%'
, 1, 0])

This is true when you check, have some second action for certain and then may or may not have any third (fourth etc) actions thereafter. If you just want this stat to count flops where they have two actions, just use 'X_'.

You are correct that the XC and XF strings you use are only true for exactly XC, so XCR would not match the way you have it set up now. If you wanted XCR to match, use LIKE 'XC%' - the "%" means you can have anything else here (even nothing).

As to what you actually want, it depends on how you're going to use it. I mean, first of all, you should be aware that XCR is a fairly rare thing to find; the most likely scenario I can think of is multiway where you're out of position, you check, the middle player checks, the player IP bets, you call, then the guy in the middle raises, and then you decide to reraise - that just doesn't seem common to me. XCC probably comes up more, but again, I wouldn't expect it to be a whole lot.

Regardless, I'd make sure that your opportunity field matches whichever string setup you use otherwise all of your percentages are going to be lower than they should since some cases are just left out. Personally, I don't think it matters a ton since in my experience 3 action flop strings are just too uncommon to worry that much about, but I'd probably go with just using the two actions, and if someone does take a third action then re-evaluate in the moment for that particular hand what it could mean.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: c/c and c/f analog to c/r

Postby js2002 » Thu Oct 01, 2009 9:25 am

XCC... happens a lot in FL games.

So know I use XC% in the nominator and the cnt_f_check_raise_opp field as denominator.

I understand that your expression for denominator is more efficient, but the PT3 is using the old huge expression.
Maybe you could report the field and induce a change from:

sum(if[
holdem_hand_player_statistics.flg_f_check AND
(holdem_hand_player_statistics.cnt_f_raise > 0 OR
holdem_hand_player_statistics.cnt_f_call > 0 OR
holdem_hand_player_statistics.flg_f_fold)
, 1, 0])

to:


sum(if[
lookup_actions_f.action LIKE 'X_%'
, 1, 0])
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: c/c and c/f analog to c/r

Postby kraada » Thu Oct 01, 2009 11:00 am

Which built in column is that?
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: c/c and c/f analog to c/r

Postby js2002 » Thu Oct 01, 2009 11:11 am

kraada wrote:Which built in column is that?


This three: cnt_f_check_raise_opp, cnt_t_check_raise_opp and cnt_r_check_raise_opp
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: c/c and c/f analog to c/r

Postby kraada » Thu Oct 01, 2009 11:49 am

I'll pass this along to the appropriate people, thanks.
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