Questions in topic: "frequency-table"
https://answers.splunk.com/answers/topics/single/161363.html
The latest questions for the topic "frequency-table"How to compute stats (mean, median, mode) over a frequency table?
https://answers.splunk.com/answers/27052/how-to-compute-stats-mean-median-mode-over-a-frequency-table.html
I have a search which returns the result as frequency table:
<pre><code>
uploads frequency
0 6
1 4
2 1
5 1
</code></pre>
Basically, 6 users have uploaded 0 times, 4 users uploaded 1 time, and so on.
Now I want to compute stats such as the mean, median, and mode. Is there an easier way to compute stats directly on a frequency table such as this? (ie mean should be 0.916666, and mode is 0) This seems to be something that is required quite often, yet I haven't found a way to do it.
I understand there's way to calculate stats on the data before I turn it into a frequency table, the problem is that the query is rather complex (because in order to include the `upload == 0` case, I had to do a lot of extra work). In other words, the underlying logs have no events when there are no uploads, but to calculate accurate statistics, the 0 events must be taken into consideration.statstablesearch-languagefrequencyTue, 28 Jun 2011 21:55:13 GMTjyzhang