check it please

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

check it please

Postby js2002 » Sun Sep 11, 2011 8:15 am

sum( if[ ((NOT holdem_hand_player_statistics.flg_p_face_raise) OR holdem_hand_player_statistics.flg_p_limp OR holdem_hand_player_statistics.flg_p_first_raise) AND NOT holdem_hand_player_statistics.flg_p_open_opp AND NOT holdem_hand_player_statistics.flg_blind_b, 1 , 0 ] )

the is the LWPC denumerator
does it the correct thing?
I dont get my old stat^^
(it was made for the bb bug but the other code looks wierd)
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: check it please

Postby kraada » Sun Sep 11, 2011 8:26 am

Yes. I'll walk through it for you, though it's a bit easier to do it back to front:

If you're in the big blind you cannot limp, so you cannot LWPC, hence we want NOT(in big blind).

If you had a chance to open, you can't be behind other limpers and thus cannot LWPC - so we want NOT(had a chance to open).

So now let's look at what we have left: you're not in the big blind and someone else opened. What we want are the times when you had limpers in front of you. We're lumping everything else from here on out together (notice the ()s).

If we never face a raise, then we definitely could LWPC - because there must be limpers in front of us - so we add not(face raise). Note that this catches all situations when there are limpers in front of us and we fold (because we never face a raise). If we do limp, we certainly could limp - so we can either not face a raise, or limp - either of those catches the right spots. Then we add "made the first raise". If we made the first raise, the people in front of us must have limped. So we OR that in with the other two.

This then catches all of the times we could LWPC because we now have all of the reactions we could make - if we fold, we never face a raise. If we call, we've limped. If we raise, we make the first raise. We cannot make any other action, so we must have the complete sample of times when we could.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: check it please

Postby js2002 » Sun Sep 11, 2011 8:32 am

grat that u give me a chance to look into ur thinking.

antoher question: why does the org denum allow bb limps?
You dont have the opp to limp or overlimp when in bb.
Or is the org denum fixed now?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: check it please

Postby kraada » Sun Sep 11, 2011 10:34 am

What you pasted is the LWPC denominator - I'm not sure what you're asking.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: check it please

Postby js2002 » Sun Sep 11, 2011 10:37 am

I posted my LWPC debugged (custom) denumerator here.

Im asking if the original LWPC denumerator is fixed now?
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany

Re: check it please

Postby kraada » Sun Sep 11, 2011 11:00 am

cnt_p_limp_after_limpers_opp is defined as:
sum( if[ (NOT(holdem_hand_player_statistics.flg_p_face_raise) OR (holdem_hand_player_statistics.flg_p_limp) OR (holdem_hand_player_statistics.flg_p_first_raise)) AND NOT(holdem_hand_player_statistics.flg_blind_b) AND NOT(holdem_hand_player_statistics.flg_p_open_opp), 1 , 0 ] )

Which is functionally equivalent to what you have.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: check it please

Postby js2002 » Sun Sep 11, 2011 11:07 am

oy tu then i got fixed
js2002
 
Posts: 1502
Joined: Fri Feb 15, 2008 5:44 am
Location: Germany


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

Who is online

Users browsing this forum: No registered users and 0 guests