xref: /freebsd/usr.bin/ministat/ministat.1 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
18f2c52e6SPoul-Henning Kamp.\"
28f2c52e6SPoul-Henning Kamp.\" Copyright (c) 2007 Poul-Henning Kamp
38f2c52e6SPoul-Henning Kamp.\" All rights reserved.
48f2c52e6SPoul-Henning Kamp.\"
58f2c52e6SPoul-Henning Kamp.\" Redistribution and use in source and binary forms, with or without
68f2c52e6SPoul-Henning Kamp.\" modification, are permitted provided that the following conditions
78f2c52e6SPoul-Henning Kamp.\" are met:
88f2c52e6SPoul-Henning Kamp.\" 1. Redistributions of source code must retain the above copyright
98f2c52e6SPoul-Henning Kamp.\"    notice, this list of conditions and the following disclaimer.
108f2c52e6SPoul-Henning Kamp.\" 2. Redistributions in binary form must reproduce the above copyright
118f2c52e6SPoul-Henning Kamp.\"    notice, this list of conditions and the following disclaimer in the
128f2c52e6SPoul-Henning Kamp.\"    documentation and/or other materials provided with the distribution.
138f2c52e6SPoul-Henning Kamp.\"
148f2c52e6SPoul-Henning Kamp.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
158f2c52e6SPoul-Henning Kamp.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
168f2c52e6SPoul-Henning Kamp.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
178f2c52e6SPoul-Henning Kamp.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
188f2c52e6SPoul-Henning Kamp.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
198f2c52e6SPoul-Henning Kamp.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
208f2c52e6SPoul-Henning Kamp.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
218f2c52e6SPoul-Henning Kamp.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
228f2c52e6SPoul-Henning Kamp.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
238f2c52e6SPoul-Henning Kamp.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
248f2c52e6SPoul-Henning Kamp.\" SUCH DAMAGE.
258f2c52e6SPoul-Henning Kamp.\"
26aa374634SEitan Adler.Dd November 10, 2012
278f2c52e6SPoul-Henning Kamp.Dt MINISTAT 1
288f2c52e6SPoul-Henning Kamp.Os
298f2c52e6SPoul-Henning Kamp.Sh NAME
308f2c52e6SPoul-Henning Kamp.Nm ministat
318f2c52e6SPoul-Henning Kamp.Nd statistics utility
328f2c52e6SPoul-Henning Kamp.Sh SYNOPSIS
338f2c52e6SPoul-Henning Kamp.Nm
34*7776d3ccSRobert Watson.Op Fl Anqs
358f2c52e6SPoul-Henning Kamp.Op Fl C Ar column
368f2c52e6SPoul-Henning Kamp.Op Fl c Ar confidence_level
378f2c52e6SPoul-Henning Kamp.Op Fl d Ar delimiter
388f2c52e6SPoul-Henning Kamp.Op Fl w Op width
398f2c52e6SPoul-Henning Kamp.Op Ar
408f2c52e6SPoul-Henning Kamp.Sh DESCRIPTION
418f2c52e6SPoul-Henning KampThe
428f2c52e6SPoul-Henning Kamp.Nm
438f2c52e6SPoul-Henning Kampcommand calculates fundamental statistical properties of numeric data
448f2c52e6SPoul-Henning Kampin the specified files or, if no file is specified, standard input.
458f2c52e6SPoul-Henning Kamp.Pp
468f2c52e6SPoul-Henning KampThe options are as follows:
478f2c52e6SPoul-Henning Kamp.Bl -tag -width Fl
48aa374634SEitan Adler.It Fl A
49aa374634SEitan AdlerJust report the statistics of the input and relative comparisons,
50aa374634SEitan Adlersuppress the ASCII-art plot.
518f2c52e6SPoul-Henning Kamp.It Fl n
528f2c52e6SPoul-Henning KampJust report the raw statistics of the input, suppress the ASCII-art plot
538f2c52e6SPoul-Henning Kampand the relative comparisons.
54*7776d3ccSRobert Watson.It Fl q
55*7776d3ccSRobert WatsonSuppress printing of summary statistics and data-set names; typically for use
56*7776d3ccSRobert Watsonalongside
57*7776d3ccSRobert Watson.Fl n .
588f2c52e6SPoul-Henning Kamp.It Fl s
598f2c52e6SPoul-Henning KampPrint the average/median/stddev bars on separate lines in the ASCII-art
608f2c52e6SPoul-Henning Kampplot, to avoid overlap.
618f2c52e6SPoul-Henning Kamp.It Fl C Ar column
628f2c52e6SPoul-Henning KampSpecify which column of data to use.
638f2c52e6SPoul-Henning KampBy default the first column in the input file(s) are used.
648f2c52e6SPoul-Henning Kamp.It Fl c Ar confidence_level
658f2c52e6SPoul-Henning KampSpecify desired confidence level for Student's T analysis.
66d60522ebSPeter WemmPossible values are 80, 90, 95, 98, 99 and 99.5 %
678f2c52e6SPoul-Henning Kamp.It Fl d Ar delimiter
688f2c52e6SPoul-Henning KampSpecifies the column delimiter characters, default is SPACE and TAB.
698f2c52e6SPoul-Henning KampSee
708f2c52e6SPoul-Henning Kamp.Xr strtok 3
718f2c52e6SPoul-Henning Kampfor details.
728f2c52e6SPoul-Henning Kamp.It Fl w Ar width
7309a3b0dbSKristof ProvostWidth of ASCII-art plot in characters.
7409a3b0dbSKristof ProvostThe default is the terminal width, or 74 if standard output is not a
7509a3b0dbSKristof Provostterminal.
768f2c52e6SPoul-Henning Kamp.El
778f2c52e6SPoul-Henning Kamp.Pp
788f2c52e6SPoul-Henning KampA sample output could look like this:
798f2c52e6SPoul-Henning Kamp.Bd -literal -offset indent
808f2c52e6SPoul-Henning Kamp  $ ministat -s -w 60 iguana chameleon
818f2c52e6SPoul-Henning Kamp  x iguana
828f2c52e6SPoul-Henning Kamp  + chameleon
838f2c52e6SPoul-Henning Kamp  +------------------------------------------------------------+
848f2c52e6SPoul-Henning Kamp  |x      *  x            *      +              + x           +|
858f2c52e6SPoul-Henning Kamp  | |________M______A_______________|                          |
868f2c52e6SPoul-Henning Kamp  |             |________________M__A___________________|      |
878f2c52e6SPoul-Henning Kamp  +------------------------------------------------------------+
888f2c52e6SPoul-Henning Kamp      N        Min        Max     Median        Avg       Stddev
898f2c52e6SPoul-Henning Kamp  x   7         50        750        200        300    238.04761
908f2c52e6SPoul-Henning Kamp  +   5        150        930        500        540    299.08193
918f2c52e6SPoul-Henning Kamp  No difference proven at 95.0% confidence
928f2c52e6SPoul-Henning Kamp.Ed
938f2c52e6SPoul-Henning Kamp.Pp
948f2c52e6SPoul-Henning KampIf
958f2c52e6SPoul-Henning Kamp.Nm
968f2c52e6SPoul-Henning Kamptells you, as in the example above, that there is no difference
978f2c52e6SPoul-Henning Kampproven at 95% confidence, the two data sets you gave it are for
988f2c52e6SPoul-Henning Kampall statistical purposes identical.
998f2c52e6SPoul-Henning Kamp.Pp
1008f2c52e6SPoul-Henning KampYou have the option of lowering your standards by specifying a
1018f2c52e6SPoul-Henning Kamplower confidence level:
1028f2c52e6SPoul-Henning Kamp.Bd -literal -offset indent
10316596b22SGavin Atkinson  $ ministat -s -w 60 -c 80 iguana chameleon
1048f2c52e6SPoul-Henning Kamp  x iguana
1058f2c52e6SPoul-Henning Kamp  + chameleon
1068f2c52e6SPoul-Henning Kamp  +------------------------------------------------------------+
1078f2c52e6SPoul-Henning Kamp  |x      *  x            *      +              + x           +|
1088f2c52e6SPoul-Henning Kamp  | |________M______A_______________|                          |
1098f2c52e6SPoul-Henning Kamp  |             |________________M__A___________________|      |
1108f2c52e6SPoul-Henning Kamp  +------------------------------------------------------------+
1118f2c52e6SPoul-Henning Kamp      N        Min        Max     Median        Avg       Stddev
1128f2c52e6SPoul-Henning Kamp  x   7         50        750        200        300    238.04761
1138f2c52e6SPoul-Henning Kamp  +   5        150        930        500        540    299.08193
1148f2c52e6SPoul-Henning Kamp  Difference at 80.0% confidence
1158f2c52e6SPoul-Henning Kamp        240 +/- 212.215
1168f2c52e6SPoul-Henning Kamp        80% +/- 70.7384%
1178f2c52e6SPoul-Henning Kamp        (Student's t, pooled s = 264.159)
1188f2c52e6SPoul-Henning Kamp.Ed
1198f2c52e6SPoul-Henning Kamp.Pp
1208f2c52e6SPoul-Henning KampBut a lower standard does not make your data any better, and the
1218f2c52e6SPoul-Henning Kampexample is only included here to show the format of the output when
1228f2c52e6SPoul-Henning Kampa statistical difference is proven according to Student's T method.
1238f2c52e6SPoul-Henning Kamp.Sh SEE ALSO
1248f2c52e6SPoul-Henning KampAny mathematics text on basic statistics, for instances Larry Gonicks
1258f2c52e6SPoul-Henning Kampexcellent "Cartoon Guide to Statistics" which supplied the above example.
1268f2c52e6SPoul-Henning Kamp.Sh HISTORY
1278f2c52e6SPoul-Henning KampThe
1288f2c52e6SPoul-Henning Kamp.Nm
1298f2c52e6SPoul-Henning Kampcommand was written by Poul-Henning Kamp out of frustration
1308f2c52e6SPoul-Henning Kampover all the bogus benchmark claims made by people with no
1318f2c52e6SPoul-Henning Kampunderstanding of the importance of uncertainty and statistics.
1328f2c52e6SPoul-Henning Kamp.Pp
1338f2c52e6SPoul-Henning KampFrom
1348f2c52e6SPoul-Henning Kamp.Fx 5.2
1358f2c52e6SPoul-Henning Kampit has lived in the source tree as a developer tool, graduating
1368f2c52e6SPoul-Henning Kampto the installed system from
1378f2c52e6SPoul-Henning Kamp.Fx 8.0 .
138