create stat: minraise flop

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

create stat: minraise flop

Postby dumdidum » Tue Jan 20, 2009 6:05 pm

Unfortunately, I don't know *any* SQL.

I would like to create a stat "min-raised flop." I first create a column named c_f_min_raise with expression

sum(if[ (holdem_hand_player_detail.amt_f_raise_made=(holdem_hand_player_detail.amt_f_bet_facing*2) AND holdem_hand_player_detail.amt_p_raise_facing > 0), 1 , 0])

and then create a statistic with expression

cnt_f_min_raise

and format /%.2f. I do this trying to test if I correctly count the absolute number of min-raises (of course, I want to make this a percentage later on to have a stat that describes what percentage of the time a player min-raises when given the opportunity).

The results of this exercise appear to be garbage. Of course, I know the saying "garbage in, garbage out" but I cannot figure what's the garbage I put in :lol:

Any pointers on how to do this right?
dumdidum
 
Posts: 38
Joined: Wed Apr 30, 2008 4:44 pm

Re: create stat: minraise flop

Postby kraada » Tue Jan 20, 2009 6:16 pm

I've been wondering if you could build this one for a while but haven't had a chance to take a deep look at it. I'll take a look at this stat more closely and get back to you with why this isn't working quite right.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: create stat: minraise flop

Postby WhiteRider » Wed Jan 21, 2009 1:04 pm

First thought is that you are using: holdem_hand_player_detail.amt_p_raise_facing
..which is a preflop field, and you're using that to tell when you are facing a raise, but you might not be facing a raise if you are facing a bet.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: create stat: minraise flop

Postby dumdidum » Thu Jan 22, 2009 12:06 am

Thanks to both of you. That is indeed a mistake, I didn't mean to use a PF stat, I'll correct that first and see what happens..
dumdidum
 
Posts: 38
Joined: Wed Apr 30, 2008 4:44 pm

Re: create stat: minraise flop

Postby kraada » Thu Jan 22, 2009 10:51 am

Please keep us posted, as if it doesn't work I'd like to make sure that whatever needs to gets fixed promptly.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: create stat: minraise flop

Postby dumdidum » Mon Jan 26, 2009 9:05 pm

Ok, just a quick update, I made the change and it didn't work. I didn't really have time to think about this yet. I will experiment more before I ask you further questions.

My idea was that I want to only consider hands for which a player is both facing a flop bet (holdem_hand_player_detail.amt_f_bet_facing is true) and he makes a flop raise for which it is true that the flop raise size is two times the size of the bet the player is facing.

Once again, no need at all for you guys to get back to me. I'll post again, might be a few days though.
dumdidum
 
Posts: 38
Joined: Wed Apr 30, 2008 4:44 pm

Re: create stat: minraise flop

Postby Animosius » Tue Jan 27, 2009 8:44 pm

shouldnt it be facing a bet and not a raise?

sum(if[ (holdem_hand_player_detail.amt_f_raise_made=(holdem_hand_player_detail.amt_f_bet_facing*2) AND holdem_hand_player_detail.amt_f_bet_facing > 0), 1 , 0])
Animosius
 
Posts: 7
Joined: Tue Jan 13, 2009 1:47 am

Re: create stat: minraise flop

Postby WhiteRider » Wed Jan 28, 2009 7:03 am

Animosius wrote:shouldnt it be facing a bet and not a raise?

sum(if[ (holdem_hand_player_detail.amt_f_raise_made=(holdem_hand_player_detail.amt_f_bet_facing*2) AND holdem_hand_player_detail.amt_f_bet_facing > 0), 1 , 0])

Good spot!
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 1 guest