Amount of money put in pot

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

Amount of money put in pot

Postby inverted » Wed Sep 09, 2009 7:57 am

Hi,

I have spent some time looking around the forum but have been unable to find what I am after. Any clues on where to start for the following stats:
    Average amount of money put in the pot by villain after someone has called his raise
    Average amount of money put in the pot by villain if you 3bet
    Average amount of money put in the pot by villain after someone has called his 3bet
    Average amount of money put in the pot by villain if you 4bet

I read the following viewtopic.php?f=18&t=20671 which makes me think it is doable.

Thanks in advance for any help, otherwise I will tinker through
inverted
 
Posts: 4
Joined: Sat Sep 05, 2009 11:34 pm

Re: Amount of money put in pot

Postby WhiteRider » Wed Sep 09, 2009 8:32 am

Are you trying to build custom stats for these?

They should all be possible (as long as by "if you 3bet" you mean if villain bets? - you can only build stats from the point of view of the player making the actions), although it depends what you mean, exactly, by "after someone has called his raise"?

You can easily determine the total amount bet by a player in a hand using holdem_hand_player_detail.amt_bet_ttl
So you'd do:
SUM( if[ holdem_hand_player_statistics.flg_p_4bet, holdem_hand_player_detail.amt_bet_ttl, 0 ] )
..which means: the sum across all hands of :- if the player 4-bet add the total they bet in this hand, otherwise add 0.

However getting the amount bet after a certain action is a little trickier.
You can get the amount bet on each street using fields like: holdem_hand_player_detail.amt_bet_p, and there are fields for the first and last raises on each betting round: holdem_hand_player_detail.amt_p_raise_made and holdem_hand_player_detail.amt_p_raise_made2, and the bet made on each street: holdem_hand_player_detail.amt_f_bet_made.
You could use these to find out how much the player had bet up to the point you're interested in and then deduct that from the total they bet in the hand if you want to find out how much they bet AFTER the point you're interested in.
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 0 guests