## Basic statistics of a set of values

2009-03-09 11:21
More posts about
Hacking
Statistics

Just in order to find that when searching for it yet another time:

Problem: You have a set of values (for instance time it took to process various queries). You want a quick overview of how the values are distributed.

Solution: Store the values in a file separated by newline, read the file with R and output summary statistics.

R: times Read 30000 records

R: summary(times[[1]])

Min. 1st Qu. Median Mean 3rd Qu. Max.

6.00 12.00 13.00 16.75 14.00 8335.00

That's it.

Problem: You have a set of values (for instance time it took to process various queries). You want a quick overview of how the values are distributed.

Solution: Store the values in a file separated by newline, read the file with R and output summary statistics.

R: times Read 30000 records

R: summary(times[[1]])

Min. 1st Qu. Median Mean 3rd Qu. Max.

6.00 12.00 13.00 16.75 14.00 8335.00

That's it.