Custom Stats: Averages (e.g. average PFR)

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Custom Stats: Averages (e.g. average PFR)

Postby BigFredy » Tue Nov 27, 2012 12:54 pm

Hi,

i would like to create a stat that show e.g. the average PFR (all players, without hero).
How can i create such an average?
BigFredy
 
Posts: 6
Joined: Fri Nov 23, 2012 2:28 pm

Re: Custom Stats: Averages (e.g. average PFR)

Postby kraada » Tue Nov 27, 2012 1:05 pm

The easiest way to do this is to create a report on the My Reports tab. Make your report an All Players report, and include this Filter Expression:

player.id_player NOT IN (select distinct chps.id_player from cash_hand_player_statistics chps where chps.flg_hero)

Then look at the bottom row of the report - those are averages and you yourself are not included. Thus you'll see the average PFR there (I'm pretty sure PFR is included in the default All Players report - if not you can add it or any other stat you're curious about).
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Custom Stats: Averages (e.g. average PFR)

Postby BigFredy » Tue Nov 27, 2012 1:13 pm

But i would love to have this value on my hud.
My goal ist, to use this average value to calculate an estimator for stats with a small sample size.
BigFredy
 
Posts: 6
Joined: Fri Nov 23, 2012 2:28 pm

Re: Custom Stats: Averages (e.g. average PFR)

Postby kraada » Tue Nov 27, 2012 2:00 pm

You can add another filter expression for:

#Hands# < 100

and then see only data taken from players with less than 100 hands.

If you want to see the table average though that's something else - you can add a HUD Table Group and set it to display Table Averages and anything you put in there (VPIP, PFR, etc) shows as the average of all of the players around the table who aren't you (and it's not weighted, so everyone counts equally).
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Custom Stats: Averages (e.g. average PFR)

Postby BigFredy » Tue Nov 27, 2012 3:05 pm

For my needs i try to get the average (e.g. PFR) of all of the players in my Database at a certain Limit and thand take this value and combine it with the PFR from a specifig player. Than i have a more realable estimation for stats with a smal sample size (<50).

At the moment i get this average values from the report and than i calculate with a custom stats the estimators. But i have to update these Stats periodically. It would be nice if i could calculate the mean using some sql function.
BigFredy
 
Posts: 6
Joined: Fri Nov 23, 2012 2:28 pm


Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 11 guests

cron
highfalutin