Auc-Stat-Simple
Uit Norganna's AddOns
Inhoud |
Purpose
This is a simple statistics module designed to be an example of what can be done more than a really serious statistics module that provides highly accurate and configurable statistics.
It stores all the stats that it receives for an item on a given day as a mean value, and at the end of the day, rolls this data into 3, 7 and 14 day exponential moving averages (EMA).
Strengths
It can show you valuable trend data, so that you can see if an item's price is going up or down over time.
Weaknesses
It has several weaknesses, in that the "days" represented in the moving averages do not account for how many were seen on that day, or how many times you scanned during the day, or the completeness of the scans. A day is around 24 hours worth of scans even if you only scanned one time during the day.
The current day average is never tempered by long-term price trends. The current day average can be very fickle, which is why the 3-Day price is generally used instead of the current daily price for market price data (when it is available)
Options
The following options are available for the Simple statistic:
Data Storage Format
The data is stored in the Auc-Stat-Simple.lua SV file in the following format. There are 2 tables: "daily" (containing today's data) and "means" (containing the 3/7/14 day EMAs and other info). Each entry is packed into a string, with separators : ; , indicating where different sections start or end.
Daily table
Each entry for "daily" will be of the form:
[itemID] = "property:totalPrice;itemCount;minBO"
totalPrice is the total value of all auctions of that item seen on that day. Average price will be = totalPrice/itemCount
Means table
Each entry for "means" will be of the form:
[itemID] = "property:dayCount;itemCount;EMA3;EMA7;EMA14;averageMinBO"
At the start of each day, the daily stats get merged into the means table. dayCount is the number of times this has happened. It is displayed in the tooltip in the line "Seen X over Y days".
Note that if the item was not seen in a particular day, the dayCount for that item will not increase so this is not a true count of the number of days over which you have been scanning, but rather the number of days you have actually seen the item while scanning.
Property information
The property field describes the item's random enchant/suffix (as described here), and may be:
- 0 - meaning no suffix
- A positive number - found on some older low-level items
- Two numbers separated by a x character - in this case the first number is always negative, e.g. -43x23
If 'property' is not 0, the string may contain multiple entries of the same format, separated by commas.
Sample data
A sample set of data:
[36912] = "0:4;5541;11891.8;17648.3;20579.4;6301.4", [36912] = "0:4174825;574;4448", [25061] = "-43x23:2;2;82130.0;85624.3;86934.6;79072.5,-15x23:1;1;132691.0;132691.0;132691.0;132691.0,-18x23:1;1;50000;50000;50000;50000",
