Obtaining Summary Statistics for Online Poker

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

Obtaining Summary Statistics for Online Poker

Postby AntiMatter » Mon Jun 07, 2010 10:14 am

I actually posted this over in the zoo at 2+2, but I thought I might get a better response here ;) so apologies for the x-post. Just wondering if any of you can help me out by thinking about this problem:

I'm trying to generate Summary Statistics for online gambling for a research publication. Ideally, I would like to get the following stats for all major networks:

Average hands per day at mid/high/low by game type
Average potsize per hand at mid/high/low by game type.

These statistics could then be multiplied to determine the size and scope of online gambling, understand money flows through the community, and answer question such as whether the industry is in decline.

However, these stats arent terribly easy to generate or discover, as far as I can work out. The three main sources of data I can think of are:

1) The annual reports of the publicly traded companies. However, these only tend to talk about revenue and thus aren't very helpful.
2) I have substatial quantities of mined data for the major sites. From this, I can get a good idea of average potsize. However, I do not know what % coverage I am getting, so I do not know the hands/day at each site. Furthermore, I only have data for NLHE.
3) Information from e.g. pokersitesc***. They provide player counts, but it is difficult/impossible to convert this into hands/day.

THe best solution I can think of is to use some sort of hack to convert player counts (from pokersitesc) into hands/day (e.g. by using average players/hand and hands/hour from mined data):

E.g: ( ( TotalPlayerCount / AveragePlayersPerHand ) * Hands/hour * 24) = Hands/day

So my key questions are:

1) Is there a better way of doing this? My method all seems like a big fudge.
2) Can I obtain AveragePlayersPerHand from PT3?

Any ideas welcome. Feel free to PM me with any other potentially useful resources which cant necessarily be mentioned here.


Thanks in advance.
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Obtaining Summary Statistics for Online Poker

Postby kraada » Mon Jun 07, 2010 11:28 am

Off the top of my head I'm not sure of a better way, but I'll mull it over some and if I think of something I'll let you know.

You can get average players/hand from PT3, though you'd need to create a custom statistic to do it, though if you just want it for your entire database the easiest way is to run a PostgreSQL query directly - click Start --> Programs --> PostgreSQL --> psql to 'postgres', the default password is 'dbpass' then hit enter. At the prompt type \l and hit enter to list databases then \connect "Your Database Name" and hit enter to connect to your database. Then run this query to get the average number of players per hand at cash games:
select avg(cnt_players) from holdem_hand_summary;

Also one note: You're assuming that everyone plays 24 tables. That may or may not be the actual case.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Obtaining Summary Statistics for Online Poker

Postby WhiteRider » Mon Jun 07, 2010 2:49 pm

kraada wrote:Also one note: You're assuming that everyone plays 24 tables. That may or may not be the actual case.

..or he's working out the number of hands per hour and multiplying by 24 to get the number per day... ;)
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Obtaining Summary Statistics for Online Poker

Postby kraada » Mon Jun 07, 2010 2:54 pm

:oops:
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Obtaining Summary Statistics for Online Poker

Postby AntiMatter » Tue Jun 08, 2010 6:31 am

kraada wrote:Off the top of my head I'm not sure of a better way, but I'll mull it over some and if I think of something I'll let you know.

You can get average players/hand from PT3, though you'd need to create a custom statistic to do it, though if you just want it for your entire database the easiest way is to run a PostgreSQL query directly - click Start --> Programs --> PostgreSQL --> psql to 'postgres', the default password is 'dbpass' then hit enter. At the prompt type \l and hit enter to list databases then \connect "Your Database Name" and hit enter to connect to your database. Then run this query to get the average number of players per hand at cash games:
select avg(cnt_players) from holdem_hand_summary;

Also one note: You're assuming that everyone plays 24 tables. That may or may not be the actual case.


Great help as always kraada. Please do mull over it and if you have any thoughts at all they are welcome.

I need the AvNoOfPlayersPerHand by stake/site etc, so I'm creating a custom stat.

1) In the Holdem Cash Player Statistics section of Configure Stats, I created TotalNoOfPlayer: sum(holdem_hand_summary.cnt_players)
2) I then created the custom stat AvNoOfPlayers: (TotalNoOfPlayer / cnt_hands )

How does this look?
However, when I run the report, it doesn't show up........ do I just need to rebuild the cache?
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Obtaining Summary Statistics for Online Poker

Postby kraada » Tue Jun 08, 2010 9:04 am

Add the Player and Hands stats to your report with your new stat also. Make sure your new column is set to summary type Average and then the summary line for the custom report should be the average number of players per hand for the whole report. (Make sure you've unticked Filter on Active Player.)

Also: You did remember to add a Title and Width on the Format tab right? :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Obtaining Summary Statistics for Online Poker

Postby AntiMatter » Tue Jun 08, 2010 1:02 pm

kraada wrote:Also: You did remember to add a Title and Width on the Format tab right? :)


Doh! Second time this got me..... you really should have a default column width inserted when creating a new variable ;)
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Obtaining Summary Statistics for Online Poker

Postby kraada » Tue Jun 08, 2010 3:02 pm

If it makes you feel any better it's gotten me many more times than twice :)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Obtaining Summary Statistics for Online Poker

Postby pasita » Thu Jun 10, 2010 11:23 am

AntiMatter wrote:
Doh! Second time this got me..... you really should have a default column width inserted when creating a new variable ;)


This. Need to create an actual bug report?
pasita
 
Posts: 605
Joined: Tue May 06, 2008 4:05 pm

Re: Obtaining Summary Statistics for Online Poker

Postby kraada » Thu Jun 10, 2010 1:30 pm

It can't hurt, and you'll get auto notification if this is fixed.
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