Bug 105148 - Add a script to compute the mean and 95% confidence interval (using two-sided t-test) of a sample set
Summary: Add a script to compute the mean and 95% confidence interval (using two-sided...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Maciej Stachowiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-16 18:58 PST by Maciej Stachowiak
Modified: 2012-12-16 19:18 PST (History)
0 users

See Also:


Attachments
Patch (7.58 KB, patch)
2012-12-16 18:59 PST, Maciej Stachowiak
fpizlo: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Stachowiak 2012-12-16 18:58:42 PST
Add a script to compute the mean and 95% confidence interval (using two-sided t-test) of a sample set
Comment 1 Maciej Stachowiak 2012-12-16 18:59:01 PST
Created attachment 179680 [details]
Patch
Comment 2 Maciej Stachowiak 2012-12-16 19:01:23 PST
$ sampstat --help
Usage: sampstat [options] [FILES]
  Compute the mean and 95% confidence interval of a sample set.
  Standard input or files must contain at two or more decimal numbers, one per line.

Options:
  -h, --help            show this help message and exit
  -u UNIT, --unit=UNIT  assume values are in units of UNIT
  -v, --verbose         print all values (with units)

$ sampstat -u MB memresults.txt
2356.90 MB +/- 101.34 MB (4.3%)

$ sampstat -v -u MB memresults.txt
      2318.21 MB
      2399.56 MB
      2352.93 MB
----------------
Mean: 2356.90 MB +/- 101.34 MB (4.3%)
Comment 3 Filip Pizlo 2012-12-16 19:02:48 PST
Comment on attachment 179680 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=179680&action=review

> Tools/ChangeLog:8
> +        Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).

should probably say things
Comment 4 Maciej Stachowiak 2012-12-16 19:18:30 PST
Committed r137869: <http://trac.webkit.org/changeset/137869>