How do I get the size of my opponent's first raise?

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

How do I get the size of my opponent's first raise?

Postby minbulle » Mon Sep 19, 2011 5:50 pm

If I understand correctly, the amt_f_raise_facing is the total amount my opponent raised on the flop. I'm only interested in the size of his first raise. So if the action goes like this...

Hero bets 100
Villain raises 200
Hero raises 300
Villain raises 400

I'm only interested in the size of his first raise (200), not the total amount of the two raises he made. I hope this makes sense.

Thanks a bunch for your help.
minbulle
 
Posts: 4
Joined: Sat Aug 20, 2011 3:39 pm

Re: How do I get the size of my opponent's first raise?

Postby WhiteRider » Tue Sep 20, 2011 3:51 am

I'm afraid that information isn't stored in the database. The first and last raise you make are stored, but only the last raise you faced.
You may be able to infer the information you want in this case (where you are against a single opponent) by using the size of your bet (holdem_hand_player_detail.amt_f_bet_made) and the absolute and relative sizes of your first raise.
The absolute size is "holdem_hand_player_detail.amt_f_raise_made"
The relative size is "holdem_hand_player_detail.val_f_raise_made_pct"

(I'll leave out the table names here for clarity, but you'll need them in your expression of course.)

In your example:
amt_f_bet_made = 100
amt_f_raise_made = 300
val_f_raise_made_pct = (200 - 100) / (100 + 200) = 100 / 300 = 33%

I don't know exactly what you're trying to do, but we can probably work out what you need from the above fields if you want to explain what you're trying to build...

If you're playing tournaments you'll need to add "tourney_" to the start of the table names, or change holdem for omaha if you're playing omaha.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: How do I get the size of my opponent's first raise?

Postby minbulle » Tue Sep 27, 2011 4:32 am

Thanks for your response. I'm trying to figure out how different raise sizes from villain affects hero's folding frequency. I want to know the size of villain's first raise to see how often hero folds to different raise sizes. Any idea on how to accomplish this?

Thanks
minbulle
 
Posts: 4
Joined: Sat Aug 20, 2011 3:39 pm

Re: How do I get the size of my opponent's first raise?

Postby kraada » Tue Sep 27, 2011 8:33 am

I cannot think of a way to do this in a simple fashion, I'm afraid.
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